From 5ef5e7119f8e761f5e212ceebf4ba6e8890eaa31 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Thu, 13 Mar 2014 19:07:50 +0100 Subject: [PATCH] Fix 9323857 (again) --- lisp/org-src.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index 584035e90..582402148 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -737,10 +737,10 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"." (unless (or single preserve-indentation (= total-nindent 0)) (setq indent (make-string total-nindent ?\ )) (goto-char (point-min)) - (while (re-search-forward "^" nil t) + (while (and (not (eobp)) (re-search-forward "^" nil t)) (if (not (looking-at "$")) (replace-match indent) - (or (eobp) (forward-char 1))))) + (forward-char 1)))) (if (org-bound-and-true-p org-edit-src-picture) (setq total-nindent (+ total-nindent 2))) (setq code (buffer-string))