From: Richard M. Stallman Date: Tue, 17 Jun 1997 00:08:51 +0000 (+0000) Subject: (mail-mode): mail-header-separator affects paragraphs X-Git-Tag: emacs-20.1~1672 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1603f29ab96c03b70818de0bb0922c2259e56764;p=emacs.git (mail-mode): mail-header-separator affects paragraphs only when there is nothing after it on the line. (mail-mode-auto-fill, mail-mode-fill-paragraph): Look for mail-header-separator only on a line by itself. --- diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 5432797eb2c..272ea55796a 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -347,7 +347,7 @@ C-c C-v mail-sent-via (add a Sent-via field for each To or CC)." ;; Lines containing just >= 3 dashes, perhaps after whitespace, ;; are also sometimes used and should be separators. (setq paragraph-start (concat (regexp-quote mail-header-separator) - "\\|[ \t]*$\\|" page-delimiter)) + "$\\|[ \t]*$\\|" page-delimiter)) (setq paragraph-separate paragraph-start) (run-hooks 'text-mode-hook 'mail-mode-hook)) @@ -357,7 +357,7 @@ If within the headers, this makes the new lines into continuation lines." (if (< (point) (save-excursion (goto-char (point-min)) - (if (search-forward mail-header-separator nil t) + (if (search-forward (concat "^" mail-header-separator "$") nil t) (point) 0))) (let ((old-line-start (save-excursion (beginning-of-line) (point)))) @@ -375,7 +375,7 @@ If within the headers, this makes the new lines into continuation lines." (if (< (point) (save-excursion (goto-char (point-min)) - (if (search-forward mail-header-separator nil t) + (if (search-forward (concat "^" mail-header-separator "$") nil t) (point) 0))) (let (beg end fieldname)