-
Notifications
You must be signed in to change notification settings - Fork 87
Fix paging with God mode #247
base: master
Are you sure you want to change the base?
Conversation
@justbur It would be really helpful if you could provide any feedback on this PR. |
I'm not very familiar with god-mode to start with, but after some basic testing it looks like god-mode breaks the basic emacs mechanism of using I can't trigger It seems to me that fixing this aspect of god-mode without worrying about which-key should be the first approach. If that is impossible for some reason, we can explore using the advice mechanism in which-key. |
I'll try modifying God mode to call |
Great, thanks for your work. |
ebcc4e6
to
4ae21c2
Compare
@justbur I've managed to fix God mode's handling of With the way God mode uses the command loop, this was possible only with the use of That being said, as emacsorphanage/god-mode@e80b6e6 adds the However, the timer issue with |
4ae21c2
to
c9fa223
Compare
@justbur Have you had a chance to review my fix in God mode and the changes in this PR? |
c9fa223
to
f45025a
Compare
I asked a couple of questions about the changes a while ago and was waiting to hear back |
Please refer to this comment.
So, |
f45025a
to
8917fd5
Compare
8917fd5
to
499442d
Compare
Paging in
which-key
is not working whenC-h
(help-char
) is entered in God mode.This bug has been reported recently (emacsorphanage/god-mode#114), but it's been an issue for a while.
Current behaviour:
This PR attempts to fix this issue.
The changes can be summarised as follows:
nadvice.el
instead ofadvice.el
.:around
advice forgod-mode-lookup-key-sequence
.Behaviour with these changes:
Known issues:
There's currently an issue when
which-key-undo-key
is invoked from the help menu. From what I can tell, this is caused bywhich-key--update
orwhich-key--hide-popup
being invoked through a timer. I've tried callingwhich-key--stop-timer
in the new advice function appropriately, but then the paging ofwhich-key-undo-key
has the same issue. Also, I'm not sure this is the best way to fix the problem. Here's what the behaviour looks like with the possible fix usingwhich-key--stop-timer
(ebcc4e6):It would be great if I could get some clues on how to fix this issue.
However, if it's still complicated, this issue could be tracked separately and fixed later on.
Any feedback is more than welcome!