diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-05-19 23:12:17 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-05-19 23:12:17 +0200 |
commit | de8302c65a54b4c8bcdd313a64cf766a02ae3b79 (patch) | |
tree | d81e75034517cc05fc2e9ca2ae8604efc0b2457f | |
parent | ed74e5bb9bca8a4edd2152b89c48586feaee2fae (diff) | |
download | org-mode-de8302c65a54b4c8bcdd313a64cf766a02ae3b79.tar.gz |
Fix `org-next-block'
* lisp/org.el (org-next-block): Preserve match data, as specified in
the docstring.
Reported-by: Andreas Leha <andreas.leha@med.uni-goettingen.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/97707>
-rwxr-xr-x | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 4b44a94..8349033 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -24391,7 +24391,7 @@ Throw an error if no block is found." (decf count)))) (if (= count 0) (prog1 (goto-char (org-element-property :post-affiliated last-element)) - (org-show-context)) + (save-match-data (org-show-context))) (goto-char origin) (user-error "No %s code blocks" (if backward "previous" "further"))))) |