changeset 15162:a16fd1b9abb5

(mail-mode): Line starting with ---- is a separator.
author Richard M. Stallman <rms@gnu.org>
date Sun, 05 May 1996 03:55:07 +0000
parents ea07411f268e
children df250bc97b46
files lisp/mail/sendmail.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/sendmail.el	Sun May 05 03:52:13 1996 +0000
+++ b/lisp/mail/sendmail.el	Sun May 05 03:55:07 1996 +0000
@@ -327,11 +327,15 @@
   (setq font-lock-defaults '(mail-font-lock-keywords t))
   (make-local-variable 'paragraph-separate)
   (make-local-variable 'paragraph-start)
+  ;; `-- ' precedes the signature.  `-----' appears at the start of the
+  ;; lines that delimit forwarded messages.
+  ;; 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]*[-_][-_][-_]+$\\|-- \\|"
+				"$\\|[ \t]*[-_][-_][-_]+$\\|-- $\\|-----\\|"
 				paragraph-start))
   (setq paragraph-separate (concat (regexp-quote mail-header-separator)
-				   "$\\|[ \t]*[-_][-_][-_]+$\\|-- \\|"
+				   "$\\|[ \t]*[-_][-_][-_]+$\\|-- $\\|-----\\|"
 				   paragraph-separate))
   (run-hooks 'text-mode-hook 'mail-mode-hook))