1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-22 10:26:20 +00:00
emacs/test
Chong Yidong 6e5c1569e9 Merge FFAP's URI-detection code into thingatpt.el.
* lisp/ffap.el: Require thingatpt.
(ffap-url-at-point): Delegate URI detection to thing-at-point.
All URI-valid characters are now recognized.
(ffap-string-at-point): Use use-region-p.
(ffap-url-regexp): Extra character is handled by thing-at-point.
(ffap-string-at-point-mode-alist): Allow parentheses.
(ffap-newsgroup-regexp, ffap-newsgroup-heads, ffap-newsgroup-p):
Convert to aliases; code moved to thingatpt.el.
(ffap-gnus-hook): Use setq-local.

* lisp/thingatpt.el: Rewrite the URL detection routines, absorbing some
code from ffap.el.
(thing-at-point-beginning-of-url-regexp): New var.
(thing-at-point-uri-schemes): Update list of URI schemes.
(thing-at-point-url-regexp): Variable deleted.
(thing-at-point-markedup-url-regexp): Disallow newlines.
(thing-at-point-newsgroup-regexp)
(thing-at-point-newsgroup-heads)
(thing-at-point-default-mail-uri-scheme): New variables.
(thing-at-point-bounds-of-url-at-point): Rewrite.  Use ffap's
method to find the possible bounds of the URI at point.  New
optional argument to find ill-formed URIs.
(thing-at-point-url-at-point): Rewrite.  New arguments for finding
ill-formed URIs.  Use thing-at-point-bounds-of-url-at-point, and
the scheme-adding heuristics from ffap-url-at-point.
(thing-at-point--bounds-of-well-formed-url): New function.  Do
parens matching to decide whether to include parens in the URI

* test/automated/thingatpt.el: New file.

Fixes: debbugs:5673
2013-02-04 20:02:25 +08:00
..
automated Merge FFAP's URI-detection code into thingatpt.el. 2013-02-04 20:02:25 +08:00
cedet Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
indent * lisp/progmodes/opascal.el: Rename from delphi.el. Use lexical-binding. 2013-01-30 20:58:24 -05:00
ChangeLog Merge FFAP's URI-detection code into thingatpt.el. 2013-02-04 20:02:25 +08:00
eshell.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
README Mention etc/compilation.txt 2009-07-26 15:59:37 +00:00
redisplay-testsuite.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
rmailmm.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00

This directory contains files intended to test various aspects of
Emacs's functionality.  Please help add tests!

(Also, see etc/compilation.txt for compilation mode font lock tests.)