0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-19 23:48:56 +00:00

Forgot a `save-excursion'

* lisp/org.el (org-fill-paragraph): Add a `save-excursion' to avoid
  returning funny results.
This commit is contained in:
Nicolas Goaziou 2012-08-19 15:51:55 +02:00
parent bb895827c2
commit 2fd696716a

View file

@ -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