Issue #115 resolved

Evil doesn't work after revert-buffer.

Titus von der Malsburg
created an issue

To reproduce: open a new file named {{{/tmp/test}}} (no extension), write something, save, then {{{M-x revert-buffer}}}. After that Evil doesn't work anymore and I get standard Emacs behavior it seems. Interesting detail: when I do the same with a file named {{{/tmp/test.txt}}} the problem does not occur. In both cases, however, I see this message when reverting:

{{{ Toggling evil-local-mode off; better pass an explicit argument. }}}

Everything was tested after getting the latest version of Evil, a {{{make clean && make}}} and with {{{make emacs}}}.

Comments (5)

  1. Frank Fischer repo owner
    • changed status to open

    This is probably another issue with fundamental-mode buffers. Those buffers cause problems because in fundamental-mode certain hooks are not run. I've just tested it in Emacs 23 and Emacs 24 and the problem only occurs in 23. Do you use Emacs 23? (just to be sure)

  2. Vegard Øye

    The "better pass an explicit argument" message occurs because fundamental-mode is called without any arguments (since it is the default mode, there is no way to "disable" it in a fundamental buffer). When evil-local-mode is substituted for fundamental-mode, however, the lack of arguments has the effect of toggling Evil in the current buffer. In this case it disables it, since it was previously enabled.

  3. Log in to comment