diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-20 11:47:25 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-20 11:47:25 -0400 |
| commit | 16e3f460f167b15f8a41aef1c46af204ce1b0d44 (patch) | |
| tree | 95d7f88b6ef392d21678220c4f5fc00b2b677170 /modules/coverage-core.el | |
| parent | e0f833b3e6cd8a1e52f48d1ca7fb0cc30a8dda6e (diff) | |
| download | dotemacs-16e3f460f167b15f8a41aef1c46af204ce1b0d44.tar.gz dotemacs-16e3f460f167b15f8a41aef1c46af204ce1b0d44.zip | |
refactor(custom-text-enclose): extract the region-or-word dispatch
cj/surround/wrap/unwrap-word-or-region each repeated the same skeleton: target the active region, else the word at point, else show a message; then delete and re-insert the transformed text. Extract cj/--enclose-region-or-word, which takes the transform as a function and the no-target message, so each command reads its prompts then delegates. Behavior and messages unchanged; adds direct coverage of the dispatch helper.
Diffstat (limited to 'modules/coverage-core.el')
0 files changed, 0 insertions, 0 deletions
