emacs-devel
[Top][All Lists]
Advanced

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

Re: abbrev-mode - toggle-abbrev-mode


From: Stefan Monnier
Subject: Re: abbrev-mode - toggle-abbrev-mode
Date: Thu, 18 Oct 2007 18:14:24 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> Adding emacs-devel because I think this is a more general policy question.
> In general some-mode and toggle-some-mode are different.  (some-mode nil)
> is equivalent to (toggle-some-mode), while (some-mode 1) and
> (some-mode -1) unconditionally turn it on and off respectively.  As far as
> I know, XEmacs tries to avoid the toggle-, turn-on-, turn-off-some-mode
> style.  I would prefer to avoid introducing it if Emacs is not actively
> promoting that style (in fact, I'd prefer to ask Emacs to do things our
> way, on principle, not out of laziness ;-).

I'm opposed to turn-on-foo-mode, turn-off-foo-mode, and toggle-foo-mode,
since the foo-mode function covers all 3 uses just fine.

This said, as far as I can tell, Emacs has no `toggle-abbrev-mode', so
I don't know what Andreas was talking about.


        Stefan





reply via email to

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