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: Tassilo Horn
Subject: Re: Trying to find the status of auto-fill-mode in a buffer
Date: Tue, 19 Nov 2024 11:35:17 +0100
User-agent: mu4e 1.12.7; emacs 31.0.50

Alexandros Prekates <aprekates@posteo.net> writes:

> 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 ?

Buffer-local variables are evaluated in the current buffer which might
be *scratch*.  So ensure you make the buffer you are interested in
current, e.g., by evaluating this in *scratch*:

--8<---------------cut here---------------start------------->8---
(with-current-buffer "*Messages*"
  auto-fill-function)
;;=> nil
--8<---------------cut here---------------end--------------->8---

HTH,
Tassilo



reply via email to

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