Skip to content

Commit

Permalink
Merge pull request #88 from krisbalintona/fix-chatty-no-highlights-logic
Browse files Browse the repository at this point in the history
fix demoted error from implementation of `org-remark-report-no-highlights`
  • Loading branch information
nobiot authored Nov 1, 2024
2 parents d37ec06 + 3079a31 commit 2c30e01
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions org-remark.el
Original file line number Diff line number Diff line change
Expand Up @@ -1618,9 +1618,10 @@ highlight is a property list in the following properties:
(org-with-wide-buffer
(let ((heading (org-find-property
org-remark-prop-source-file source-file-name)))
(if (and (not heading) org-remark-report-no-highlights)
(message "No highlights or annotations found for %s."
source-file-name)
(if (not heading)
(when org-remark-report-no-highlights
(message "No highlights or annotations found for %s."
source-file-name))
(goto-char heading)
;; Narrow to only subtree for a single file. `org-find-property'
;; ensures that it is the beginning of a headline
Expand Down

0 comments on commit 2c30e01

Please sign in to comment.