From 2fd696716a9411793dbd2e4916d7d05695111945 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 19 Aug 2012 15:51:55 +0200 Subject: [PATCH] Forgot a `save-excursion' * lisp/org.el (org-fill-paragraph): Add a `save-excursion' to avoid returning funny results. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 5e7807d43..163fe703d 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -21072,7 +21072,7 @@ a footnote definition, try to fill the first paragraph within." ;; in current paragraph nor text before message ;; body. ((derived-mode-p 'message-mode) - (let ((body-start (message-goto-body))) + (let ((body-start (save-excursion (message-goto-body)))) (when body-start (setq beg (max body-start beg)))) (when (save-excursion (re-search-forward -- 2.11.4.GIT