Stefan Reichör <[EMAIL PROTECTED]> writes:

> tla-inventory-mode is a major-mode, so I call kill-all-local-variables
> in this mode.
>
> I am not sure, what will happen if we drop that call.

If you consider that tla-inventory-mode is a mode that can be called
from a buffer already in another mode, this will break everything.

If I have a buffer in C++, and suddenly decide to run emacs-lisp mode
in that buffer, I can type M-x emacs-lisp-mode RET. This will exit the
C++ mode with kill-all-local-variables, and then enter
emacs-lisp-mode.

For tla-inventory-mode or tla-changes-mode, it would be meaningless to
call the mode on a buffer already in another mode. So, I don't think
this function call is usefull, but maybe it's still good practice to
put it.

-- 
Matthieu

Reply via email to