From c40d7f4856adc1dff6ccba39a88d86741263efd5 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Thu, 17 Sep 2026 17:04:09 -0700 Subject: [PATCH] Fix bug in Code Notes system --- ha-code-notes.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ha-code-notes.org b/ha-code-notes.org index d4753ff..aca268b 100644 --- a/ha-code-notes.org +++ b/ha-code-notes.org @@ -494,9 +494,10 @@ A code file with an associated notes file is easy to forget about. Let's mark, i (org-map-entries (lambda () (when (equal (org-get-property "XREF") orig-file) - (push (cons (org-entry-get nil "XREF_NAME" t) - (string-to-number (org-entry-get nil "XREF_LINE"))) - notes))))) + (when-let ((line (org-entry-get nil "XREF_LINE"))) + (push (cons (org-entry-get nil "XREF_NAME" t) + (string-to-number line)) + notes)))))) (dolist (note notes) (save-excursion (ha-code-notes-location-goto nil (car note) (cdr note))