[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre 393ae4a945 12/76: Add force option to library r
From: |
ELPA Syncer |
Subject: |
[elpa] externals/calibre 393ae4a945 12/76: Add force option to library refresh |
Date: |
Thu, 18 May 2023 09:57:41 -0400 (EDT) |
branch: externals/calibre
commit 393ae4a9450dbc7bac64359f2a0c6e51184787ee
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Add force option to library refresh
* calibre-library.el (calibre-library--refresh): Added force argument
(calibre-library): Pass t to calibre-library--refresh instead of
directly calling calibre--books
---
calibre-library.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/calibre-library.el b/calibre-library.el
index 0e4b7b54b6..3db7ca6294 100644
--- a/calibre-library.el
+++ b/calibre-library.el
@@ -27,13 +27,14 @@
(defconst calibre-library-buffer "*Library*")
-(defun calibre-library--refresh ()
- "Refresh the contents of the library buffer with BOOKS."
+(defun calibre-library--refresh (&optional force)
+ "Refresh the contents of the library buffer.
+If FORCE is non-nil fetch book data from the database."
(let* ((buffer (get-buffer calibre-library-buffer)))
(with-current-buffer buffer
(setf tabulated-list-entries
(mapcar #'calibre-book--print-info
- (calibre--books)))
+ (calibre--books force)))
(tabulated-list-print))))
;;;###autoload
@@ -146,11 +147,10 @@ ARGS should be a list of strings. SENTINEL is a process
sentinel to install."
(defun calibre-library ()
"List all books in Calibre Library `calibrary-dir'."
(interactive)
- (calibre--books t)
(let ((buffer (get-buffer-create calibre-library-buffer)))
(with-current-buffer buffer
(calibre-library-mode)
- (calibre-library--refresh)
+ (calibre-library--refresh t)
(display-buffer buffer))))
(provide 'calibre-library)
- [elpa] externals/calibre 0e7221461b 62/76: Add ability to use CLI interface instead of SQLite, (continued)
- [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
- [elpa] externals/calibre 393ae4a945 12/76: Add force option to library refresh,
ELPA Syncer <=
- [elpa] externals/calibre ecf03e1842 19/76: Fix circular dependencies and byte compiler warnings, ELPA Syncer, 2023/05/18
- [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