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 | 0ce872eba2b0ff9a1dd9750bcd13113685ce6d3e (patch) | |
| tree | 06b309e1dcb65388f6ac3683ff023861940aa58b /tests/test-term-toggle--dispatch.el | |
| parent | b888418759e0a94110410df84f51970dbf53ae15 (diff) | |
| download | dotemacs-0ce872eba2b0ff9a1dd9750bcd13113685ce6d3e.tar.gz dotemacs-0ce872eba2b0ff9a1dd9750bcd13113685ce6d3e.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 'tests/test-term-toggle--dispatch.el')
0 files changed, 0 insertions, 0 deletions
