From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.bugs Subject: bug#956: In CVS Emacs, replace-regexp doesn't honor inhibit-read-only. Date: Wed, 10 Sep 2008 11:44:32 -0400 Message-ID: Reply-To: Francis Litterio , 956@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221064404 21103 80.91.229.12 (10 Sep 2008 16:33:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2008 16:33:24 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 10 18:34:19 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 1KdSdo-0004tQ-Pj for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 18:34:05 +0200 Original-Received: from localhost ([127.0.0.1]:57404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdSco-00004s-Dc for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 12:33:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdSXb-0005Qu-84 for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:27:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdSXX-0005Pr-Q1 for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:27:38 -0400 Original-Received: from [199.232.76.173] (port=45361 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdSXX-0005Pg-EA for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12:27:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45395) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdSXW-0006NA-UF for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 12: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 m8AGRWSi012713; Wed, 10 Sep 2008 09:27:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8AGF3tf007708; Wed, 10 Sep 2008 09:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Francis Litterio Resent-To: bug-submit-list@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: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12210629045727 (code B ref -1); Wed, 10 Sep 2008 16:15:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 10 Sep 2008 16:08:24 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 X-Random-Quote: What I look forward to is continued immaturity followed by death. -- Dave Barry X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 10 Sep 2008 12:27:38 -0400 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:20436 Archived-At: 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