From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Arsen_Arsenovi=C4=87?= Newsgroups: gmane.emacs.help Subject: Re: Trying to find the status of auto-fill-mode in a buffer Date: Tue, 19 Nov 2024 10:39:22 +0100 Message-ID: <86jzczbm0l.fsf@aarsen.me> References: <20241119084323.5e3eaeb0@enoush2o> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11348"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Alexandros Prekates Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 19 10:40:23 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 1tDKid-0002nO-D8 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 19 Nov 2024 10:40:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDKi1-0000U6-Gs; Tue, 19 Nov 2024 04:39:45 -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 1tDKhr-0000Tl-W4 for help-gnu-emacs@gnu.org; Tue, 19 Nov 2024 04:39:37 -0500 Original-Received: from mout-p-101.mailbox.org ([80.241.56.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1tDKhq-0003cl-3f for help-gnu-emacs@gnu.org; Tue, 19 Nov 2024 04:39:35 -0500 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4XszwX3cqbz9tZr; Tue, 19 Nov 2024 10:39:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1732009164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dvaF68KjsaDkuuw+CPA2bxWmutnqbxO2yUmQxwZSyzA=; b=MAt5FHfsfo6bDBYsi4cTg2PqPgiVubpMZqzf489XhgoVSAjpnj1r/8NolLCYmG6nhbkXy0 M4oX5tKeID2Wce6z3hoREB74FQSfZ4jK2Z03XIoXHyNDh2CZRoY5li/w6ozamwKTPcPaeg Gdl2T2s7rU3dFzbaVlOkE2hoycgSXq2ZKVb5Oiz1KSwxvYTSQCMqd1K/5LM5m00jO+h+Qa Nvc5A/Ply8Q/toOlVgFjj9ZjQl69jfSbNEpn0RiL6ACV0J4vXkln/kV0d1Dk+IvKc5rEoF KrClslxXnu+NPiLlubMH9RI38CfA1ujALVAOtDU2Y7HJ1KBYl76oy9XUBk/gOQ== In-Reply-To: <20241119084323.5e3eaeb0@enoush2o> (Alexandros Prekates's message of "Tue, 19 Nov 2024 06:43:23 +0000") X-Rspamd-Queue-Id: 4XszwX3cqbz9tZr Received-SPF: pass client-ip=80.241.56.151; envelope-from=arsen@aarsen.me; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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:148337 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alexandros Prekates writes: > 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 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: =2D-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 text= in its buffer. auto-fill-function do-auto-fill =2D-8<---------------cut here---------------end--------------->8--- HTH, have a lovely day. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZzxcy18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTPxkBAL+w1udKiJD1tN/Qwli7jLvFWF1oBx+8ReWI xgXLhSW1AQDNHmBOJltIYZFnz2xi6REu3V2yoZZUoVFZwIlUwoIVAQ== =/3/p -----END PGP SIGNATURE----- --=-=-=--