1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-22 07:09:47 +00:00

ob-exp: Fix small bug

* lisp/ob-exp.el (org-export-blocks-preprocess): Pos can sometimes be
  set to a value greater than start, because of indentation, and lead
  to a search bound error.
This commit is contained in:
Nicolas Goaziou 2012-10-23 22:27:58 +02:00
parent 2608bed9ea
commit 866d28d48e

View File

@ -291,7 +291,7 @@ this template."
(indent-line-to ind))
;; Indent everything.
(indent-code-rigidly match-start (point) ind)))))
(setq pos (point))
(setq pos (line-beginning-position))
;; Cleanup markers.
(set-marker match-start nil)
(set-marker begin nil)