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: Arsen Arsenović
Subject: Re: Trying to find the status of auto-fill-mode in a buffer
Date: Tue, 19 Nov 2024 10:39:22 +0100

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. 

Right, but the docstring tells you to evaluate `auto-fill-function', not
`(auto-fill-function)'.  Indeed, it is a variable.

Example from my scratch buffer:

--8<---------------cut here---------------start------------->8---
;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with ‘C-x C-f’ and enter text in its buffer.

auto-fill-function
do-auto-fill
--8<---------------cut here---------------end--------------->8---

HTH, have a lovely day.
-- 
Arsen Arsenović

Attachment: signature.asc
Description: PGP signature


reply via email to

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