branch: externals/denote commit 1bdd0eb5e7ba1000e567a5452b84c9c75da73cb1 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Fix argument in denote--writable-and-supported-p --- denote.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/denote.el b/denote.el index f5d16c8824..611caa39be 100644 --- a/denote.el +++ b/denote.el @@ -447,9 +447,9 @@ trailing hyphen." (defun denote--writable-and-supported-p (file) "Return non-nil if FILE is writable and has supported extension." - (and (file-regular-p file-name) - (file-writable-p file-name) - (denote--file-supported-extension-p file-name))) + (and (file-regular-p file) + (file-writable-p file) + (denote--file-supported-extension-p file))) (defun denote--file-name-relative-to-denote-directory (file) "Return file name of FILE relative to the variable `denote-directory'.