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 | d96a162db3be25cb812d08a10c831baa2790c492 (patch) | |
| tree | 6b633916138901a37321fd57a3f851624cc534f9 /modules/term-config.el | |
| parent | 3a0fa280183d426935956979ad713fb6e7284488 (diff) | |
| download | dotemacs-d96a162db3be25cb812d08a10c831baa2790c492.tar.gz dotemacs-d96a162db3be25cb812d08a10c831baa2790c492.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/term-config.el')
0 files changed, 0 insertions, 0 deletions
