aboutsummaryrefslogtreecommitdiff
path: root/modules/prog-webdev.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-20 11:47:25 -0400
committerCraig Jennings <c@cjennings.net>2026-06-20 11:47:25 -0400
commit7ccd6ee7872946c7ea0c7e78ea00b71d03a885b1 (patch)
tree8ff2324dbe11494e630453901abbe6c50dec11b2 /modules/prog-webdev.el
parent2bd73f433813c8be39e33e66437042dd078eb865 (diff)
downloaddotemacs-7ccd6ee7872946c7ea0c7e78ea00b71d03a885b1.tar.gz
dotemacs-7ccd6ee7872946c7ea0c7e78ea00b71d03a885b1.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/prog-webdev.el')
0 files changed, 0 insertions, 0 deletions