diff options
| author | Raimon Grau | 2018-08-05 22:47:30 +0100 |
|---|---|---|
| committer | Noam Postavsky | 2018-08-13 07:46:35 -0400 |
| commit | eb787d749f28583906428269b926fa83aef092b9 (patch) | |
| tree | b17720ccc8751f771dba74a0f405afcefe969251 /test | |
| parent | a1e0868f74f7b2b6b77026734102bd453cf1933b (diff) | |
| download | emacs-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.el | 5 |
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. |
| 70 | Each list element should have the form | 73 | Each list element should have the form |
| 71 | 74 | ||