From cb65e1b8adad54e6fc72c1eddb79efa644abbfc0 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Tue, 10 Mar 2015 10:08:24 +0800 Subject: [PATCH] Change paragraph boundaries in message mode * lisp/org.el (org-adaptive-fill-function): The value of `mail-header-separator' should count as a paragraph separator. --- lisp/org.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index c566152..4f32e35 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -23017,6 +23017,11 @@ matches in paragraphs or comments, use it." (org-with-wide-buffer (unless (org-at-heading-p) (let* ((p (line-beginning-position)) + (org-element-paragraph-separate + (if (derived-mode-p 'message-mode) + (concat org-element-paragraph-separate + "\\|" mail-header-separator) + org-element-paragraph-separate)) (element (save-excursion (beginning-of-line) (org-element-at-point))) -- 2.3.2