[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote d4d67a6118 13/14: Simplify some lambdas
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote d4d67a6118 13/14: Simplify some lambdas |
Date: |
Mon, 15 Aug 2022 23:57:30 -0400 (EDT) |
branch: externals/denote
commit d4d67a6118fa395daa6841b937da7673f7290309
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Simplify some lambdas
---
denote.el | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/denote.el b/denote.el
index 21a56bc2ae..736aa97c4b 100644
--- a/denote.el
+++ b/denote.el
@@ -486,7 +486,7 @@ The returned files only need to have an identifier. They may
include files that are not of a valid file type as specified by
`denote-file-types'."
(mapcar
- (lambda (s) (expand-file-name s))
+ #'expand-file-name
(seq-remove
(lambda (f)
(not (denote--file-has-identifier-p f)))
@@ -522,8 +522,7 @@ Files are those which satisfy
`denote--file-has-identifier-p' and
"Extract keywords from `denote--directory-files'.
This function returns duplicates. The `denote-keywords' is the
one that doesn't."
- (mapcan (lambda (p)
- (denote--extract-keywords-from-path p))
+ (mapcan #'denote--extract-keywords-from-path
(denote--directory-files)))
(defun denote-keywords ()
@@ -1007,8 +1006,7 @@ where the former does not read dates without a time
component."
#'denote--only-note-p
(delq nil
(mapcar
- (lambda (buf)
- (buffer-file-name buf))
+ #'buffer-file-name
(buffer-list)))))
;; In normal usage, this should only be relevant for `denote-date',
@@ -1615,8 +1613,7 @@ This command is useful for synchronizing multiple file
names with
their respective front matter."
(interactive nil dired-mode)
(if-let ((marks (seq-filter
- (lambda (file)
- (denote--writable-and-supported-p file))
+ #'denote--writable-and-supported-p
(dired-get-marked-files))))
(progn
(dolist (file marks)
@@ -1954,8 +1951,7 @@ format is always [[denote:IDENTIFIER]]."
(defun denote-link--find-file-prompt (files)
"Prompt for linked file among FILES."
- (let ((file-names (mapcar (lambda (f)
- (denote--file-name-relative-to-denote-directory
f))
+ (let ((file-names (mapcar #'denote--file-name-relative-to-denote-directory
files)))
(completing-read
"Find linked file "
@@ -2182,10 +2178,8 @@ inserts links with just the identifier."
;; NOTE 2022-07-21: I don't think we need a history for this one.
(defun denote-link--buffer-prompt (buffers)
"Select buffer from BUFFERS visiting Denote notes."
- (let ((buffer-file-names (mapcar
- (lambda (name)
- (file-name-nondirectory name))
- buffers)))
+ (let ((buffer-file-names (mapcar #'file-name-nondirectory
+ buffers)))
(completing-read
"Select note buffer: "
(denote--completion-table 'buffer buffer-file-names)
- [elpa] externals/denote 0a22460e4f 09/14: Remove checks in front matter retrieval functions, (continued)
- [elpa] externals/denote 0a22460e4f 09/14: Remove checks in front matter retrieval functions, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 4ef21b0217 01/14: Rename denote-backlinks-mode and denote-backlinks-mode-map, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 9e28fc8a78 04/14: Fix docstring of denote--retrieve-filename-title, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 0f045279e2 08/14: Remove the check for empty file from denote--edit-front-matter-p, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 71008dc939 12/14: Remove check for denote--only-note-p in denote--add-front-matter, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 89d1fdc1dd 11/14: Simplify denote--valid-date, ELPA Syncer, 2022/08/15
- [elpa] externals/denote c7bf701030 06/14: Remove condition in denote--edit-front-matter-p, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 1aeee8410f 07/14: Remove check for writable-and-supported-p in denote--edit-front-matter-p, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 4e269bf260 14/14: Merge pull request #94 from jeanphilippegg/cleanup, ELPA Syncer, 2022/08/15
- [elpa] externals/denote 02e35f7e5d 10/14: Remove denote--retrieve-files-in-output, ELPA Syncer, 2022/08/15
- [elpa] externals/denote d4d67a6118 13/14: Simplify some lambdas,
ELPA Syncer <=