Toggling evil-local-mode off when updating buffers with magit

Nikolai Weibull now at bitwi.se
Tue Nov 22 10:37:15 CET 2011


On Fri, Nov 18, 2011 at 13:12, Frank Fischer
<frank.fischer at mathematik.tu-chemnitz.de> wrote:
> On Fri, Nov 18, 2011 at 12:29:53PM +0100, Nikolai Weibull wrote:

>> The buffer a should be in Fundamental mode.  You can also use M-x
>> revert-buffer to get the same result.
>
> This explains the problem. Fundamental mode does not run any hooks,
> therefore evil can't be enabled again. Evil does several tricks in
> order to ensure that evil is enabled in fundamental-mode buffers when
> they are created, but functions like revert-buffer are not handled.
> This is probably not so easy to fix (one could advise revert-buffer,
> but there may be other functions ...)

>> I tried the same by creating a buffer called a.rb, which starts in
>> Ruby mode.  This gave the same behavior as for evil-ex.el.  I’ve had
>> this problem with Ruby files, so it shouldn’t depend on that.
>
> If the buffer is not in fundamental-mode there must be a different
> problem. Any example for buffers that are not in fundamental-mode?

Not anymore.  It seems that it’s now working.  I have no explanation
other than that I’ve updated Evil since I last tested.  Perhaps this
resolved itself due to other changes.

I’ll report if it happens again.



More information about the implementations-list mailing list