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 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. From flitterio@gmail.com Wed Sep 10 18:50:13 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=-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 Subject: Re: bug#956: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. 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 flitterio@gmail.com Thu Sep 11 12:36:23 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=-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 Subject: Re: bug#956: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. 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 cyd@stupidchicken.com Thu Sep 11 17:40:12 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=-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 Subject: Re: bug#956: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. 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. From unknown Mon Aug 18 02:36:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Fri, 10 Oct 2008 14:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator