From unknown Sat Aug 16 22:46:53 2025 X-Loop: don@donarmstrong.com Subject: bug#956: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. Reply-To: Francis Litterio , 956@debbugs.gnu.org Resent-From: Francis Litterio Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 10 Sep 2008 16:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 956 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12210629045727 (code B ref -1); Wed, 10 Sep 2008 16:15:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Sep 2008 16:08:24 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8AG8Lri005721 for ; Wed, 10 Sep 2008 09:08:22 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdSEu-00007K-P6 for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:08:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdSEs-0008W0-WA for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:08:20 -0400 Received: from [199.232.76.173] (port=45063 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdSEs-0008VX-PK for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:08:18 -0400 Received: from pcls6.std.com ([192.74.137.146]:49725 helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdSEs-00032s-CT for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:08:18 -0400 Received: from usenlittefl1c.theworld.com (IDENT:105@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m8AG71BU015129 for ; Wed, 10 Sep 2008 12:07:05 -0400 From: Francis Litterio To: bug-gnu-emacs@gnu.org Date: Wed, 10 Sep 2008 11:44:32 -0400 X-Random-Quote: What I look forward to is continued immaturity followed by death. -- Dave Barry Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. To reproduce, evaluate this form: (let ((inhibit-read-only t)) (with-current-buffer (get-buffer-create "zzz") (insert "fooxxxbar") (replace-regexp "x+" "z" nil (point-min) (point-max)))) You will see this error: Buffer is read-only: # This may be caused by this code in function perform-replace (in lisp/replace.el): (let ((inhibit-read-only query-replace-skip-read-only)) The docstring for query-replace-skip-read-only says: *Non-nil means `query-replace' and friends ignore read-only matches. which does not seem to match how it is used in that let form, especially since replace-regexp is not interactive like query-replace. -- Fran From unknown Sat Aug 16 22:46:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Francis Litterio Subject: bug#956 closed by Chong Yidong (Re: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only.) Message-ID: References: <873ak78wy8.fsf@cyd.mit.edu> X-Emacs-PR-Message: they-closed 956 X-Emacs-PR-Package: emacs Reply-To: 956@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1221085505-13047-1" This is a multi-part message in MIME format... ------------=_1221085505-13047-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #956: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 956: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D956 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1221085505-13047-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Wed Sep 10 15:17:29 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 956-done) by emacsbugs.donarmstrong.com; 10 Sep 2008 22:17:29 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8AMHQwF010965 for <956-done@emacsbugs.donarmstrong.com>; Wed, 10 Sep 2008 15:17:28 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 7CDBC57E32F; Wed, 10 Sep 2008 18:20:31 -0400 (EDT) From: Chong Yidong To: Francis Litterio Cc: 956-done@debbugs.gnu.org Subject: Re: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. Date: Wed, 10 Sep 2008 18:20:31 -0400 Message-ID: <873ak78wy8.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. Thanks for spotting this. I've checked in a fix. ------------=_1221085505-13047-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From flitterio@gmail.com Wed Sep 10 09:08:24 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 10 Sep 2008 16:08:24 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8AG8Lri005721 for ; Wed, 10 Sep 2008 09:08:22 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdSEu-00007K-P6 for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:08:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdSEs-0008W0-WA for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:08:20 -0400 Received: from [199.232.76.173] (port=45063 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdSEs-0008VX-PK for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:08:18 -0400 Received: from pcls6.std.com ([192.74.137.146]:49725 helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdSEs-00032s-CT for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:08:18 -0400 Received: from usenlittefl1c.theworld.com (IDENT:105@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m8AG71BU015129 for ; Wed, 10 Sep 2008 12:07:05 -0400 From: Francis Litterio To: bug-gnu-emacs@gnu.org Subject: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. Date: Wed, 10 Sep 2008 11:44:32 -0400 X-Random-Quote: What I look forward to is continued immaturity followed by death. -- Dave Barry Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. To reproduce, evaluate this form: (let ((inhibit-read-only t)) (with-current-buffer (get-buffer-create "zzz") (insert "fooxxxbar") (replace-regexp "x+" "z" nil (point-min) (point-max)))) You will see this error: Buffer is read-only: # This may be caused by this code in function perform-replace (in lisp/replace.el): (let ((inhibit-read-only query-replace-skip-read-only)) The docstring for query-replace-skip-read-only says: *Non-nil means `query-replace' and friends ignore read-only matches. which does not seem to match how it is used in that let form, especially since replace-regexp is not interactive like query-replace. -- Fran ------------=_1221085505-13047-1-- From unknown Sat Aug 16 22:46:53 2025 X-Loop: don@donarmstrong.com Subject: bug#956: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. Reply-To: Francis Litterio , 956@debbugs.gnu.org Resent-From: Francis Litterio Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 11 Sep 2008 02:00:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 956 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 956-submit@emacsbugs.donarmstrong.com id=B956.122109781323608 (code B ref 956); Thu, 11 Sep 2008 02:00:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 956) by emacsbugs.donarmstrong.com; 11 Sep 2008 01:50:13 +0000 Received: from TheWorld.com (pcls2.std.com [192.74.137.142]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8B1o93T023395 for <956@emacsbugs.donarmstrong.com>; Wed, 10 Sep 2008 18:50:10 -0700 Received: from usenlittefl1c.theworld.com (IDENT:105@shell01.TheWorld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m8B1mgJq021029; Wed, 10 Sep 2008 21:48:45 -0400 From: Francis Litterio To: 956@debbugs.gnu.org Cc: Chong Yidong Date: Wed, 10 Sep 2008 21:43:16 -0400 References: X-Random-Quote: A man can be what he wants, but he cannot want what he wants. -- T. E. Lawrence In-Reply-To: (Francis Litterio's message of "Wed, 10 Sep 2008 11:44:32 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I wrote: > In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. To > reproduce, evaluate this form: > > (let ((inhibit-read-only t)) > (with-current-buffer (get-buffer-create "zzz") > (insert "fooxxxbar") > (replace-regexp "x+" "z" nil (point-min) (point-max)))) Of course, that should have been: (let ((inhibit-read-only t)) (with-current-buffer (get-buffer-create "zzz") (toggle-read-only 1) ;; Forgot this in my original report! (insert "fooxxxbar") (replace-regexp "x+" "z" nil (point-min) (point-max)))) Chong Yidong wrote: > Thanks for spotting this. I've checked in a fix. Thanks! -- Fran From unknown Sat Aug 16 22:46:53 2025 X-Loop: don@donarmstrong.com Subject: bug#956: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. Reply-To: Francis Litterio , 956@debbugs.gnu.org Resent-From: Francis Litterio Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 11 Sep 2008 19:45:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 956 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 956-submit@emacsbugs.donarmstrong.com id=B956.122116178417943 (code B ref 956); Thu, 11 Sep 2008 19:45:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 956) by emacsbugs.donarmstrong.com; 11 Sep 2008 19:36:24 +0000 Received: from TheWorld.com (root@pcls1.std.com [192.74.137.141]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8BJaHY6017937 for <956@emacsbugs.donarmstrong.com>; Thu, 11 Sep 2008 12:36:18 -0700 Received: from usenlittefl1c.theworld.com (IDENT:105@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m8BJZUc4023429; Thu, 11 Sep 2008 15:35:32 -0400 From: Francis Litterio To: 956@debbugs.gnu.org Cc: Chong Yidong Date: Thu, 11 Sep 2008 15:33:00 -0400 References: X-Random-Quote: Tragedy is when I cut my finger. Comedy is when you walk into an open sewer and die. -- Mel Brooks In-Reply-To: (Francis Litterio's message of "Wed, 10 Sep 2008 21:43:16 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Francis Litterio wrote: > I wrote: > >> In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. To >> reproduce, evaluate this form: > (let ((inhibit-read-only t)) > (with-current-buffer (get-buffer-create "zzz") > > (toggle-read-only 1) ;; Forgot this in my original report! > > (insert "fooxxxbar") > (replace-regexp "x+" "z" nil (point-min) (point-max)))) > > Chong Yidong wrote: > >> Thanks for spotting this. I've checked in a fix. > > Thanks! I updated from CVS after seeing your above message, and the bug is still there. What file did you change? -- Fran From unknown Sat Aug 16 22:46:53 2025 X-Loop: don@donarmstrong.com Subject: bug#956: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. Reply-To: Chong Yidong , 956@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 12 Sep 2008 00:45:06 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 956 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 956-submit@emacsbugs.donarmstrong.com id=B956.122118001327394 (code B ref 956); Fri, 12 Sep 2008 00:45:06 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.8 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 956) by emacsbugs.donarmstrong.com; 12 Sep 2008 00:40:13 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8C0e85f027166 for <956@emacsbugs.donarmstrong.com>; Thu, 11 Sep 2008 17:40:10 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 5016357E32F; Thu, 11 Sep 2008 20:43:19 -0400 (EDT) From: Chong Yidong To: Francis Litterio Cc: 956@debbugs.gnu.org References: Date: Thu, 11 Sep 2008 20:43:19 -0400 In-Reply-To: (Francis Litterio's message of "Thu, 11 Sep 2008 15:33:00 -0400") Message-ID: <87sks6p520.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Francis Litterio writes: > I updated from CVS after seeing your above message, and the bug is still > there. What file did you change? I forgot to commit the file itself; please try again.