From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandros Prekates Newsgroups: gmane.emacs.help Subject: Re: Trying to find the status of auto-fill-mode in a buffer Date: Tue, 19 Nov 2024 09:49:09 +0000 Message-ID: <20241119114909.5cb99396@enoush2o> References: <20241119084323.5e3eaeb0@enoush2o> <86jzczbm0l.fsf@aarsen.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8591"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 19 10:50:09 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tDKs5-00020C-DK for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 19 Nov 2024 10:50:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDKrN-0002WU-GY; Tue, 19 Nov 2024 04:49:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDKrK-0002WA-GC for help-gnu-emacs@gnu.org; Tue, 19 Nov 2024 04:49:22 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDKrI-0004xQ-Dp for help-gnu-emacs@gnu.org; Tue, 19 Nov 2024 04:49:22 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8972A240027 for ; Tue, 19 Nov 2024 10:49:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1732009756; bh=UcMsDsSXrKp2BJ6o4WcdS9LScmt2D1+zNdFIpcnx8rk=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=HC+MVspvsysVNPZIqCaNTqhN7tXNWg+250fjzkjjaD0WJqAROv+UguxZaq415DU6z jTUVjFfIbiVg//2Lix06+uD8EQEZvrE6jbfM666w7iB3dImUhqcZquElKkNoitahB4 vxvCDvbrc9IKwF9/h82aiNcXyhmlsLx5gA5tvGg2brZLrSrvyBDcgWGOJ9tpnscLUr vxpiy2XZUK2l0oGhDCgxF9+9KSyjcU4q5TJO8D57XVT0jk1O/Zmr1oafbqYFiGC+YN VYvbuDvXLAHIIBzcqFFy5XIeQV05fi+ZqJ59FwhNSz1gk4M981VF6RgxuZLIa4PsFD jHrbsSL202kCg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Xt07t5j7Nz9rxF for ; Tue, 19 Nov 2024 10:49:14 +0100 (CET) In-Reply-To: <86jzczbm0l.fsf@aarsen.me> Received-SPF: pass client-ip=185.67.36.65; envelope-from=aprekates@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148338 Archived-At: On Tue, 19 Nov 2024 10:39:22 +0100 Arsen Arsenovi=C4=87 wrote: > Alexandros Prekates writes: >=20 > > C-h f auto-fill-mode says :=20 > > ''To check whether the minor mode is > > enabled in the current buffer, evaluate =E2=80=98auto-fill-function= =E2=80=99. '' > > > > How do we test that IN a certain buffer ?=20 > > I evaluated (auto-fill-function) in scratch buffer > > but it gives me nil.=20 >=20 > Right, but the docstring tells you to evaluate `auto-fill-function', > not `(auto-fill-function)'. Indeed, it is a variable. >=20 > Example from my scratch buffer: >=20 > --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 =E2=80=98C-x C-f=E2=80=99 and enter te= xt in its > buffer. >=20 > auto-fill-function > do-auto-fill > --8<---------------cut here---------------end--------------->8--- >=20 > HTH, have a lovely day. Thank you.=20 It seemed like little a riddle!! Evaluate a variable that has function in its name.=20 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.=20 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