Switching to text-mode and back messes up some keybindings
magthe opened this issue · 4 comments
I see this behaviour in magit. If I
- open status
- press
\
to switch to text-mode - press
\
to switch out of text-mode - press
p
to push
then I see the message Buffer is read-only: #<buffer magit: proj>
.
I'm using Spacemacs, but I believe this is a binding that comes from evil-magit itself:
\ runs the command evil-magit-toggle-text-mode, which is an interactive compiled
Lisp function in ‘evil-magit.el’.
It seems like you are not actually switching back from text mode. After step 2, try C-h k \
and tell me what emacs says \
is bound to.
It is bound to the same function, evil-magit-toggle-text-mode
.
Maybe I should add that p
gives the behaviour above, but that many other magit keybindings do work, and that I can push by doing
- switch to visual mode using
v
, then pressp
I just asked a workmate to try the same sequence. He's using evil-magit but not via Spacemacs, and he doesn't see the behaviour I describe above. That makes me think that maybe this is a Spacemacs thing, so I'll create a ticket on the project instead and close this one.
Maybe I should add that p gives the behaviour above, but that many other magit keybindings do work, and that I can push by doing switch to visual mode using v, then press p
Hm, that's odd.
I just asked a workmate to try the same sequence. He's using evil-magit but not via Spacemacs, and he doesn't see the behaviour I describe above. That makes me think that maybe this is a Spacemacs thing, so I'll create a ticket on the project instead and close this one.
It's possible spacemacs is interfering here, but I'm not sure how.