[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another issue with thingatpt
From: |
Andreas Roehler |
Subject: |
Re: Another issue with thingatpt |
Date: |
Wed, 03 Jan 2007 15:50:23 +0100 |
User-agent: |
Thunderbird 1.5.0.4 (X11/20060516) |
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 ":/address@hidden&'()*+,;=[:alnum:]-._~")
))
(put 'url 'end-op
(lambda ()
(skip-chars-forward ":/address@hidden&'()*+,;=[:alnum:]-._~")))
Already implemented it into thingatpt-utils.el, which
is available at gnu.emacs.sources.
__
Andreas Roehler