[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/calibre 7a8ed52e86 51/76: Set revert-buffer-function in
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/calibre 7a8ed52e86 51/76: Set revert-buffer-function instead of using revert hooks |
|
Date: |
Thu, 18 May 2023 09:57:45 -0400 (EDT) |
branch: externals/calibre
commit 7a8ed52e866adef3c6d258668a2a68aa3fa6fcbb
Author: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Commit: Kjartan Óli Ágústsson <kjartanoli@disroot.org>
Set revert-buffer-function instead of using revert hooks
* calibre-library.el (calibre-library--revert): Remove
(calibre-library-revert): Add
(calibre-library-mode): Set revert-buffer-function.
Don't modify tabulated-list-revert-hook.
---
calibre-library.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/calibre-library.el b/calibre-library.el
index 9c2c70660a..6167dcd11d 100644
--- a/calibre-library.el
+++ b/calibre-library.el
@@ -103,8 +103,7 @@ ARGS should be a list of strings. SENTINEL is a process
sentinel to install."
(calibre-book-id book))))
(forward-line)))
-(defun calibre-library--revert ()
- "Refresh the contents of the Library buffer without moving point."
+(defun calibre-library-revert (&rest _IGNORED)
(let ((pos (tabulated-list-get-id)))
(calibre-library--refresh t)
(if (not pos)
@@ -135,8 +134,8 @@ ARGS should be a list of strings. SENTINEL is a process
sentinel to install."
(define-derived-mode calibre-library-mode tabulated-list-mode
(setf tabulated-list-padding 2)
- (calibre-library--set-header)
- (add-hook 'tabulated-list-revert-hook #'calibre-library--revert))
+ (setq-local revert-buffer-function #'calibre-library-revert)
+ (calibre-library--set-header))
;;;###autoload
(defun calibre-library ()
- [elpa] externals/calibre b43ab3a90c 73/76: Allow overriding format preferences, (continued)
- [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
- [elpa] externals/calibre 76427bf5be 07/76: Allow customisation of the columns of the library buffer, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre d8682121d8 23/76: Reorder variable declarations, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre a750735b89 33/76: Add ability to revert Library buffer, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre b2c34a58d4 44/76: Use the right column name in query, ELPA Syncer, 2023/05/18
- [elpa] externals/calibre 7a8ed52e86 51/76: Set revert-buffer-function instead of using revert hooks,
ELPA Syncer <=
- [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, 2023/05/18