From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Making a read-only buffer writable Date: Tue, 12 Sep 2023 10:52:51 +0000 Message-ID: <2zfeWA5e9ernSbxXbSKDkE2HXEHXjBBfY1X-KqlixHXbzUvd0cOzXHqcKDMWZzYQya2peTYU9-DgSt9ePV3uxFon-tkOKIULdyunZuAw4mg=@protonmail.com> References: <0dkHSu-LB9gHq-vWDPApgSFURUdqrdbAu7ZKq6k1LFAl6S7HJQ2sHmp3YCDJmAm-yqrbOxqQdne10jnbdUyfLwICE99HUEnPXkBzCJUgrNo=@protonmail.com> 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="32580"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 12 12:54:02 2023 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 1qg11t-0008Bq-Px for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Sep 2023 12:54:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qg113-0007BR-PQ; Tue, 12 Sep 2023 06:53:09 -0400 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 1qg10y-0007An-RL for help-gnu-emacs@gnu.org; Tue, 12 Sep 2023 06:53:05 -0400 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qg10v-0004fU-T6 for help-gnu-emacs@gnu.org; Tue, 12 Sep 2023 06:53:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1694515979; x=1694775179; bh=i/wu7BhKEsf3ovKdd6zZom6LdHLTVWS/dRWkKNVwTzo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ilijBecWduXKlqd646Dch12YLriTeUprKQc2S47SfahXaARqc/mtfqtLK9No5FI+R zwOH4URHJQdjPudv5cT4EXoZ7eEl43r0qEoqSlnd41ADtEm6NaRe5O3pHdUgyWw5Ur WbBzIVbFK8MKgo0HUA0ttUCYHNF1PUIcFB8/Dmm1DAWaBAivttd3Mg0L50LXbjAHH8 laTGg6rhuU7m8058KHp4v9PS48cKTgf0iezZTCVxcGkzA4Fd+MrWOt5d8jzWN3aUTc +ncimJkb1+1VI1LM3iAZ57kEW5o+gD+c1sYswG45IU8s9Z4ISq1KI3lMOpzqib3EVF hAhI8571vT0qA== In-Reply-To: Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.19; envelope-from=heimeborgia@protonmail.com; helo=mail-4319.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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:145104 Archived-At: ------- Original Message ------- On Tuesday, September 12th, 2023 at 10:26 PM, Yuri Khan wrote: > On Tue, 12 Sept 2023 at 16:10, Heime heimeborgia@protonmail.com wrote: >=20 > > Then I wonder how it is possible for the following function > > to call > >=20 > > (insert-button "[1]" > >=20 > > without calling > >=20 > > (setq buffer-read-only nil) > >=20 > > first, just after > >=20 > > (with-help-window (help-buffer) >=20 >=20 > Have you read the source for =E2=80=98with-help-window=E2=80=99? It arran= ges for > =E2=80=98inhibit-read-only=E2=80=99 to be set to =E2=80=98t=E2=80=99 arou= nd the call to its body. Once > the body finishes, that temporary binding goes out of scope and > read-only is in effect again. I have only read the Emacs Self Documentation with "C-h f". It would be he= lpful to include the detail mentioned in the documentation string of the function= , that 'inhibit-read-only' to be set to 't' around the call to its body. Otherwis= e, users=20 cannot be blamed for concluding that 'with-help-window' uses a read-only bu= ffer,=20 and thusly have to reset 'inhibit-read-only'.