<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-custom-text-enclose--enclose-region-or-word.el, branch main</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-06-20T15:47:25+00:00</updated>
<entry>
<title>refactor(custom-text-enclose): extract the region-or-word dispatch</title>
<updated>2026-06-20T15:47:25+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-06-20T15:47:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=0ce872eba2b0ff9a1dd9750bcd13113685ce6d3e'/>
<id>urn:sha1:0ce872eba2b0ff9a1dd9750bcd13113685ce6d3e</id>
<content type='text'>
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.
</content>
</entry>
</feed>
