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

Frank Fischer frank.fischer at mathematik.tu-chemnitz.de
Thu Nov 17 10:13:34 CET 2011


On Wed, Nov 16, 2011 at 04:49:22PM +0100, Nikolai Weibull wrote:
> On Fri, Nov 4, 2011 at 11:48, Nikolai Weibull <now at bitwi.se> wrote:
> > On Thu, Nov 3, 2011 at 10:29, Nikolai Weibull <now at bitwi.se> wrote:
> >> On Thu, Nov 3, 2011 at 08:34, Frank Fischer
> >> <frank.fischer at mathematik.tu-chemnitz.de> wrote:
> >>> On Wed, Nov 02, 2011 at 06:14:40PM +0100, Nikolai Weibull wrote:
> >>>> This seems to happen when calling revert-buffer interactively as well.
> >>>
> >>> You mean calling revert-buffer in an arbitrary buffer (that has nothing to do with magit)? In that case I can't reproduce the error.
> >>
> >> Hm, well, it’s a buffer visiting a file under version control, so I
> >> guess magit might have done something to it.  I’ll try to narrow it
> >> down if no one else can reproduce this.
> >
> > I narrowed it down.  Magit-revert-buffers calls revert-buffer as
> > (revert-buffer t t nil), that is, it doesn’t preserve modes.  Still,
> > if I understand things correctly, calling revert-buffer interactively
> > would result in modes not being preserved.  Either way, it seems that
> > this disables evil-local-mode.
> 
> Am I the only one experiencing this?
> 
> (Am I the only one using both Magit and Evil?)
> 

Well, I use neither git nor magit, that's why I hoped someone else
with more experience in both may have a look at this issue ;)

Frank



More information about the implementations-list mailing list