branch: externals/calibre
commit 22ccc6ff2b4965e396c355c8efd0cb7e99cb98d5
Author: Kjartan Óli Ágústsson <[email protected]>
Commit: Kjartan Óli Ágústsson <[email protected]>
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'