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 21:43:16 -0400 Message-ID: References: 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 1221098903 22398 80.91.229.12 (11 Sep 2008 02:08:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 02:08:23 +0000 (UTC) Cc: Chong Yidong To: 956@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 04:09: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 1KdbcU-0000Gr-R1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 04:09:19 +0200 Original-Received: from localhost ([127.0.0.1]:60653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdbbU-0003cq-My for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 22:08:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kdbaw-0003Ok-93 for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 22:07:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kdbat-0003Ml-Ql for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 22:07:41 -0400 Original-Received: from [199.232.76.173] (port=52723 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdbat-0003Ma-I1 for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 22:07:39 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40605) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kdbaq-0000D8-9G for bug-gnu-emacs@gnu.org; Wed, 10 Sep 2008 22:07:36 -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 m8B27Xl6030200; Wed, 10 Sep 2008 19:07:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8B204Ys026466; Wed, 10 Sep 2008 19:00:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Francis Litterio Resent-To: bug-submit-list@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: Original-Received: via spool by 956-submit@emacsbugs.donarmstrong.com id=B956.122109781323608 (code B ref 956); Thu, 11 Sep 2008 02:00:04 +0000 Original-Received: (at 956) by emacsbugs.donarmstrong.com; 11 Sep 2008 01:50:13 +0000 Original-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 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 m8B1mgJq021029; Wed, 10 Sep 2008 21:48:45 -0400 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") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 10 Sep 2008 22:07:41 -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:20454 Archived-At: 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