aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaimon Grau2018-08-05 22:47:30 +0100
committerNoam Postavsky2018-08-13 07:46:35 -0400
commiteb787d749f28583906428269b926fa83aef092b9 (patch)
treeb17720ccc8751f771dba74a0f405afcefe969251 /test
parenta1e0868f74f7b2b6b77026734102bd453cf1933b (diff)
downloademacs-eb787d749f28583906428269b926fa83aef092b9.tar.gz
emacs-eb787d749f28583906428269b926fa83aef092b9.zip
Add uuid as allowed thingatpt symbol (Bug#32372)
* etc/NEWS: Mention changes in thingatpt.el. * lisp/thingatpt.el (thing-at-point-uuid-regexp): Add regexp for uuid. (top-level): Add 'bounds-of-thing-at-point' operation for 'uuid'. * test/lisp/thingatpt-tests.el: Add tests for uuid at point.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/thingatpt-tests.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lisp/thingatpt-tests.el b/test/lisp/thingatpt-tests.el
index cfb57de6189..b4a5fd90ce4 100644
--- a/test/lisp/thingatpt-tests.el
+++ b/test/lisp/thingatpt-tests.el
@@ -65,7 +65,10 @@
65 ("http://example.com/ab)c" 4 url "http://example.com/ab)c") 65 ("http://example.com/ab)c" 4 url "http://example.com/ab)c")
66 ;; URL markup, lacking schema 66 ;; URL markup, lacking schema
67 ("<url:foo@example.com>" 1 url "mailto:foo@example.com") 67 ("<url:foo@example.com>" 1 url "mailto:foo@example.com")
68 ("<url:ftp.example.net/abc/>" 1 url "ftp://ftp.example.net/abc/")) 68 ("<url:ftp.example.net/abc/>" 1 url "ftp://ftp.example.net/abc/")
69 ;; UUID, only hex is allowed
70 ("01234567-89ab-cdef-ABCD-EF0123456789" 1 uuid "01234567-89ab-cdef-ABCD-EF0123456789")
71 ("01234567-89ab-cdef-ABCD-EF012345678G" 1 uuid nil))
69 "List of thing-at-point tests. 72 "List of thing-at-point tests.
70Each list element should have the form 73Each list element should have the form
71 74