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

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

[elpa] externals/denote c7bf701030 06/14: Remove condition in denote--ed


From: ELPA Syncer
Subject: [elpa] externals/denote c7bf701030 06/14: Remove condition in denote--edit-front-matter-p
Date: Mon, 15 Aug 2022 23:57:30 -0400 (EDT)

branch: externals/denote
commit c7bf701030e23240937180ace07bc271cf660888
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Remove condition in denote--edit-front-matter-p
    
    - Do not check if the file is inside denote-directory.
---
 denote.el | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/denote.el b/denote.el
index b798e3d1d4..8d6dbd4a2d 100644
--- a/denote.el
+++ b/denote.el
@@ -1344,13 +1344,9 @@ relevant for operations that insert or rewrite the front 
matter
 in a Denote note.
 
 For the purposes of this test, FILE is a Denote note when it (i)
-is a regular file, (ii) is writable, (iii) has a supported file
-type extension per `denote-file-type', and (iv) is stored in the
-variable `denote-directory'."
+is a regular file and (ii) is writable."
   (and (denote--writable-and-supported-p file)
        (not (denote--file-empty-p file))
-       ;; Heuristic to check if this is one of our notes
-       (string-prefix-p (denote-directory) (expand-file-name file)) ; FIXME 
2022-08-11: Why do we need this?
        (denote--regexp-in-file-p (denote--title-key-regexp file-type) file)
        (denote--regexp-in-file-p (denote--keywords-key-regexp file-type) 
file)))
 



reply via email to

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