ob.el: Fix bug.

This commit is contained in:
Bastien Guerry 2012-05-16 23:53:39 +02:00
parent 8c8b834fa9
commit eb2adf0a29
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-05-16 Eric Schulte <eric.schulte@gmx.com>
* ob.el (org-babel-parse-src-block-match): Save match data during
indentation check.
2012-05-16 Bastien Guerry <bzg@gnu.org>
* org.el (org-scan-tags): Correctly match TODO keywords.

View file

@ -1159,7 +1159,8 @@ may be specified in the properties of the current outline entry."
(substring body 0 sub-length)
(or body "")))))
(preserve-indentation (or org-src-preserve-indentation
(string-match "-i\\>" switches))))
(save-match-data
(string-match "-i\\>" switches)))))
(list lang
;; get block body less properties, protective commas, and indentation
(with-temp-buffer