From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#956: marked as done (In CVS Emacs, replace-regexp doesn't honor inhibit-read-only.) Date: Wed, 10 Sep 2008 15:25:05 -0700 Message-ID: References: <873ak78wy8.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1221085505-13047-0" X-Trace: ger.gmane.org 1221085683 14155 80.91.229.12 (10 Sep 2008 22:28:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2008 22:28:03 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 00:28:59 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdYB0-0004I9-Of for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 00:28:43 +0200 Original-Received: from localhost ([127.0.0.1]:52334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdYA0-0003Bg-DN for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 18:27:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdY9w-0003B9-9j for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 18:27:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdY9v-0003Au-JP for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 18:27:35 -0400 Original-Received: from [199.232.76.173] (port=34197 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdY9v-0003Ar-BL for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 18:27:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35740) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdY9v-0006as-7M for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 18:27:35 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8AMRXwT014428; Wed, 10 Sep 2008 15:27:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8AMP5dw013156; Wed, 10 Sep 2008 15:25:05 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 956 X-Emacs-PR-Package: emacs X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20452 Archived-At: This is a multi-part message in MIME format... ------------=_1221085505-13047-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Wed, 10 Sep 2008 18:20:31 -0400 with message-id <873ak78wy8.fsf@cyd.mit.edu> and subject line Re: In CVS Emacs, replace-regexp doesn't honor inhibit-rea= d-only. has caused the Emacs bug report #956, regarding In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 956: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D956 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1221085505-13047-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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@emacsbugs.donarmstrong.com 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-0--