aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pearl-query.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-24 14:25:09 -0500
committerCraig Jennings <c@cjennings.net>2026-05-24 14:25:09 -0500
commit0999c0684f945eb81293e0c56f8e7a506614e699 (patch)
treedbb887913d888b5d57cfd0010206714ada67d67b /tests/test-pearl-query.el
parentbd067b41d6ca161f27761b8b2bfcfaa402d81c87 (diff)
downloadpearl-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-query.el')
0 files changed, 0 insertions, 0 deletions