From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#14950: 24.3.50; gnus: Fontification of URLs is not satisfactory Date: Thu, 25 Jul 2013 17:45:25 +0530 Message-ID: <87ehamhm3m.fsf@gmail.com> References: <87y58vgd8y.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374754449 19864 80.91.229.3 (25 Jul 2013 12:14:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jul 2013 12:14:09 +0000 (UTC) Cc: 14950@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 25 14:14:09 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 1V2KQr-0003Jh-FM for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jul 2013 14:14:09 +0200 Original-Received: from localhost ([::1]:53413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2KQr-0008R7-08 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jul 2013 08:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2KQm-0008MG-6H for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2013 08:14:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2KQk-0003C3-QQ for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2013 08:14:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2KQk-0003Bt-M8 for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2013 08:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V2KQk-000278-8U for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2013 08:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2013 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14950-submit@debbugs.gnu.org id=B14950.13747544418112 (code B ref 14950); Thu, 25 Jul 2013 12:14:02 +0000 Original-Received: (at 14950) by debbugs.gnu.org; 25 Jul 2013 12:14:01 +0000 Original-Received: from localhost ([127.0.0.1]:48789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2KQi-00026l-HV for submit@debbugs.gnu.org; Thu, 25 Jul 2013 08:14:01 -0400 Original-Received: from mail-pd0-f172.google.com ([209.85.192.172]:42772) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V2KQg-00026N-Ed for 14950@debbugs.gnu.org; Thu, 25 Jul 2013 08:13:59 -0400 Original-Received: by mail-pd0-f172.google.com with SMTP id z10so1625075pdj.17 for <14950@debbugs.gnu.org>; Thu, 25 Jul 2013 05:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Q++wFWPygwfMubY4/CRF3+RHRom9bMeLlMWcgr3XomU=; b=Ixut6+kZaW0oPlGjxtcXaDyWjWgeeTZaNEzpsrKPux2/MHEBMzDIU40w4DTXlqfwST XkV3EOhO23xixplSR5KV8IiyBLnuIusjO/eQYE6yTJ+5B1+t5O3hXwruFR7zBLDRDxPH EJo7RJvMCMxpYsejHuGtzfBhdWwODOCC96voVf22mf+pb78p9kUZ0dBLIem9W2SjN0sQ Cw6bLNI0l+m6NF2zxj3/rxH2RKGYfvleQNqqomAPyf6BuaHHC6su0n70Srn5KoqaxSAx k8s8rRJMjh6adZq1kupobXKiXTlK5fvwyfjsP7xbrB4HhAY6zJxRV8fJnQhm/lzpxda3 DPBA== X-Received: by 10.68.232.225 with SMTP id tr1mr46964751pbc.143.1374754432420; Thu, 25 Jul 2013 05:13:52 -0700 (PDT) Original-Received: from debian-6.05 ([115.241.107.196]) by mx.google.com with ESMTPSA id 7sm49974205paf.22.2013.07.25.05.13.46 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 25 Jul 2013 05:13:51 -0700 (PDT) In-Reply-To: (Katsumi Yamaoka's message of "Thu, 25 Jul 2013 20:29:13 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:76648 Archived-At: Katsumi Yamaoka writes: > Jambunathan K wrote: >> Gnus is from Emacs repo. > >> Within Gnus, > >> [Chicago Export filters for Org-mode] >> http://repo.or.cz/w/JabRefChicagoForOrgmode.git/blob_plain/HEAD:/net.sf.jabref.export.Chicago.ODF(English)-1.2.jar > >> How does the above URL below. Is it partly in bold and partly in default >> font. (See attached screenshot) Specifically, the URL is fontified only >> till "1" (but doesn't include trailing ".2.jar" part). > > 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? I don't understand URLs. (English)-1.2.jar ^ ^ ^ ^ A quick X-ray operation with xr.el, suggested to me that the parenthesis - () - around English could be the problem maker. So I removed the () around English and re-builder matches the whole url. Here is what xr.el reports. xr.el is at http://debbugs.gnu.org/cgi/bugreport.cgi?msg=40;filename=xr.el;att=1;bug=13369 M-: (xr gnus-button-url-regexp) --8<---------------cut here---------------start------------->8--- (seq word-boundary (group (group (or "www." (seq (group (or (seq (opt "s") "http" (opt "s")) "ftp" "file" "gopher" "nntp" "news" "telnet" "wais" "mailto" "info")) ":"))) (opt (group "//" (one-or-more (any "." "_" "0-9" "a-z" "-")) ":" (zero-or-more (any "0-9")))) (or (seq (one-or-more (any "," "." ";" ":" "?" "!" word "/" "\\" "+" "*" "&" "%" "~" "@" "$" "#" "=" "_" "0-9" "a-z" "-")) "(" (one-or-more (any "," "." ";" ":" "?" "!" word "/" "\\" "+" "*" "&" "%" "~" "@" "$" "#" "=" "_" "0-9" "a-z" "-")) (zero-or-more (any word "/" "\\" "+" "*" "&" "%" "~" "@" "$" "#" "=" "_" "0-9" "a-z" "-")) ")" (zero-or-more (any word "/" "\\" "+" "*" "&" "%" "~" "@" "$" "#" "=" "_" "0-9" "a-z" "-"))) (seq (one-or-more (any "," "." ";" ":" "?" "!" word "/" "\\" "+" "*" "&" "%" "~" "@" "$" "#" "=" "_" "0-9" "a-z" "-")) (any word "/" "\\" "+" "*" "&" "%" "~" "@" "$" "#" "=" "_" "0-9" "a-z" "-"))))) --8<---------------cut here---------------end--------------->8--- ---------------------------------------------------------------- As an aside, If I do, M-x browse-url-emacs RET with point on that link, I am prompted for the "whole" URL. The interactive spec for browse-url goes something like (interactive (browse-url-interactive-arg "URL: ")) which in turn relies on (thing-at-point 'url t) So may be Gnus, can fuzzily position itself on what looks like a URL and then defer to `thing-at-point' to do the nasty work of identifying the boundaries. This way, atleast Gnus owners can blame someone else :-).