]> git.eshelyaron.com Git - emacs.git/commitdiff
mail-mode paragraph-separate fix for bug#10276
authorGlenn Morris <rgm@gnu.org>
Thu, 12 Jan 2012 02:05:15 +0000 (21:05 -0500)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 Jan 2012 02:05:15 +0000 (21:05 -0500)
* lisp/mail/sendmail.el (mail-mode):
Update paragraph-separate for changes in adaptive-fill-regexp.

lisp/ChangeLog
lisp/mail/sendmail.el

index 4f81fdab8e4c585a4fce81af6ffd5a242b9be707..f8d8ab379fa46deace696d7e1d4e9013fd0607b4 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-12  Glenn Morris  <rgm@gnu.org>
+
+       * mail/sendmail.el (mail-mode): Update paragraph-separate for
+       changes in adaptive-fill-regexp.  (Bug#10276)
+
 2012-01-11  Alan Mackenzie  <acm@muc.de>
 
        Fix Emacs bug #10463 - put `widen's around the critical spots.
index f0068e81811457c870790290913474248d222ceb..a77918c5b1f5bee3a5983a3272867f378bef5f7d 100644 (file)
@@ -1,4 +1,4 @@
-;;; sendmail.el --- mail sending commands for Emacs.  -*- byte-compile-dynamic: t -*-
+;;; sendmail.el --- mail sending commands for Emacs
 
 ;; Copyright (C) 1985-1986, 1992-1996, 1998, 2000-2012
 ;;   Free Software Foundation, Inc.
@@ -743,11 +743,14 @@ Turning on Mail mode runs the normal hooks `text-mode-hook' and
   ;; lines that delimit forwarded messages.
   ;; Lines containing just >= 3 dashes, perhaps after whitespace,
   ;; are also sometimes used and should be separators.
-  (setq paragraph-separate (concat (regexp-quote mail-header-separator)
-                               "$\\|\t*\\([-|#;>* ]\\|(?[0-9]+[.)]\\)+$"
-                               "\\|[ \t]*[[:alnum:]]*>+[ \t]*$\\|[ \t]*$\\|"
-                               "--\\( \\|-+\\)$\\|"
-                               page-delimiter)))
+  (setq paragraph-separate
+       (concat (regexp-quote mail-header-separator)
+               ;; This is based on adaptive-fill-regexp.
+               ;; Presumably the idea is to allow filling of cited paragraphs.
+               "$\\|\t*[-–!|#%;>*·•‣⁃◦ ]+$"
+               "\\|[ \t]*[-[:alnum:]]*>+[ \t]*$\\|[ \t]*$\\|"
+               "--\\( \\|-+\\)$\\|"
+               page-delimiter)))
 
 
 (defun mail-header-end ()
@@ -1986,4 +1989,9 @@ you can move to one of them and type C-c C-c to recover that one."
 
 (provide 'sendmail)
 
+;; Local Variables:
+;; byte-compile-dynamic: t
+;; coding: utf-8
+;; End:
+
 ;;; sendmail.el ends here