branch: externals/denote commit 1d84215f7a777a9807c68eb296b18ec8351344ec Merge: 4d39e1453d 3846d68352 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: GitHub <nore...@github.com>
Merge pull request #378 from jeanphilippegg/fix-fontification Only fontify files that have an identifier --- denote.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/denote.el b/denote.el index ddf931f158..34db7b5eee 100644 --- a/denote.el +++ b/denote.el @@ -3519,7 +3519,9 @@ and seconds." (re-search-forward "^.+$" limit t)) ;; dired-move-to-filename moves the point even if it returns nil (let ((saved-point (point))) - (if (dired-move-to-filename) + (if (and (dired-move-to-filename) + (save-match-data + (denote-file-has-identifier-p (buffer-substring (point) (line-end-position))))) (setq line-found t) (goto-char saved-point)))) (if line-found