emacs-devel
[Top][All Lists]
Advanced

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

Re: New minor mode toggling in V24


From: Stefan Monnier
Subject: Re: New minor mode toggling in V24
Date: Fri, 20 Jan 2012 08:55:01 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

> ARG nil --> toggle
> ARG 1   --> on
> ARG -1  --> off

That's what happened in the past and we changed it, so clearly we're not
going back there.
Toggling non-interactively is a very rare need.  But you can do it with
(foo-mode 'toggle) if you don't like (foo-mode (if foo-mode -1 1)).


        Stefan


PS: In case you wonder about the reason for the change, it's for
(add-hook 'foo-mode-hook 'bar-mode), eliminating the "need" for those
otherwise redundant turn-on-foo-mode.



reply via email to

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