save match data during indentation check

Thanks to Karl Berg for pointing out this issue.
This commit is contained in:
Eric Schulte 2012-05-16 13:15:36 -04:00
parent 429e6aafa6
commit 1b21168d52
1 changed files with 2 additions and 1 deletions

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