diff options
| author | Jim Porter | 2024-05-20 12:37:22 -0700 |
|---|---|---|
| committer | Jim Porter | 2024-05-20 13:24:11 -0700 |
| commit | f6c60f16a231802104f53f3953b7fdc363944316 (patch) | |
| tree | 6a7ae5bf39f3651fd08ed1aeb9d4455addcd8847 /java | |
| parent | 642fd607b83c56847914a8a46d6c297a74529610 (diff) | |
| download | emacs-f6c60f16a231802104f53f3953b7fdc363944316.tar.gz 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 'java')
0 files changed, 0 insertions, 0 deletions