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

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

Re: Trying to find the status of auto-fill-mode in a buffer


From: Michael Heerdegen
Subject: Re: Trying to find the status of auto-fill-mode in a buffer
Date: Tue, 19 Nov 2024 18:38:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Alexandros Prekates <aprekates@posteo.net> writes:

> > > C-h f auto-fill-mode says : 
> > >   ''To check whether the minor mode is
> > >   enabled in the current buffer, evaluate ‘auto-fill-function’. ''
> > >
> > > How do we test that IN a certain buffer ? 
> > > I evaluated (auto-fill-function) in scratch buffer
> > > but it gives me nil. 

> It seemed like little a riddle!!  Evaluate a variable that has function
> in its name. 

The code that generates this particular output is relatively new (a
couple of months).

In the general case, what has to be evaluated can potentially be any
kind of expression, but maybe we could find a better wording in the
special case where the expression is a variable, like here.

Maybe "look at the binding of VAR" or something like that.  Would that
have been less confusing?


Michael.




reply via email to

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