[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre bc26df0b48 36/76: Set tabulated-list-format in
From: |
ELPA Syncer |
Subject: |
[elpa] externals/calibre bc26df0b48 36/76: Set tabulated-list-format in the correct buffer |
Date: |
Thu, 18 May 2023 09:57:44 -0400 (EDT) |
branch: externals/calibre
commit bc26df0b48ca918d4cfecc74b65b5d36a91be5e4
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Set tabulated-list-format in the correct buffer
* calibre-db.el (calibre-library--set-header): Get the Library buffer,
and only set tabulated-list-format if it exists, and then in that
buffer.
---
calibre-db.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/calibre-db.el b/calibre-db.el
index 9d43190d5c..5de3e6a3ee 100644
--- a/calibre-db.el
+++ b/calibre-db.el
@@ -186,7 +186,10 @@ column should have."
(defun calibre-library--set-header ()
"Set the header of the Library buffer."
- (setf tabulated-list-format (calibre-library--header-format)))
+ (let ((buffer (get-buffer calibre-library-buffer)))
+ (when buffer
+ (with-current-buffer buffer
+ (setf tabulated-list-format (calibre-library--header-format))))))
(defun calibre-library--header-format ()
"Create the header for the Library buffer.
- [elpa] externals/calibre 8560bbd48b 75/76: Sort in ascending order by series index, (continued)
- [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, 2023/05/18
- [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 <=
- [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, 2023/05/18
- [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