(message-cite-prefix-regexp): Remove `-' and `+' to avoid matches on patches.
authorReiner Steib <Reiner.Steib@gmx.de>
Sat, 1 Dec 2007 17:50:27 +0000 (17:50 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Sat, 1 Dec 2007 17:50:27 +0000 (17:50 +0000)
lisp/ChangeLog
lisp/message.el

index 9bed62c..818f7f0 100644 (file)
@@ -1,5 +1,8 @@
 2007-12-01  Reiner Steib  <Reiner.Steib@gmx.de>
 
+       * message.el (message-cite-prefix-regexp): Remove `-' and `+' to avoid
+       matches on patches.
+
        * gnus-art.el (gnus-article-browse-html-article): Mention
        `mm-text-html-renderer' in the doc string.
 
index 6f5cd90..d3ecc0c 100644 (file)
@@ -585,21 +585,21 @@ Done before generating the new subject of a forward."
   :type 'regexp)
 
 (defcustom message-cite-prefix-regexp
-  (if (string-match "[[:digit:]]" "1") ;; support POSIX?
-      "\\([ \t]*[-_.[:word:]]+>+\\|[ \t]*[]>|}+]\\)+"
+  (if (string-match "[[:digit:]]" "1")
+      ;; Support POSIX?  XEmacs 21.5.27 doesn't.
+      "\\([ \t]*[_.[:word:]]+>+\\|[ \t]*[]>|}]\\)+"
     ;; ?-, ?_ or ?. MUST NOT be in syntax entry w.
     (let (non-word-constituents)
       (with-syntax-table text-mode-syntax-table
        (setq non-word-constituents
              (concat
-              (if (string-match "\\w" "-")  "" "-")
               (if (string-match "\\w" "_")  "" "_")
               (if (string-match "\\w" ".")  "" "."))))
       (if (equal non-word-constituents "")
-         "\\([ \t]*\\(\\w\\)+>+\\|[ \t]*[]>|}+]\\)+"
+         "\\([ \t]*\\(\\w\\)+>+\\|[ \t]*[]>|}]\\)+"
        (concat "\\([ \t]*\\(\\w\\|["
                non-word-constituents
-               "]\\)+>+\\|[ \t]*[]>|}+]\\)+"))))
+               "]\\)+>+\\|[ \t]*[]>|}]\\)+"))))
   "*Regexp matching the longest possible citation prefix on a line."
   :version "22.1"
   :group 'message-insertion