From: Andreas Roehler <andreas.roehler@easy-emacs.de>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Another issue with thingatpt
Date: Wed, 03 Jan 2007 15:50:23 +0100 [thread overview]
Message-ID: <459BC2AF.8010501@easy-emacs.de> (raw)
In-Reply-To: <17815.62022.147181.758643@rgrjr.dyndns.org>
Employing the forms below together with standard
thingatpt-function I see several advantages
- url-at-point don't need longer a complicated
regexp-corpus, the whole special handling of urls can
be dropped
- it don't make more specifications than RFC3986; which
may help to avoid trouble in the future, if new url
schemes may be invented
- easy to read and understand from the users side,
better to extend and maintain
(put 'url 'beginning-op
(lambda ()
(skip-chars-backward ":/?#[]@!$&'()*+,;=[:alnum:]-._~")
))
(put 'url 'end-op
(lambda ()
(skip-chars-forward ":/?#[]@!$&'()*+,;=[:alnum:]-._~")))
Already implemented it into thingatpt-utils.el, which
is available at gnu.emacs.sources.
__
Andreas Roehler
next prev parent reply other threads:[~2007-01-03 14:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <003001c727be$349c5a80$0203a8c0@HomeNetbbb0>
[not found] ` <20061225.094150.13771816.wl@gnu.org>
[not found] ` <htx7iwdn717.fsf@urania.kanji.zinbun.kyoto-u.ac.jp>
2006-12-27 10:50 ` Another issue with thingatpt Werner LEMBERG
2006-12-27 20:29 ` Bob Rogers
2006-12-28 6:39 ` Werner LEMBERG
2006-12-29 21:23 ` Piet van Oostrum
2006-12-31 3:08 ` Bob Rogers
2006-12-31 9:25 ` Andreas Roehler
2006-12-31 17:24 ` Bob Rogers
2007-01-02 13:34 ` Andreas Roehler
2007-01-03 14:50 ` Andreas Roehler [this message]
2006-12-31 20:07 ` Piet van Oostrum
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=459BC2AF.8010501@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=emacs-devel@gnu.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).