[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/free-keys 3b4a18417b 06/19: Add revert function
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/free-keys 3b4a18417b 06/19: Add revert function |
Date: |
Sat, 29 Jan 2022 08:02:52 -0500 (EST) |
branch: elpa/free-keys
commit 3b4a18417bbe9ff435d3d8d345b9bb30c1852039
Author: Matus Goljer <dota.keys@gmail.com>
Commit: Matus Goljer <dota.keys@gmail.com>
Add revert function
---
free-keys.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/free-keys.el b/free-keys.el
index 902eeb16e2..fa7e6b4509 100644
--- a/free-keys.el
+++ b/free-keys.el
@@ -81,6 +81,9 @@
(interactive "bShow free bindings for buffer: ")
(free-keys nil (get-buffer-create buffer)))
+(defun free-keys-revert-buffer (_ _)
+ (free-keys nil free-keys-original-buffer))
+
;;;###autoload
(defun free-keys (&optional prefix buffer)
(interactive (list (when current-prefix-arg
@@ -131,7 +134,8 @@
Display the free keybindings in current buffer.
-\\{free-keys-mode-map}")
+\\{free-keys-mode-map}"
+ (set (make-local-variable 'revert-buffer-function) 'free-keys-revert-buffer))
(provide 'free-keys)
;;; free-keys.el ends here
- [nongnu] branch elpa/free-keys created (now 7348ce6819), ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys d681a3fba0 12/19: Fix the "overflow" bug on the last/first row if the displayed list was not rectangular, ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys 3b4a18417b 06/19: Add revert function,
ELPA Syncer <=
- [nongnu] elpa/free-keys a975b8fe62 15/19: Suppress byte-compile warning, ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys 11241fd518 07/19: Display keys for which keybinding is 'undefined., ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys f5db0a1e43 02/19: Add the note about `bind-key`, fix typos, ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys f5d882d4c7 11/19: Better display of empty keys (no empty groups, fixed nil modifiers), ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys 8c9ea744c1 08/19: Move header help into header-line-format, ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys 79205af5f5 01/19: Initial commit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys 452d26a3fc 03/19: Do not autoload the major-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys aca6032c3e 05/19: Merge pull request #1 from syohex/support-for-old-emacs, ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys 9cc42a07a6 04/19: Support old emacs(<= 24.2), ELPA Syncer, 2022/01/29
- [nongnu] elpa/free-keys 982aea30d1 09/19: Add docstrings & readme, ELPA Syncer, 2022/01/29