[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: turning on minor modes from hooks
From: |
Daniel Colascione |
Subject: |
Re: turning on minor modes from hooks |
Date: |
Mon, 31 Aug 2009 11:30:50 -0400 |
User-agent: |
KMail/1.12.0 (Linux/2.6.29.6-217.2.16.fc11.i586; KDE/4.3.0; i686; ; ) |
On Sunday 30 August 2009, Richard Stallman wrote:
> 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?
> A call with no arguments, as in (auto-save-mode), naturally ought to
> toggle the mode or turn it on. But (auto-save-mode nil) has the
> natural meaning of turning the mode off.
>
> Perhaps we could make minor mode functions take &rest arguments so
> they can distinguish those two cases. However, that could be a
> painful change,
What about some kind of enable-minor-mode function?
Re: turning on minor modes from hooks, Richard Stallman, 2009/08/30
Re: turning on minor modes from hooks,
Daniel Colascione <=
Re: turning on minor modes from hooks, Tassilo Horn, 2009/08/31
Re: turning on minor modes from hooks, Stefan Monnier, 2009/08/31
Re: turning on minor modes from hooks, Stephen J. Turnbull, 2009/08/31