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 | 6a251d42428d479ef6bf4c3f2b42cfab82d00a7f (patch) | |
| tree | 275734ea7481330962b02f41ee2cf3dbb0bed7dc /tests/test-custom-buffer-file-print-diff-eww.el | |
| parent | b5f1b702d5eb5dfeb3e38c9c6f5be2ce02b53f0c (diff) | |
| download | dotemacs-6a251d42428d479ef6bf4c3f2b42cfab82d00a7f.tar.gz dotemacs-6a251d42428d479ef6bf4c3f2b42cfab82d00a7f.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 'tests/test-custom-buffer-file-print-diff-eww.el')
0 files changed, 0 insertions, 0 deletions
