mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
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>.
This commit is contained in:
parent
529148eba6
commit
d86cb70426
|
|
@ -5,7 +5,7 @@
|
|||
;; Author: Protesilaos Stavrou <info@protesilaos.com>
|
||||
;; Maintainer: Protesilaos Stavrou <info@protesilaos.com>
|
||||
;; 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue