From: Markus Holmberg <ens97mhg@cs.umu.se>
Subject: thingatpt.el URL scheme part regexp fix
Date: Wed, 2 Oct 2002 01:16:16 +0200 (CEST) [thread overview]
Message-ID: <20021001231616.9E40A48E@fiskpinne.cs.umu.se> (raw)
This bug report will be sent to the Free Software Foundation,
not to your local site managers!!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
In GNU Emacs 20.7.2 (i386-debian-linux-gnu, X toolkit)
of Tue Apr 9 2002 on lilac modified by Debian
configured using `configure --prefix=/usr --with-gcc --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --sharedstatedir=/var/lib --localstatedir=/var/lib --with-pop=yes --with-x=yes --with-x-toolkit=yes --with-xim=yes --enable-ipv6 i386-debian-linux-gnu'
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
thingatpt.pl fails to recognize URL schemes other than the common ones
(http, ftp ...) and prepends a default scheme prefix though there
already exists one.
Trying to launch a RealPlayer URL "rtsp://host/stream.ra" using
browse-url yields "http://rtsp://host/stream.ra" (note the
unappropriately prepended "http://").
The following patch updates thingatpt.el to recognize URL schemes
according to RFC1738 (see BNF on last line of page 16). It looks
correct to me.
I can be contacted at markush at acc dot umu dot se.
--- thingatpt.el.orig Thu Nov 18 10:23:58 1999
+++ thingatpt.el Wed Oct 2 00:35:24 2002
@@ -212,9 +212,7 @@
``thing-at-point-url-regexp''.")
(defvar thing-at-point-url-regexp
- (concat
- "\\(https?://\\|ftp://\\|gopher://\\|telnet://\\|wais://\\|file:/\\|s?news:\\|mailto:\\)"
- thing-at-point-url-path-regexp)
+ (concat "[a-z0-9+-.]+:" thing-at-point-url-path-regexp)
"A regular expression probably matching a complete URL.")
(defvar thing-at-point-markedup-url-regexp
reply other threads:[~2002-10-01 23:16 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=20021001231616.9E40A48E@fiskpinne.cs.umu.se \
--to=ens97mhg@cs.umu.se \
/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.