From: Andreas Schwab Date: Thu, 25 Jul 2013 23:40:51 +0000 (+0000) Subject: gnus-art.el (gnus-button-url-regexp): Make it match url in which punctuation characte... X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1698^2~43 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=02e2beb94bff2a96f6925f25f2f90e1526e9adca;p=emacs.git gnus-art.el (gnus-button-url-regexp): Make it match url in which punctuation characters follow parentheses (bug#14950) --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 5d3de61aa91..3e7d8c992e7 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2013-07-25 Andreas Schwab + + * gnus-art.el (gnus-button-url-regexp): Make it match url in which + punctuation characters follow parentheses (bug#14950). + 2013-07-23 Katsumi Yamaoka * gnus.el (gnus-continuum-version): diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 31a108a3c98..e65b9fb99e4 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el @@ -7177,15 +7177,17 @@ groups." "\\(?:" ;; Match paired parentheses, e.g. in Wikipedia URLs: ;; http://thread.gmane.org/47B4E3B2.3050402@gmail.com - "[" chars punct "]+" "(" "[" chars punct "]+" "[" chars "]*)" "[" chars "]*" + "[" chars punct "]+" "(" "[" chars punct "]+" "[" chars "]*)" + "\\(?:" "[" chars punct "]+" "[" chars "]" "\\)?" "\\|" - "[" chars punct "]+" "[" chars "]" + "[" chars punct "]+" "[" chars "]" "\\)")) (concat ;; XEmacs 21.4 doesn't support POSIX. "\\([-a-z0-9_=!?#$@~%&*+\\/:;.,]\\|\\w\\)+" "\\([-a-z0-9_=#$@~%&*+\\/]\\|\\w\\)")) "\\)") "Regular expression that matches URLs." + :version "24.4" :group 'gnus-article-buttons :type 'regexp)