[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre 187685e08e 70/76: Use cond instead of cl-case
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/calibre 187685e08e 70/76: Use cond instead of cl-case |
|
Date: |
Thu, 18 May 2023 09:57:46 -0400 (EDT) |
branch: externals/calibre
commit 187685e08ee93f406e5b0c020edfd430d375cd83
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Use cond instead of cl-case
* calibre-library.el (calibre-library-execute): Use cond instead of
cl-case when matching marks.
cl-case does not evaluate its keys, and as such is unsuited to
matching non-literal constants such as calibre-mod-marker and
calibre-del-marker.
---
calibre-library.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/calibre-library.el b/calibre-library.el
index ade73112f8..64e4f01622 100644
--- a/calibre-library.el
+++ b/calibre-library.el
@@ -73,15 +73,15 @@
(defun calibre-library-execute ()
"Performed marked Library actions."
(interactive nil calibre-library-mode)
- (let (remove-list modified-list mark)
+ (let (remove-list modified-list)
(save-excursion
(goto-char (point-min))
(while (not (eobp))
- (setf mark (char-after))
- (let ((book (tabulated-list-get-id)))
- (cl-case mark
- (calibre-del-marker (push book remove-list))
- (calibre-mod-marker (push book modified-list))))
+ (let ((book (tabulated-list-get-id))
+ (mark (char-after)))
+ (cond
+ ((eql mark calibre-del-marker) (push book remove-list))
+ ((eql mark calibre-mod-marker) (push book modified-list))))
(forward-line)))
(when remove-list (calibre-library-remove-books remove-list))
(when modified-list (calibre-edit-commit-edits modified-list)))
- [elpa] externals/calibre aa28fa3ede 37/76: Use let instead of let*, (continued)
- [elpa] externals/calibre aa28fa3ede 37/76: Use let instead of let*, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 6a7a2344c1 41/76: Initialise tabulated list header, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 5d49526414 42/76: Add support for search and virtual libraries, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre afe5581b7d 43/76: Only prompt to select library if more than one is defined, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 22ccc6ff2b 38/76: Fix byte compiler warning, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre abad9116cb 08/76: Correct function name, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 761f35b771 10/76: Remove dead code, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre edb81a3d01 52/76: Add some utility functions, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 4b6af65d08 58/76: Support editing book metadata, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre ac4c02aeb9 47/76: Add support for composite filters, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 187685e08e 70/76: Use cond instead of cl-case,
ELPA Syncer <=
- [elpa] externals/calibre 0e7221461b 62/76: Add ability to use CLI interface instead of SQLite, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 13141efce4 67/76: Bump package version, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 3a7abbee56 64/76: Use compat to lower required Emacs version, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 090b28d6ec 69/76: Use int-to-string instead of format, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre fd949f1813 72/76: Set name of calibre-library-mode, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 8560bbd48b 75/76: Sort in ascending order by series index, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre dc4b5f79ac 11/76: Add commentary, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 7d97c360f1 15/76: Update package version to 1.0, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 38e0beb840 03/76: Get publishers, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 188a3da504 04/76: Add functions to add and remove books, ELPA Syncer, 2023/05/18