Gnus development mailing list
 help / color / mirror / Atom feed
From: "James H. Cloos Jr." <cloos@jhcloos.com>
Subject: gnus-button-url-regexp
Date: 27 Apr 2000 19:22:39 -0500	[thread overview]
Message-ID: <m37ldj6pm8.fsf@austin.jhcloos.com> (raw)

I'm unable to convince gnus-button-url-regexp to do the right thing
for a bare url containing a tilde.  Ie. www.example.com/~foobar/ fails
to buttonize; only the domain name part is buttonized.

Vague memories suggest this used to work (I upgraded from 5.8.2 when
5.8.5 was announced.)

Ahh.  And now that I've removed the doubled-\s and broken it at its
boundries, I can see why.  If there is no method, the regexp only
matches:

   [-a-zA-Z0-9_]+\.[-a-zA-Z0-9_]+\(\.[-a-zA-Z0-9_]+[-a-zA-Z0-9_/]+\)+

So.  Does anyone have any thoughts on how to extend that to catch
a slash and suitable trailing data?

Perhaps something like (appended directly to the above fragment):

   \(/\([-a-zA-Z0-9_=!?#$@~`%&*+|\/:;.,]\|\w\)*\)?

Ie, a / plus zero or more non-spaces.  All optional.  (Don't forget
to double up the \s before stuffing it in a .el.)

Thoughts?  

-JimC
-- 
James H. Cloos, Jr.  <URL:http://jhcloos.com/public_key> 1024D/ED7DAEA6 
<cloos@jhcloos.com>  E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
        Save Trees:  Get E-Gold! <URL:http://jhcloos.com/go?e-gold>



                 reply	other threads:[~2000-04-28  0:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=m37ldj6pm8.fsf@austin.jhcloos.com \
    --to=cloos@jhcloos.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).