diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-20 11:51:12 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-20 11:51:12 -0400 |
| commit | ee77dc273ac77e7b60f7ae7000e4ddf8ecdd9719 (patch) | |
| tree | 37eb96e0a038be7ae87bd64ba2c18ad03ce1579d /modules/external-open-lib.el | |
| parent | 47fa00d3905e97ac114aa5094cb1f5c1232bd642 (diff) | |
| download | dotemacs-ee77dc273ac77e7b60f7ae7000e4ddf8ecdd9719.tar.gz dotemacs-ee77dc273ac77e7b60f7ae7000e4ddf8ecdd9719.zip | |
refactor(org-capture): extract the find-or-create-top-heading block
cj/org-capture--goto-file-headline, cj/--org-capture-goto-open-work, and cj/--org-capture-goto-exact-headline each repeated the same positioning block: search from point-min, jump to the heading on a match, else append it at end of buffer and back up. Extract cj/--org-find-or-create-top-heading taking the search regexp and the heading line; the three sites delegate. Behavior unchanged; adds direct coverage of the helper with a plain regexp.
Diffstat (limited to 'modules/external-open-lib.el')
0 files changed, 0 insertions, 0 deletions
