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

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

[elpa] externals/denote c68a8e224a 17/27: Tweak denote--get-note-path-by


From: ELPA Syncer
Subject: [elpa] externals/denote c68a8e224a 17/27: Tweak denote--get-note-path-by-id for style
Date: Sun, 3 Jul 2022 00:57:35 -0400 (EDT)

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

    Tweak denote--get-note-path-by-id for style
---
 denote.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index ac59b77955..824d04d89a 100644
--- a/denote.el
+++ b/denote.el
@@ -358,8 +358,10 @@ names that are relative to the variable 
`denote-directory'."
 
 (defun denote--get-note-path-by-id (id)
   "Return the absolute path of ID note in variable `denote-directory'."
-  (cl-find-if (lambda (f) (string-prefix-p id (file-name-nondirectory f)))
-              (denote--directory-files :absolute)))
+  (cl-find-if
+   (lambda (f)
+     (string-prefix-p id (file-name-nondirectory f)))
+   (denote--directory-files :absolute)))
 
 (defun denote--directory-files-matching-regexp (regexp &optional 
no-check-current)
   "Return list of files matching REGEXP.



reply via email to

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