1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00
emacs/test/automated
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
..
advice-tests.el * lisp/emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to 2013-01-15 01:05:22 -05:00
bytecomp-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
comint-testsuite.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
compile-tests.el Fix interpretation of gnu line.col1-col2 error message format 2013-01-13 17:08:13 -08:00
ert-tests.el Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca 2013-01-02 08:13:04 -08:00
ert-x-tests.el Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca 2013-01-02 08:13:04 -08:00
f90.el Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca 2013-01-02 08:13:04 -08:00
files.el Fix byte compilation warning in files testsuite. 2013-02-03 16:55:45 +08:00
font-parse-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
gnus-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
icalendar-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
inotify-test.el Update copyright dates to 2013. 2013-01-02 08:30:50 -08:00
lexbind-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
Makefile.in Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
man-tests.el * lisp/man.el: Handle different "man -k" behaviors. Use utf-8. 2013-01-10 10:01:35 -05:00
newsticker-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
occur-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
ruby-mode-tests.el * progmodes/ruby-mode.el (ruby-move-to-block): Work with (maybe 2013-01-28 05:20:42 +04:00
thingatpt.el Merge FFAP's URI-detection code into thingatpt.el. 2013-02-04 20:02:25 +08:00
undo-tests.el * test/automated/undo-tests.el (undo-test0): Adjust error to code change. 2013-01-09 16:29:27 -05:00
url-future-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
url-util-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
vc-bzr.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
xml-parse-tests.el Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00