From: Alexandros Prekates <aprekates@posteo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Trying to find the status of auto-fill-mode in a buffer
Date: Tue, 19 Nov 2024 09:49:09 +0000 [thread overview]
Message-ID: <20241119114909.5cb99396@enoush2o> (raw)
In-Reply-To: <86jzczbm0l.fsf@aarsen.me>
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
next prev parent reply other threads:[~2024-11-19 9:49 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-19 6:43 Trying to find the status of auto-fill-mode in a buffer Alexandros Prekates
2024-11-19 9:39 ` Arsen Arsenović
2024-11-19 9:49 ` Alexandros Prekates [this message]
2024-11-19 10:35 ` Tassilo Horn
2024-11-19 14:16 ` Alexandros Prekates
2024-11-19 11:27 ` Robert Pluim
2024-11-19 14:52 ` Arsen Arsenović
2024-11-19 17:25 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-11-19 17:38 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-11-20 7:56 ` Robert Pluim
2024-11-20 16:05 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-11-20 16:14 ` Robert Pluim
2024-11-20 19:14 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-11-20 19:27 ` Eli Zaretskii
2024-11-20 23:50 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-11-21 6:50 ` Eli Zaretskii
2024-11-20 18:51 ` mbork
-- strict thread matches above, loose matches on Subject: below --
2024-11-23 9:22 Alexandros Prekates
2024-11-23 9:37 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241119114909.5cb99396@enoush2o \
--to=aprekates@posteo.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.