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

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

[elpa] externals/denote bbcbd66a26 08/22: Do not produce an error in den


From: ELPA Syncer
Subject: [elpa] externals/denote bbcbd66a26 08/22: Do not produce an error in denote-retrieve-filename-signature
Date: Mon, 20 Mar 2023 05:57:48 -0400 (EDT)

branch: externals/denote
commit bbcbd66a2604a2d2a1d1f2dd7e8bd4ed8b2d03e8
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@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



reply via email to

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