From 866d28d48e8e8628a36bb550230f3a185cb4e564 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 23 Oct 2012 22:27:58 +0200 Subject: [PATCH] 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. --- lisp/ob-exp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el index 8d11e45ff..a2b0f482c 100644 --- a/lisp/ob-exp.el +++ b/lisp/ob-exp.el @@ -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)