[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre 22ccc6ff2b 38/76: Fix byte compiler warning
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/calibre 22ccc6ff2b 38/76: Fix byte compiler warning |
|
Date: |
Thu, 18 May 2023 09:57:44 -0400 (EDT) |
branch: externals/calibre
commit 22ccc6ff2b4965e396c355c8efd0cb7e99cb98d5
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Fix byte compiler warning
* calibre-db.el (calibre-library--set-header): Move above
calibre-library-columns to prevent a byte compiler warning about an
undefined function.
---
calibre-db.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/calibre-db.el b/calibre-db.el
index ce5e6fc659..df24d3b511 100644
--- a/calibre-db.el
+++ b/calibre-db.el
@@ -153,6 +153,13 @@ If FORCE is non-nil fetch book data from the database."
(calibre--books force)))
(tabulated-list-print)))))
+(defun calibre-library--set-header ()
+ "Set the header of the Library buffer."
+ (let ((buffer (get-buffer calibre-library-buffer)))
+ (when buffer
+ (with-current-buffer buffer
+ (setf tabulated-list-format (calibre-library--header-format))))))
+
(defcustom calibre-library-columns '((id . 4)
(title . 35)
(authors . 20)
@@ -184,13 +191,6 @@ column should have."
:package-version '("calibre" . "0.1.0")
:group 'calibre)
-(defun calibre-library--set-header ()
- "Set the header of the Library buffer."
- (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.
Return a vector suitable as the value of `tabulated-list-format'
- [elpa] externals/calibre b0f8f76723 16/76: Remove references to unimplemented functions, (continued)
- [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, 2023/05/18
- [elpa] externals/calibre 22ccc6ff2b 38/76: Fix byte compiler warning,
ELPA Syncer <=
- [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
- [elpa] externals/calibre 090b28d6ec 69/76: Use int-to-string instead of format, ELPA Syncer, 2023/05/18