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

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

[elpa] externals/denote 64c5b74dbd 2/7: Relax conditionality in denote--


From: ELPA Syncer
Subject: [elpa] externals/denote 64c5b74dbd 2/7: Relax conditionality in denote--retrieve-search
Date: Thu, 11 Aug 2022 02:57:32 -0400 (EDT)

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

    Relax conditionality in denote--retrieve-search
---
 denote.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index dcfb2c721c..f5d16c8824 100644
--- a/denote.el
+++ b/denote.el
@@ -584,7 +584,10 @@ output is sorted with `string-lessp'."
 (defun denote--retrieve-search (file key-regexp &optional key)
   "Return value of KEY-REGEXP key in current buffer from FILE.
 If optional KEY is non-nil, return the key instead."
-  (when (denote--only-note-p file)
+  ;; NOTE 2022-08-11: The `or' is superfluous, but I am keeping it as a
+  ;; reminder.  See TODO comment above `denote--only-note-p'
+  (when (or (denote--writable-and-supported-p file)
+            (denote--only-note-p file))
     (with-temp-buffer
       (insert-file-contents file)
       (save-excursion



reply via email to

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