From: Jambunathan K <kjambunathan@gmail.com>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: 14950@debbugs.gnu.org
Subject: bug#14950: 24.3.50; gnus: Fontification of URLs is not satisfactory
Date: Thu, 25 Jul 2013 17:45:25 +0530 [thread overview]
Message-ID: <87ehamhm3m.fsf@gmail.com> (raw)
In-Reply-To: <b4ma9lazxme.fsf@jpl.org> (Katsumi Yamaoka's message of "Thu, 25 Jul 2013 20:29:13 +0900")
Katsumi Yamaoka <yamaoka@jpl.org> 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 :-).
next prev parent reply other threads:[~2013-07-25 12:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-25 10:11 bug#14950: 24.3.50; gnus: Fontification of URLs is not satisfactory Jambunathan K
2013-07-25 11:29 ` Katsumi Yamaoka
2013-07-25 12:15 ` Jambunathan K [this message]
2013-07-25 13:11 ` Andreas Schwab
2013-07-25 23:40 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ehamhm3m.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=14950@debbugs.gnu.org \
--cc=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.