[Top][All Lists]

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

Re: Is that change a good idea?

From: David Kastrup
Subject: Re: Is that change a good idea?
Date: Fri, 18 Mar 2005 15:07:07 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>> >   * help.el (describe-mode): Allow a :minor-mode-function property to
>>> >   specify a different minor mode toggle function than the variable.
>>> >   * simple.el (auto-fill-function):
>>> >   * subr.el (add-minor-mode): Use it.
>>> > I have my doubts that the resulting flexibility is really in the best
>>> > interest of the users...
>>> 100% agreement.
>>> It's only meant to clean up the code,
>> Wouldn't it be far more cleaner to convert old minor-modes which would
>> need this hack to proper minor-modes following standard semantics?
> You do realize that there are packages over which we have no
> control, right?

Well, then we won't need to worry about us not being able to use
define-minor-mode for them.

>  make sure they're kept in sync.  Maybe we could do (defvaralias
> 'auto-fill-function 'auto-fill-mode) and then slowly change modes to
> replace (if auto-fill-function (funcall auto-fill-function)) with
> (if auto-fill-mode (funcall normal-auto-fill-function)).

That won't work if modes set auto-fill-function themselves to a

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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