From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65913: with-help-window arranges for 'inhibit-read-only' to be set to 't' Date: Wed, 13 Sep 2023 10:41:01 +0000 Message-ID: Reply-To: Heime 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="27878"; mail-complaints-to="usenet@ciao.gmane.io" To: 65913@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 13 12:42:24 2023 Return-path: Envelope-to: geb-bug-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 1qgNKC-00075P-Hq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Sep 2023 12:42:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgNJq-0003qC-6r; Wed, 13 Sep 2023 06:42:02 -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 1qgNJn-0003q2-6D for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 06:41:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgNJl-0001Wv-OJ for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 06:41:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgNJq-0001D9-DW for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 06:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Sep 2023 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65913 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.16946016994626 (code B ref -1); Wed, 13 Sep 2023 10:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Sep 2023 10:41:39 +0000 Original-Received: from localhost ([127.0.0.1]:60915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgNJS-0001CW-W6 for submit@debbugs.gnu.org; Wed, 13 Sep 2023 06:41:39 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:50798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgNJO-0001CH-W0 for submit@debbugs.gnu.org; Wed, 13 Sep 2023 06:41:36 -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 1qgNJD-0003im-W0 for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 06:41:24 -0400 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgNJA-0001IS-5g for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 06:41:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1694601675; x=1694860875; bh=zHKu8EV3/pGgc6I4CgM0Zp/xr44TmcOOd/6NpJGDyIQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=BMOKCQi9xV4OSI/fA4Hum9UO0Kxl6IM2CcLoCv0oo35Rqe8XXbHTwwvv2SILjwK4M smPlZ2y5RSoOpNprIJBUPfFSjSduS8nhiq8THY8wvaIqyf0lF2XUbuw1UIgI3N/WkP V6cyBa25ojZXHSRpMkh6DwSy9SJB5imQXTGwVSxGToPIY0pSEfeCalKDxv+KkFtHkD UnC4JVRhlZ9AFJ4MYENu68oJagiJjwPhrwqrkRJy0k032hkSJ+UC0F7V/bvhSTq/sP u1faWzd8WI1Zpug+/tAnhVd/78XsC2Lk0ohZk8C9PU8nPfurf71KaUDmIoJBjw1QNX hKA1XpJZQAGRA== Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.18; envelope-from=heimeborgia@protonmail.com; helo=mail-4318.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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270256 Archived-At: Any time one wants to write (insert) into a read-only buffer (e.g. *help*),= =20 one has to make it writable. Doesn't matter when that time is. If it's=20 read-only you need to make it writable to write into it. Reading the source for 'with-help-window', it arranges for 'inhibit-read-on= ly'=20 to be set to 't' around the call to its body. Once the body finishes, that= =20 temporary binding goes out of scope and read-only is in effect again. The aforementioned resetting of 'inhibit-read-only' to 't' is an important= =20 feature that should be included in the docstring for the function 'with-hel= p-window'.