[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/; 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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]