aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-export-config-task-default.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-24 07:26:20 -0500
committerCraig Jennings <c@cjennings.net>2026-05-24 07:26:20 -0500
commit4d10254cb09f2125610bf94ab5347e7a8c9c5805 (patch)
tree00aefc32d4ae1b441a3de630bcd79d19cdb9b350 /tests/test-org-export-config-task-default.el
parent991a946efc2c66c60a77a10545d1d9ff86297cbc (diff)
downloaddotemacs-4d10254cb09f2125610bf94ab5347e7a8c9c5805.tar.gz
dotemacs-4d10254cb09f2125610bf94ab5347e7a8c9c5805.zip
refactor(text-enclose): extract shared region-or-buffer bounds helper
The append/prepend/indent/dedent *-in-region-or-buffer commands each inlined the same (if (use-region-p) (region-beginning) (point-min)) / (region-end)/(point-max) block — four copies of the "operate on the region, else the whole buffer" contract. Extracted cj/--region-or-buffer-bounds as the single source of that decision and routed all four through it. Behavior is unchanged; the public-wrapper tests still pass. This was the "extract a shared helper that decides the target range" option from the reconcile task. The sibling custom-ordering.el helpers (cj/--arrayify, cj/--unarrayify) already document an explicit (start end) contract accurately and are region-required by design, so they needed no docstring change — each pair now has one clear, consistent contract. Tests cover the helper for the region case, the no-region whole-buffer case, and an empty buffer.
Diffstat (limited to 'tests/test-org-export-config-task-default.el')
0 files changed, 0 insertions, 0 deletions