[Top][All Lists]

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

minor modes and easy-mmode-define-minor-mode

From: Alex Schroeder
Subject: minor modes and easy-mmode-define-minor-mode
Date: 04 Dec 2000 21:18:18 +0100
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

The following message is a courtesy copy of an article
that has been posted to comp.emacs as well.

"Stefan Monnier <address@hidden>" <monnier+comp.emacs/news/@flint.cs.yale.edu> 

> Actually, calling ... like that just toggles the mode,
> so it might in some rare circumstances end up turning it off
> rather than on.

> PS: I still have hope to convince Emacs developers that this
>     toggling behavior is a misfeature and should be changed.

Maybe more minor modes should be defined using

(What follows is a feature request, therefore Cc:

easy-mmode-define-minor-mode should automatically create
toggle-x-mode, turn-on-x-mode, and turn-off-x-mode functions...  At
the moment it just creates the x-mode function.  It does, however
create x-mode-on-hook and x-mode-off-hook, which is a nice idea.

"Emacsen <v21 do not do colors on a tty; use XEmacs or wait for Emacs 21."

reply via email to

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