# HG changeset patch # User Richard M. Stallman # Date 866506131 0 # Node ID 1614755e9b280fdd7c6736d6e3395d83ada7cddb # Parent 41496911055d0c3b2a8e7d96faf35cd19fc9a5f6 (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 -r 41496911055d -r 1614755e9b28 lisp/mail/sendmail.el --- a/lisp/mail/sendmail.el Mon Jun 16 23:20:46 1997 +0000 +++ b/lisp/mail/sendmail.el Tue Jun 17 00:08:51 1997 +0000 @@ -347,7 +347,7 @@ ;; 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 (< (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 (< (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)