[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 0dc0162933 09/10: Simplify denote-file-is-note-p
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 0dc0162933 09/10: Simplify denote-file-is-note-p |
Date: |
Thu, 16 May 2024 09:57:50 -0400 (EDT) |
branch: externals/denote
commit 0dc01629334963fdd987a46e64a0a4774cd81b8e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Simplify denote-file-is-note-p
---
README.org | 7 ++-----
denote.el | 8 +++-----
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/README.org b/README.org
index fba881e381..962fd3a2cd 100644
--- a/README.org
+++ b/README.org
@@ -4145,11 +4145,8 @@ might change them without further notice.
#+findex: denote-file-is-note-p
+ Function ~denote-file-is-note-p~ :: Return non-nil if =FILE= is an
- actual Denote note. For our purposes, a note must not be a
- directory, must satisfy ~file-regular-p~, its path must be part of
- the variable ~denote-directory~, it must have a Denote identifier in
- its name, and use one of the extensions implied by
- ~denote-file-type~.
+ actual Denote note. For our purposes, a note must satisfy
+ ~file-regular-p~ and ~denote-filename-is-note-p~.
#+findex: denote-file-has-identifier-p
+ Function ~denote-file-has-identifier-p~ :: Return non-nil if =FILE=
diff --git a/denote.el b/denote.el
index bc69b4ce82..20a5ba15db 100644
--- a/denote.el
+++ b/denote.el
@@ -939,11 +939,9 @@ and use one of the extensions implied by
`denote-file-type'."
(defun denote-file-is-note-p (file)
"Return non-nil if FILE is an actual Denote note.
-For our purposes, a note must not be a directory, must satisfy
-`file-regular-p' and `denote-filename-is-note-p'."
- (and (not (file-directory-p file))
- (file-regular-p file)
- (denote-filename-is-note-p file)))
+For our purposes, a note must satisfy `file-regular-p' and
+`denote-filename-is-note-p'."
+ (and (file-regular-p file) (denote-filename-is-note-p file)))
(defun denote-file-has-signature-p (file)
"Return non-nil if FILE has a Denote identifier."
- [elpa] externals/denote updated (27ca3c9b02 -> 88a67e9493), ELPA Syncer, 2024/05/16
- [elpa] externals/denote 6becb0951e 03/10: Make denote-retrieve-front-matter-* functions handle nil file-type, ELPA Syncer, 2024/05/16
- [elpa] externals/denote 9e893fb82c 05/10: Remove outdated info in docstring of denote-directory-files, ELPA Syncer, 2024/05/16
- [elpa] externals/denote d63c10dc1a 06/10: Update docstring of denote--add-front-matter, ELPA Syncer, 2024/05/16
- [elpa] externals/denote 0dc0162933 09/10: Simplify denote-file-is-note-p,
ELPA Syncer <=
- [elpa] externals/denote efa9587a6c 02/10: Handle nil case when using denote-retrieve-title-or-filename, ELPA Syncer, 2024/05/16
- [elpa] externals/denote 88a67e9493 10/10: Make some stylistic changes for how non-nil arguments are named, ELPA Syncer, 2024/05/16
- [elpa] externals/denote 80827dfb1d 07/10: Use denote-filename-is-note-p instead of denote-file-is-note-p in some functions, ELPA Syncer, 2024/05/16
- [elpa] externals/denote 10be24b0ed 01/10: Make denote--directory-get-files return only regular files, ELPA Syncer, 2024/05/16
- [elpa] externals/denote df44843766 04/10: Make denote-filetype-heuristics return nil with unrecognized file types, ELPA Syncer, 2024/05/16
- [elpa] externals/denote 6356d5262a 08/10: Merge pull request #350 from jeanphilippegg/cleanup, ELPA Syncer, 2024/05/16