branch: externals/denote
commit 67f5a7bcead3103013bdb48ee69af690c1baa7ed
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Add accidentally removed buffer-file-name from 
denote-fontify-links-mode-maybe
---
 denote.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index 6f9777c826..af653346ea 100644
--- a/denote.el
+++ b/denote.el
@@ -5,7 +5,7 @@
 ;; Author: Protesilaos Stavrou <i...@protesilaos.com>
 ;; Maintainer: Protesilaos Stavrou <i...@protesilaos.com>
 ;; URL: https://github.com/protesilaos/denote
-;; Version: 3.0.0
+;; Version: 3.0.1
 ;; Package-Requires: ((emacs "28.1"))
 
 ;; This file is NOT part of GNU Emacs.
@@ -4217,7 +4217,8 @@ To be used as a `thing-at' provider."
 
 (defun denote-fontify-links-mode-maybe ()
   "Enable `denote-fontify-links-mode' in a denote file unless in `org-mode'."
-  (when (and (not (derived-mode-p 'org-mode))
+  (when (and buffer-file-name
+             (not (derived-mode-p 'org-mode))
              (denote-file-is-note-p buffer-file-name))
     (denote-fontify-links-mode)))
 

Reply via email to