From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Trying to find the status of auto-fill-mode in a buffer Date: Tue, 19 Nov 2024 11:35:17 +0100 Message-ID: <87cyirqzoa.fsf@gnu.org> References: <20241119084323.5e3eaeb0@enoush2o> <86jzczbm0l.fsf@aarsen.me> <20241119114909.5cb99396@enoush2o> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38081"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.7; emacs 31.0.50 Cc: help-gnu-emacs@gnu.org To: Alexandros Prekates Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 19 11:36:18 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 1tDLak-0009iN-Pd for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 19 Nov 2024 11:36:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDLZt-0003xh-9l; Tue, 19 Nov 2024 05:35: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 1tDLZr-0003xO-Q3 for help-gnu-emacs@gnu.org; Tue, 19 Nov 2024 05:35:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDLZr-0003EG-GD; Tue, 19 Nov 2024 05:35:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=u1An6hwOyJW7RXqGjmrF/NQ2AZNqlQtjUNCqcPHq2cM=; b=AuwAzETa5f6GpPqyPujp roIbIEuL7PmAgEowYmrj4vTHxSFt2qxFWd2DBQ6lKsqZvuKMKP0nl6TZdui8qqnY9E9KPfPu0HV1V 5Fq+Qia3a+KaIu3in2yIIqOh5+JngvSKT/QGoaqDq2HfnitCfdzCsKx8kY2rQ58v5oF73wSUXFnFV ePqksUxLQkjagBkWLngrFVa8DxKtT3CQ2kZvJx067RY1foDrkybouUvahWenqObJ+TJQF7Q4+qT6m B04W2NGGjNM7JX1NA8j3tvX8qTwUksPmgS+lCHn4gG9yt43mcev8pAMDfamJOL6uNoW8easkDJTyi Jhe3N/9H2r/BCA==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfedvgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredtnecu hfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecugg ftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeehgfeu fefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeef keejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrd hfmhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohep hhgvlhhpqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgpdhrtghpthhtoheprghprhgvkh grthgvshesphhoshhtvghordhnvght X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail In-Reply-To: <20241119114909.5cb99396@enoush2o> (Alexandros Prekates's message of "Tue, 19 Nov 2024 09:49:09 +0000") 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:148339 Archived-At: Alexandros Prekates 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