branch: externals/denote commit 3846d68352ecbf4f5bb7158acc0ff3f4059c8424 Author: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com> Commit: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>
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