meow-edit / meow

Yet another modal editing on Emacs / 猫态编辑
GNU General Public License v3.0
1.09k stars 127 forks source link

Normal mode and motion mode on at the same time after entering a motion mode buffer #445

Closed slempinen closed 1 year ago

slempinen commented 1 year ago

Hello!

Sometimes when I enter a buffer that defaults to motion mode (for example a dired or a ibuffer buffer) the meow modeline indicator appears twice on the modeline. It seems that normal mode and motion mode are both on at the same time. See the pictures below.

meow-bug-1

meow-bug-2

Note the [M] and [N] indicators. When this happens emacs seems to interpret my input as if it were in normal mode. Needless to say this is a bit confusing. The problem goes away when I left click on the [N] indicator and click on "Turn off minor mode".

The interesting thing is that it only happens sometimes and not always. I have not figured out a reoccurring pattern that could explain why this happens. Is this a bug you have encountered earlier?

I run emacs 28.1 with native compilation from the ubuntu ppa on ubuntu linux. Let me know if I can give you more information. My meow setup has no custom configurations apart from keybindings so I have not messed with variables that affect mode selecting.

DogLooksGood commented 1 year ago

Any tweaking for mode switches in your configuration?

slempinen commented 1 year ago

No tweaking on modes. Only tweaks that should affect meow are my keybindings.

DogLooksGood commented 1 year ago

The behavior is controlled by variable meow-mode-state-list. Do you have either of the them enabled with hooks?

eshrh commented 1 year ago

Odd. Would you link to your entire config?

slempinen commented 1 year ago

Sorry for not replying. I have been waiting for this bug to appear again but for the past couple of weeks it has not come up. I did some major changes to my config recently like going from company to corfu, from lsp mode to eglot etc. so there is a chance that I fixed it by accident. I'll make a new issue if it comes up again!

Thank you guys for maintaining this awesome package :)