[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/which-key fb2bc8f 06/51: Add which-key-persistent-popup
From: |
Stefan Monnier |
Subject: |
[elpa] externals/which-key fb2bc8f 06/51: Add which-key-persistent-popup-p variable (#213) |
Date: |
Tue, 8 Sep 2020 10:26:15 -0400 (EDT) |
branch: externals/which-key
commit fb2bc8fd08fc39dd5527b13a65717399c5d6821b
Author: Uros Perisic <uros.m.perisic@gmail.com>
Commit: Uros Perisic <uros.m.perisic@gmail.com>
Add which-key-persistent-popup-p variable (#213)
I did not remove the `pre-command-hook', because that would require me
to add the hook back every time `which-key--hide-popup' is called,
which seems excessive. Hercules.el already handles this more
conservatively. But if you want me to, I can add it.
---
which-key.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/which-key.el b/which-key.el
index 99318d5..9b147bd 100644
--- a/which-key.el
+++ b/which-key.el
@@ -453,6 +453,9 @@ prefixes in `which-key-paging-prefixes'"
which-key-undo-key
which-key-undo))
+(defvar which-key-persistent-popup-p nil
+ "Whether or not to disable `which-key--hide-popup'.")
+
(defcustom which-key-hide-alt-key-translations t
"Hide key translations using Alt key if non nil.
These translations are not relevant most of the times since a lot
@@ -1080,13 +1083,13 @@ total height."
(defun which-key--hide-popup ()
"This function is called to hide the which-key buffer."
- (unless (member real-this-command which-key--paging-functions)
+ (unless (or which-key-persistent-popup-p
+ (member real-this-command which-key--paging-functions))
(setq which-key--last-try-2-loc nil)
(setq which-key--pages-obj nil)
(setq which-key--automatic-display nil)
(setq which-key--prior-show-keymap-args nil)
- (when (and which-key-idle-secondary-delay
- which-key--secondary-timer-active)
+ (when (and which-key-idle-secondary-delay
which-key--secondary-timer-active)
(which-key--start-timer))
(which-key--lighter-restore)
(cl-case which-key-popup-type
- [elpa] externals/which-key updated (9c5922e -> d794c4a), Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 187ac0e 03/51: Add note to docstring for which-key-idle-delay, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key c87b0ce 02/51: Add debugging messages for buffer sizing, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key da2e093 08/51: Add no-paging optional arg to which-key-show-keymap, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 51c485f 01/51: Don't ignore case when making replacements, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 77586e6 04/51: Add which-key-dump-bindings, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 5cbfccd 09/51: Add which-key-manual-update, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key fb2bc8f 06/51: Add which-key-persistent-popup-p variable (#213),
Stefan Monnier <=
- [elpa] externals/which-key ba03e7e 05/51: Add translation keymap support (#210), Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 2cb5ceb 12/51: Fix paging in which-key-manual-update, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key a256c4b 13/51: Use which-key-idle-secondary-delay value in manual updates, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key a916c9a 15/51: Fix typos (#222), Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 45bfcd3 22/51: Make which-key-show prefix mode-line work like top and bottom, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 1231016 29/51: More workflow fixes, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 7bc87e0 41/51: Test once a month, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key ebb4e92 47/51: Add which-key-add-keymap-based-replacements, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key e048b2a 48/51: Stop testing against v24.5, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key d794c4a 51/51: Improve keymap-based-replacement description in README, Stefan Monnier, 2020/09/08