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: Andreas Röhler
Subject: Re: abbrev-mode - toggle-abbrev-mode
Date: Fri, 19 Oct 2007 08:31:39 +0200
User-agent: KMail/1.9.5

Am Freitag, 19. Oktober 2007 00:14 schrieb Stefan Monnier:
> > 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.
>

Oh yeah, sorry to all. That's my own forgotten alias I
disputed here. All ashes over me.

Andreas Röhler




reply via email to

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