[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre 7396636341 30/76: Only refresh Library buffer i
From: |
ELPA Syncer |
Subject: |
[elpa] externals/calibre 7396636341 30/76: Only refresh Library buffer if it exists |
Date: |
Thu, 18 May 2023 09:57:43 -0400 (EDT) |
branch: externals/calibre
commit 73966363414eaad96d370a928cb1aceb84bbec85
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Only refresh Library buffer if it exists
* calibre-db.el (calibre-library--refresh): Wrap body in (when
buffer...)
---
calibre-db.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/calibre-db.el b/calibre-db.el
index cfda81fe0d..9f865a269d 100644
--- a/calibre-db.el
+++ b/calibre-db.el
@@ -146,11 +146,12 @@ If no library is active, prompt the user to select one."
"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)))
+ (when buffer
(with-current-buffer buffer
(setf tabulated-list-entries
(mapcar #'calibre-book--print-info
(calibre--books force)))
- (tabulated-list-print))))
+ (tabulated-list-print)))))
(defun calibre-book--print-info (book)
"Return list suitable as a value of `tabulated-list-entries'.
- [elpa] externals/calibre 7a8ed52e86 51/76: Set revert-buffer-function instead of using revert hooks, (continued)
- [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
- [elpa] externals/calibre 5e81e98079 18/76: Add README, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre bdb11248c9 20/76: Move metadata into calibre.el, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 1c0bf191d5 35/76: Refresh Library buffer when calibre-library-columns is changed, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre c644d0761d 40/76: Slight improvement to README, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre be94be6962 46/76: Add ability to filter by series and format, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 89e52d61c0 50/76: Only allow single publisher per book, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre c6a5772da0 29/76: Fix docstring, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 7396636341 30/76: Only refresh Library buffer if it exists,
ELPA Syncer <=
- [elpa] externals/calibre 6d7ed97ab6 31/76: Use the value of calibre-calibredb-executable, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 4a0d5b9606 32/76: Factor the setting of the Library header into a function, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 85e3ac6337 48/76: Add missing space in completing-read prompt, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 6366966c9b 60/76: Add abstraction layer on top of calibre-db, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 9a54c7a6b4 09/76: Add function to add books from dired, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 533c68f55f 27/76: Do right alignment correctly, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 3e6ce3abc2 39/76: Bump package version, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 569c096746 45/76: Use macros to avoid repeating similar function definitions, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 04c484a2ef 55/76: Preserve marks when refreshing library, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre d51ac1d3e6 54/76: Don't use message to format string, ELPA Syncer, 2023/05/18