[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre ca0ae8a1d3 74/76: Pick some format if no prefer
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/calibre ca0ae8a1d3 74/76: Pick some format if no preferred format is available |
|
Date: |
Thu, 18 May 2023 09:57:47 -0400 (EDT) |
branch: externals/calibre
commit ca0ae8a1d31a73bd78e028b21d55433dfdfc84c2
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Pick some format if no preferred format is available
* calibre-book.el (calibre-book--pick-format): Pick some available
format, if none of the user's preferred formats are available.
---
calibre-book.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/calibre-book.el b/calibre-book.el
index 6e3427a856..dea62879bf 100644
--- a/calibre-book.el
+++ b/calibre-book.el
@@ -107,8 +107,9 @@ for private functions."
(defun calibre-book--pick-format (book)
"Return the preferred format for BOOK."
- (car (seq-intersection calibre-format-preferences
- (calibre-book-formats book))))
+ (let ((pref (seq-intersection calibre-format-preferences
+ (calibre-book-formats book))))
+ (car (if pref pref (calibre-book-formats book)))))
(defun calibre-book-sort-by-series (a b)
"Return t if A should appear before B when sorting by series."
- [elpa] externals/calibre e2863a9d6a 21/76: Fix byte compiler warning, (continued)
- [elpa] externals/calibre e2863a9d6a 21/76: Fix byte compiler warning, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 330471a75f 26/76: Fix circular dependency and byte compiler warnings, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre fd1b0e5fd7 28/76: Use message instead of display-warning, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre bc26df0b48 36/76: Set tabulated-list-format in the correct buffer, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 07df132f5d 53/76: Error if no libraries are defined, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre b7d6dd90f1 57/76: Add customisation types to book slots, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 4e4bf841cb 59/76: Rename calibre-make-book, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 832e91827d 63/76: Move calibre--library to calibre-util, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre b43ab3a90c 73/76: Allow overriding format preferences, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 2b64cb76ad 49/76: Add support for displaying publication date, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre ca0ae8a1d3 74/76: Pick some format if no preferred format is available,
ELPA Syncer <=
- [elpa] externals/calibre c6cb36b0a3 17/76: Fix byte-compiler warnings, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 8c791fb915 05/76: Add missing sort by series function, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 360fbf15cb 02/76: Fix defcustom version strings, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 76427bf5be 07/76: Allow customisation of the columns of the library buffer, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre d8682121d8 23/76: Reorder variable declarations, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre a750735b89 33/76: Add ability to revert Library buffer, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre b2c34a58d4 44/76: Use the right column name in query, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 7a8ed52e86 51/76: Set revert-buffer-function instead of using revert hooks, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 521fc7471b 66/76: Add faces to make library buffer easier to parse, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 8ae08bd7fb 68/76: Update README, ELPA Syncer, 2023/05/18