[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre afe5581b7d 43/76: Only prompt to select library
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/calibre afe5581b7d 43/76: Only prompt to select library if more than one is defined |
|
Date: |
Thu, 18 May 2023 09:57:44 -0400 (EDT) |
branch: externals/calibre
commit afe5581b7d6941a2be76b0266cf8a545e22971cd
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Only prompt to select library if more than one is defined
* calibre-db.el (calibre-select-library): Add a check if there is more
than one library defined before prompting.
---
calibre-db.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/calibre-db.el b/calibre-db.el
index 9bbb623f7a..976714f4b6 100644
--- a/calibre-db.el
+++ b/calibre-db.el
@@ -229,8 +229,11 @@ If FORCE is non-nil the list is refreshed from the
database."
If LIBRARY is non-nil, select that instead."
(interactive)
(setf calibre--library (if library
- library
- (completing-read "Library: "
(calibre--library-names) nil t))
+ library
+ (let ((names (calibre--library-names)))
+ (if (not (length> names 1))
+ (car names)
+ (completing-read "Library: " names nil t))))
calibre--db nil
calibre--books nil)
(calibre-library--refresh t))
- [elpa] externals/calibre 6ddfd7048d 14/76: Add ability to have multiple libraries, (continued)
- [elpa] externals/calibre 6ddfd7048d 14/76: Add ability to have multiple libraries, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre b0f8f76723 16/76: Remove references to unimplemented functions, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 06148ea20a 01/76: Initial commit, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre f3a3119322 22/76: Fix calibre customisation group, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 77c8cf66b7 24/76: Remove duplicate defcustom declaration, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 20e5bc41f1 25/76: Fix default value of calibre-calibredb-executable, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre e5d853eb32 34/76: Use the -r flag when adding books, ELPA Syncer, 2023/05/18
- [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 <=
- [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, 2023/05/18
- [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