]> git.eshelyaron.com Git - emacs.git/commit
; Fix 'thing-at-point' edge case involving overlapping matches
authorEshel Yaron <me@eshelyaron.com>
Sat, 10 Feb 2024 16:30:27 +0000 (17:30 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 Feb 2024 16:34:50 +0000 (17:34 +0100)
commit1fc1f93ab088c3aaefa05eed75c2053449dc0db6
tree331898575a00d301a211cf09cc067d48a648f50b
parent50cb0abe288b584f86e3bd62c6febdb87a391612
; Fix 'thing-at-point' edge case involving overlapping matches

* lisp/thingatpt.el (thing-at-point-looking-at): When finding a match
that ends before point, continue searching from the beginning of that
match, not its end, in case the match we're looking is overlapping with
this one.
* test/lisp/thingatpt-tests.el
(thing-at-point-looking-at-overlapping-matches): New test.
lisp/thingatpt.el
test/lisp/thingatpt-tests.el