summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2024-05-20 12:37:22 -0700
committerJim Porter <jporterbugs@gmail.com>2024-05-20 13:24:11 -0700
commitf6c60f16a231802104f53f3953b7fdc363944316 (patch)
tree6a7ae5bf39f3651fd08ed1aeb9d4455addcd8847 /lisp/emacs-lisp
parent642fd607b83c56847914a8a46d6c297a74529610 (diff)
downloademacs-f6c60f16a231802104f53f3953b7fdc363944316.tar.gz
emacs-f6c60f16a231802104f53f3953b7fdc363944316.tar.bz2
emacs-f6c60f16a231802104f53f3953b7fdc363944316.zip
Improve implementation of 'forward-thing' using custom providers
Now, call all the custom providers for each step, using the provider that moves point the smallest non-zero amount. This allows multiple providers for a given "thing" to work nicely together. * lisp/thingatpt.el (forward-thing-provider-alist): Update docstring. (forward-thing): New implementation to call each provider N times. (forward-thing-for-text-property): Take BACKWARD instead of N. Update callers. * test/lisp/thingatpt-tests.el (thing-at-point-providers) (forward-thing-providers): Add more checks. (consecutive-things-at-point): New test.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions