[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: |
Alexandros Prekates |
Subject: |
Re: Trying to find the status of auto-fill-mode in a buffer |
Date: |
Tue, 19 Nov 2024 09:49:09 +0000 |
On Tue, 19 Nov 2024 10:39:22 +0100
Arsen Arsenović <arsen@aarsen.me> wrote:
> 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.
Thank you.
It seemed like little a riddle!! Evaluate a variable that has function
in its name.
But how do we use scratch a classic REPL ? I mean if a was in a clisp
repl it may had occured me to 'evaluate' a variable. But by default
scratch is not a repl.
I indeed evaluated as you said auto-fill-function but i get my result
in the echo area.
Also how evaluating a variable in scratch the scratch nows for which
buffer we asked for ?
Alexandros
- Trying to find the status of auto-fill-mode in a buffer, Alexandros Prekates, 2024/11/19
- Re: Trying to find the status of auto-fill-mode in a buffer, Arsen Arsenović, 2024/11/19
- Re: Trying to find the status of auto-fill-mode in a buffer,
Alexandros Prekates <=
- Re: Trying to find the status of auto-fill-mode in a buffer, Robert Pluim, 2024/11/19
- Re: Trying to find the status of auto-fill-mode in a buffer, Arsen Arsenović, 2024/11/19
- Re: Trying to find the status of auto-fill-mode in a buffer, Michael Heerdegen, 2024/11/19
- Re: Trying to find the status of auto-fill-mode in a buffer, Michael Heerdegen, 2024/11/19
- Re: Trying to find the status of auto-fill-mode in a buffer, Robert Pluim, 2024/11/20
- Re: Trying to find the status of auto-fill-mode in a buffer, Michael Heerdegen, 2024/11/20
- Re: Trying to find the status of auto-fill-mode in a buffer, Robert Pluim, 2024/11/20
- Re: Trying to find the status of auto-fill-mode in a buffer, Michael Heerdegen, 2024/11/20