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

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

[elpa] externals/denote f02cc51e2d 2/5: Reformat denote--id-exists-p


From: ELPA Syncer
Subject: [elpa] externals/denote f02cc51e2d 2/5: Reformat denote--id-exists-p
Date: Fri, 14 Jul 2023 06:58:11 -0400 (EDT)

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

    Reformat denote--id-exists-p
---
 denote.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/denote.el b/denote.el
index e84cfa7e60..d14c0c08ea 100644
--- a/denote.el
+++ b/denote.el
@@ -1619,10 +1619,10 @@ where the former does not read dates without a time 
component."
 ;; `denote' command does call `denote-barf-duplicate-id'.
 (defun denote--id-exists-p (identifier)
   "Return non-nil if IDENTIFIER already exists."
-  (seq-some (lambda (file)
-              (string-prefix-p identifier (file-name-nondirectory file)))
-            (append (denote-directory-files)
-                    (denote--buffer-file-names))))
+  (seq-some
+   (lambda (file)
+     (string-prefix-p identifier (file-name-nondirectory file)))
+   (append (denote-directory-files) (denote--buffer-file-names))))
 
 (defun denote-barf-duplicate-id (identifier)
   "Throw a `user-error' if IDENTIFIER already exists."



reply via email to

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