emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 970b06c360 04/11: Make 'denote-link-or-create' n


From: ELPA Syncer
Subject: [elpa] externals/denote 970b06c360 04/11: Make 'denote-link-or-create' not fail if there are no files (also see 8b6c019)
Date: Thu, 29 Feb 2024 03:57:58 -0500 (EST)

branch: externals/denote
commit 970b06c360fcc7d251353827b16523aae56c446f
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make 'denote-link-or-create' not fail if there are no files (also see 
8b6c019)
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 794bbf3f6d..0d482891ee 100644
--- a/denote.el
+++ b/denote.el
@@ -3724,7 +3724,7 @@ consists of just the identifier.  Else try to also 
include the
 file's title.  This has the same meaning as in `denote-link'."
   (interactive
    (let* ((target (denote-file-prompt)))
-     (unless (file-exists-p target)
+     (unless (and target (file-exists-p target))
        (setq target (denote--command-with-features #'denote 
:use-file-prompt-as-def-title :ignore-region :save :in-background)))
      (list target current-prefix-arg)))
   (unless (and (buffer-file-name) (denote-file-has-supported-extension-p 
(buffer-file-name)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]