[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove toggling behavior of minor modes when called from elisp

From: Stefan Monnier
Subject: Re: Remove toggling behavior of minor modes when called from elisp
Date: Sun, 06 Jan 2008 15:22:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>     I'm surprised to hear this, since when it was discussed on the list in
>     2006, you agreed to it and asked to put it into etc/TODO:

> I don't remember that previous discusson, so today I thought about it
> afresh, and came to a different conclusion this time.  Perhaps it is
> because you explained more in the previous conversation.

> There is something in that old message that puzzles me:

>     |     Not really.  It just means that the argument passed to the
>     |     minor mode function in the absence of a prefix-arg won't be
>     |     nil but will be `toggle'.  As a matter of fact, this is
>     |     already the case.

> I am puzzled by that last sentence; what is "already the case"?

It is already the case that the "no argument" interactive case actually
passes an explicit `toggle' argument rather than not pass any argument.

> Also, if we do this, we should change all the minor modes,
> not just the ones defined by define-minor-mode.
> The minor modes should remain consistent.

Of course.  I think it's the main part of the TODO item.  For most minor
modes, the right thing to do is to make it use define-minor-mode.


reply via email to

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