aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShengHuo ZHU2002-08-20 08:36:01 +0000
committerShengHuo ZHU2002-08-20 08:36:01 +0000
commit0076a86e2560e9cbe26f7db4373d9f3c673a23d0 (patch)
tree01b65c5415f18d16580847181eb3e0e02491336c
parent83ec6f20589940f84b25efd1b2410674299aabdd (diff)
downloademacs-0076a86e2560e9cbe26f7db4373d9f3c673a23d0.tar.gz
emacs-0076a86e2560e9cbe26f7db4373d9f3c673a23d0.zip
* gnus-art.el (gnus-button-url-regexp): Use POSIX regexp if possible.
-rw-r--r--lisp/gnus/ChangeLog2
-rw-r--r--lisp/gnus/gnus-art.el5
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index b028c6ffb9f..f24be89a850 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,7 @@
12002-08-20 ShengHuo ZHU <zsh@cs.rochester.edu> 12002-08-20 ShengHuo ZHU <zsh@cs.rochester.edu>
2 2
3 * gnus-art.el (gnus-button-url-regexp): Use POSIX regexp if possible.
4
3 * nnmh.el (nnmh-request-list-1): Use %.0f instead of %d to 5 * nnmh.el (nnmh-request-list-1): Use %.0f instead of %d to
4 avoid arithmetic errors. 6 avoid arithmetic errors.
5 7
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 8efd757b9bc..8201993c7f8 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -4263,7 +4263,10 @@ groups."
4263 4263
4264;;; Internal Variables: 4264;;; Internal Variables:
4265 4265
4266(defcustom gnus-button-url-regexp "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\)\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?\\([-a-zA-Z0-9_=!?#$@~`%&*+|\\/:;.,]\\|\\w\\)+\\([-a-zA-Z0-9_=#$@~`%&*+|\\/]\\|\\w\\)\\)" 4266(defcustom gnus-button-url-regexp
4267 (if (string-match "[[:digit:]]" "1") ;; support POSIX?
4268 "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\|info\\):\\)\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?[-a-zA-Z0-9_=!?#$@~`%&*+|\\/:;.,[:word:]]+[-a-zA-Z0-9_=#$@~`%&*+|\\/[:word:]]\\)"
4269 "\\b\\(\\(www\\.\\|\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\|info\\):\\)\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?\\([-a-zA-Z0-9_=!?#$@~`%&*+|\\/:;.,]\\|\\w\\)+\\([-a-zA-Z0-9_=#$@~`%&*+|\\/]\\|\\w\\)\\)")
4267 "Regular expression that matches URLs." 4270 "Regular expression that matches URLs."
4268 :group 'gnus-article-buttons 4271 :group 'gnus-article-buttons
4269 :type 'regexp) 4272 :type 'regexp)