aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-text-enclose--enclose-region-or-word.el
Commit message (Collapse)AuthorAgeFilesLines
* refactor(custom-text-enclose): extract the region-or-word dispatchCraig Jennings2026-06-201-0/+62
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.