branch: externals/denote
commit d86cb704260f9e4815d863eb4059514f4e587577
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Make sure denote-get-link-description issues a warning only when it must
Otherwise it warns every time a link is inserted, which is wrong.
Thanks to Oliver Epper for reporting the problem in issue 651:
<https://github.com/protesilaos/denote/issues/651>.
---
denote.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/denote.el b/denote.el
index 71559b69c1..d2d96fa99c 100644
--- a/denote.el
+++ b/denote.el
@@ -5,7 +5,7 @@
;; Author: Protesilaos Stavrou <[email protected]>
;; Maintainer: Protesilaos Stavrou <[email protected]>
;; URL: https://github.com/protesilaos/denote
-;; Version: 4.1.2
+;; Version: 4.1.3
;; Package-Requires: ((emacs "28.1"))
;; This file is NOT part of GNU Emacs.
@@ -5301,7 +5301,7 @@ assigned to `denote-link-description-format' accepts a
single FILE
argument. In that case, the function takes care to find the TYPE on its
own to return the appropriate description."
(cond
- ((when-let* ((_ (and file-type (functionp denote-link-description-format)))
+ ((when-let* ((_ (functionp denote-link-description-format))
;; NOTE 2025-11-23: We used to have
;; `denote-link-description-format' accept a function
;; with a single parameter. Now we expect two