branch: externals/denote commit bbcbd66a2604a2d2a1d1f2dd7e8bd4ed8b2d03e8 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Do not produce an error in denote-retrieve-filename-signature --- denote.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/denote.el b/denote.el index b68045cd76..348cd87877 100644 --- a/denote.el +++ b/denote.el @@ -1238,11 +1238,9 @@ the function `denote-retrieve-or-create-file-identifier'." (defun denote-retrieve-filename-signature (file) "Extract signature from FILE name." - (if (denote-file-has-signature-p file) - (progn - (string-match denote-signature-regexp file) - (match-string 1 file)) - (error "Cannot find `%s' as a file with a Denote signature" file))) + (when (denote-file-has-signature-p file) + (string-match denote-signature-regexp file) + (match-string 1 file))) (define-obsolete-function-alias 'denote--retrieve-filename-identifier