emacs-devel
[Top][All Lists]
Advanced

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

Re: Re[1]: turn-on-...


From: Stefan Monnier
Subject: Re: Re[1]: turn-on-...
Date: Fri, 27 Oct 2000 09:45:00 -0400

> >>> Miles Bader <address@hidden> seems to think that:
> >Some minor modes, such as auto-fill-mode, have `turn-on-...'  functions
> >which unconditionally turn on the mode when called with no argument
> >(instead of toggling it like the primary mode function does).  These are
> >handy for putting into hook lists.
> >
> >It seems trivial to have `define-minor-mode' generate these
> >`turn-on-...' (and presumably `turn-off-...' too, for completeness)
> >functions automatically, and it would be somewhat handy for the above
> >reason.
> >
> >What do people think?
>   [ ... ]
> 
> Some minor modes also include `global-something-mode' which knows how
> to turn itself on in appropriate situations.  That might also be
> useful, if somewhat more difficult to auto-generate.

There is a first cut at "make-global-minor-mode" in the current
easy-mmode.el actually.  It uses the font-lock trick of hooking
into change-major-mode-hook.
Funnily enough, it's not yet used to make up `global-font-lock-mode'.


        Stefan




reply via email to

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