help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Cycle Auto-Fill


From: Michael Heerdegen
Subject: Re: Cycle Auto-Fill
Date: Mon, 07 Dec 2020 01:36:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Christopher Dimech <dimech@gmx.com> writes:

> What is the relevance of having the value cell of symbol auto-fill-mode
> void? Why do you recommend auto-fill-function instead?

`auto-fill-mode' uses internally `auto-fill-function'.  I don't recall
the details why it had been chosen to design it like this.  But yes,
it's possible that a mode uses a variable of a different name for
toggling.

Part of the answer is probably that different auto-fill functions can be
used this way, and for all values besides nil the mode thinks of itself
as "on".  OTOH, setting `auto-fill-function' nil automagically turns the
mode off.

> Very clear, thank you.  This got us back to what Daniela was doing with
> mode-line.  Quite many things can be linked together.  She has not managed
> to revert mode-line to its original value, last time we talked about that.

AFAIR I also already gave her an answer, hope it has arrived.


Regards,

Michael.




reply via email to

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