diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-24 14:25:09 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-24 14:25:09 -0500 |
| commit | 0999c0684f945eb81293e0c56f8e7a506614e699 (patch) | |
| tree | dbb887913d888b5d57cfd0010206714ada67d67b /tests/test-pearl-commands.el | |
| parent | bd067b41d6ca161f27761b8b2bfcfaa402d81c87 (diff) | |
| download | pearl-0999c0684f945eb81293e0c56f8e7a506614e699.tar.gz pearl-0999c0684f945eb81293e0c56f8e7a506614e699.zip | |
refactor: extract the issue-at-point guard into a helper
The guard `(unless (ignore-errors (org-back-to-heading t) t) (user-error ...))` was copy-pasted across ten issue-at-point commands. I pulled it into pearl--goto-heading-or-error, which takes an optional message so the one comment-specific variant ("Not on a Linear comment") still reads right. Same point move, same user-error type and text — no behavior change; 353 tests green.
Diffstat (limited to 'tests/test-pearl-commands.el')
0 files changed, 0 insertions, 0 deletions
