[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre 1d23ae29ff 1/9: Use pop instead of (setf lst (c
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/calibre 1d23ae29ff 1/9: Use pop instead of (setf lst (cdr lst)) |
|
Date: |
Tue, 16 Jan 2024 12:57:40 -0500 (EST) |
branch: externals/calibre
commit 1d23ae29ff61695a08f4910c242e6cd17e38adf7
Author: Kjartan Oli Agustsson <kjartanoli@disroot.org>
Commit: Kjartan Oli Agustsson <kjartanoli@disroot.org>
Use pop instead of (setf lst (cdr lst))
* calibre-search.el (calibre-library-clear-last-search): Use pop
instead of setf-ing calibre-library--filters to its cdr.
pop macroexpands to equivalent code but communicates intent better
using less characters.
---
calibre-search.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/calibre-search.el b/calibre-search.el
index d2064f349e..c17d1170a8 100644
--- a/calibre-search.el
+++ b/calibre-search.el
@@ -82,7 +82,7 @@ ARGS is the argument list of a transient command."
"Clear the last applied search filter."
(interactive)
(when calibre-library--filters
- (setf calibre-library--filters (cdr calibre-library--filters)))
+ (pop calibre-library--filters))
(calibre-library--refresh))
(transient-define-prefix calibre-search ()
- [elpa] externals/calibre updated (2c4221ecfa -> 7fe464d218), ELPA Syncer, 2024/01/16
- [elpa] externals/calibre 828be28570 4/9: Allow opening books in an external program, ELPA Syncer, 2024/01/16
- [elpa] externals/calibre d8c85ae51b 8/9: Enable fuzzy searching, ELPA Syncer, 2024/01/16
- [elpa] externals/calibre 7fe464d218 9/9: Bump version number, ELPA Syncer, 2024/01/16
- [elpa] externals/calibre 5b2b8a878d 2/9: Move some index commands, ELPA Syncer, 2024/01/16
- [elpa] externals/calibre 1d23ae29ff 1/9: Use pop instead of (setf lst (cdr lst)),
ELPA Syncer <=
- [elpa] externals/calibre c350125e48 5/9: Fix docstring, ELPA Syncer, 2024/01/16
- [elpa] externals/calibre 5a92273025 6/9: Fix punctuation, ELPA Syncer, 2024/01/16
- [elpa] externals/calibre 6446221d20 7/9: Reword description of composite filters, ELPA Syncer, 2024/01/16
- [elpa] externals/calibre 339258061e 3/9: Expand file name before opening files, ELPA Syncer, 2024/01/16