From 1b21168d5221bd3aa6b82a2cfb599aabc63c04a5 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Wed, 16 May 2012 13:15:36 -0400 Subject: [PATCH] save match data during indentation check Thanks to Karl Berg for pointing out this issue. --- lisp/ob.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob.el b/lisp/ob.el index f3b7d6814..69d7da4cb 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -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