]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-art.el (gnus-button-url-regexp): Make it match url in which punctuation characte...
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 25 Jul 2013 23:40:51 +0000 (23:40 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 25 Jul 2013 23:40:51 +0000 (23:40 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index 5d3de61aa916d0be63646e54012c7fafc71641c8..3e7d8c992e7dac871fd4753d4fe187faa1c89d2c 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-25  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * gnus-art.el (gnus-button-url-regexp): Make it match url in which
+       punctuation characters follow parentheses (bug#14950).
+
 2013-07-23  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus.el (gnus-continuum-version):
index 31a108a3c98f24e044f14c4f9a254318b1ca2e6a..e65b9fb99e4a2f4cb0e25c142fb17c6b9b2ed50b 100644 (file)
@@ -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)