|
| From: | Stefan Monnier |
| Subject: | Re: turning on minor modes from hooks |
| Date: | Mon, 31 Aug 2009 19:43:59 -0400 |
| User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
>> Stephen has long advocated that non-interactive invocation of mode
>> commands should always turn on the mode instead of toggling.
> Isn't magically changing behavior between the interactive and
> non-interactive cases a Bad Thing?
There's no magic involved: if you call (call-interactively 'foo-mode)
it will toggle just fine, but you have no reason to presume that this is
equivalent to (foo-mode). And indeed it's not.
Stefan
| [Prev in Thread] | Current Thread | [Next in Thread] |