2000-11-15 18:09 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 15 Nov 2000 22:38:33 +0000 (22:38 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 15 Nov 2000 22:38:33 +0000 (22:38 +0000)
* message.el (message-mode-syntax-table): Add - as a word
constituent as in articles.
(message-setup-fill-variables): Add -_. as supercite-style prefix.
* gnus-art.el (gnus-article-mode-syntax-table): Remove ?-.

lisp/ChangeLog
lisp/gnus-art.el
lisp/message.el

index f5dd1f5..ce560b7 100644 (file)
@@ -1,3 +1,10 @@
+2000-11-15 18:09  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * message.el (message-mode-syntax-table): Add - as a word
+       constituent as in articles.
+       (message-setup-fill-variables): Add -_. as supercite-style prefix.
+       * gnus-art.el (gnus-article-mode-syntax-table): Remove ?-.
+
 2000-11-15 13:21  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * gnus-msg.el (gnus-inews-do-gcc): Expire the article.
index dacfdd3..154aa90 100644 (file)
@@ -1039,7 +1039,8 @@ It is a string, such as \"PGP\". If nil, ask user."
 
 (defvar gnus-article-mode-syntax-table
   (let ((table (copy-syntax-table text-mode-syntax-table)))
-    (modify-syntax-entry ?- "w" table)
+    ;; This causes the citation match run O(2^n).
+    ;; (modify-syntax-entry ?- "w" table) 
     (modify-syntax-entry ?> ")" table)
     (modify-syntax-entry ?< "(" table)
     table)
index 7143547..8eed3fe 100644 (file)
@@ -332,7 +332,8 @@ The provided functions are:
   :type 'regexp)
 
 (defcustom message-cite-prefix-regexp
-  "[ \t]*\\(\\(\\w\\|[_-\\.]\\)+>+[ \t]*\\|[]>»|:}+ ]*[]>»|:}+][ \t]*\\)+"
+  ;; ?-, ?_ or ?. MUST NOT be in syntax entry w.
+  "[ \t]*\\(\\(\\w\\|[-_.]\\)+>+[ \t]*\\|[]>»|:}+][ \t]*\\)+"
   "*Regexp matching the longest possible citation prefix on a line."
   :group 'message-insertion
   :type 'regexp)
@@ -1521,7 +1522,7 @@ M-RET    message-newline-and-reformat (break the line and reformat)."
          (concat
           "[ \t]*"                      ; possible initial space
           "\\(\\(" (regexp-quote message-yank-prefix) "\\|" ; user's prefix
-          "\\w+>\\|"                    ; supercite-style prefix
+          "\\(\\w\\|[-_.]\\)+>\\|"      ; supercite-style prefix
           "[|:>]"                       ; standard prefix
           "\\)[ \t]*\\)+")))            ; possible space after each prefix
     (setq paragraph-start