From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#14950: 24.3.50; gnus: Fontification of URLs is not satisfactory Date: Fri, 26 Jul 2013 08:40:56 +0900 Organization: Emacsen advocacy group Message-ID: References: <87y58vgd8y.fsf@gmail.com> <877ggewzq8.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1374795733 19047 80.91.229.3 (25 Jul 2013 23:42:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jul 2013 23:42:13 +0000 (UTC) Cc: 14950-done@debbugs.gnu.org, Jambunathan K To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 26 01:42:14 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V2VAf-0000Oc-Fj for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jul 2013 01:42:09 +0200 Original-Received: from localhost ([::1]:45792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2VAf-0001vl-2N for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jul 2013 19:42:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2VAa-0001sp-Eu for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2013 19:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2VAZ-00038b-FQ for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2013 19:42:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2VAZ-00038P-C4 for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2013 19:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V2VAY-0004C3-Nh; Thu, 25 Jul 2013 19:42:02 -0400 In-Reply-To: <87y58vgd8y.fsf@gmail.com> Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 25 Jul 2013 23:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14950 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Mail-Followup-To: 14950@debbugs.gnu.org, yamaoka@jpl.org, kjambunathan@gmail.com Original-Received: via spool by 14950-done@debbugs.gnu.org id=D14950.137479566915989 (code D ref 14950); Thu, 25 Jul 2013 23:42:01 +0000 Original-Received: (at 14950-done) by debbugs.gnu.org; 25 Jul 2013 23:41:09 +0000 Original-Received: from localhost ([127.0.0.1]:49966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2V9h-00049p-8j for submit@debbugs.gnu.org; Thu, 25 Jul 2013 19:41:09 -0400 Original-Received: from mail-hampton.hostforweb.net ([216.246.15.223]:33173 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2V9e-00049D-MI for 14950-done@debbugs.gnu.org; Thu, 25 Jul 2013 19:41:07 -0400 Original-Received: from localhost.localdomain ([127.0.0.1]:42592 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1V2V9W-000DCx-7J; Thu, 25 Jul 2013 18:40:59 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130008 (=?UTF-8?Q?=E7=9C=9F?= Gnus v0.8) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:zmA+QiksV81JhA/xDxJVxiMMmxU= X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: root X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76659 Archived-At: Andreas Schwab wrote: > Katsumi Yamaoka writes: >> What should be improved is the default value of the user option >> `gnus-button-url-regexp'. But it is too complicated to let me >> encourage to do it without enbugging. Anyone? > How about this? > diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el > index 31a108a..2433db2 100644 > --- a/lisp/gnus/gnus-art.el > +++ b/lisp/gnus/gnus-art.el > @@ -7177,7 +7177,8 @@ 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 "]" > "\\)")) Great! I understood what what you changed meant. Thanks. The original one only matches the last part of a url like: http://.../abc.def(ghi)jklmno But yours matches: http://.../abc.def(ghi)jkl.mno Maybe making it match the one like http://.../abc.def(ghi)jkl.mno/pqr(stu)vwx is not necessary. I've installed your patch.