From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 30 16:24:16 2011 Received: (at submit) by debbugs.gnu.org; 30 Nov 2011 21:24:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVrdY-0002Bi-IT for submit@debbugs.gnu.org; Wed, 30 Nov 2011 16:24:16 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVrck-0002A9-Bz for submit@debbugs.gnu.org; Wed, 30 Nov 2011 16:23:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVrcd-0003iF-V8 for submit@debbugs.gnu.org; Wed, 30 Nov 2011 16:23:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:57291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVrcd-0003eS-P6 for submit@debbugs.gnu.org; Wed, 30 Nov 2011 16:23:19 -0500 Received: from eggs.gnu.org ([140.186.70.92]:35788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVrOf-0002AU-3A for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 16:08:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVrOd-0001Ri-OF for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 16:08:53 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:54912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVrOd-0001RW-JF for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 16:08:51 -0500 Received: by bke17 with SMTP id 17so1621630bke.0 for ; Wed, 30 Nov 2011 13:08:50 -0800 (PST) Received: by 10.205.139.65 with SMTP id iv1mr4280391bkc.34.1322687328063; Wed, 30 Nov 2011 13:08:48 -0800 (PST) Received: from [192.168.1.2] (203-214-32-197.dyn.iinet.net.au. [203.214.32.197]) by mx.google.com with ESMTPS id c4sm6560926bkk.13.2011.11.30.13.08.45 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 13:08:47 -0800 (PST) From: Chris Corbyn Content-Type: multipart/alternative; boundary="Apple-Mail=_04D91FAD-7D0C-49EE-95AB-44C9B683AD9C" Subject: find-named-dired followed by Query and Replace leaves emacs in a bad state Date: Thu, 1 Dec 2011 08:08:40 +1100 Message-Id: <31162C2F-52BF-45A2-967F-5FC395BC0930@w3style.co.uk> To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 30 Nov 2011 16:24:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) --Apple-Mail=_04D91FAD-7D0C-49EE-95AB-44C9B683AD9C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi All, See = http://stackoverflow.com/questions/8321589/emacs-find-and-replace-regex-in= -multiple-files-find-name-dired-q-doesnt-sa/8329696#8329696 for the = original question. I've been told to officially report the bug. Basically I'm trying to find & replace across all files in my project; = which I'm doing by starting find-name-dired, then selecting all the = files in my project, hitting "Q" for Query & Replace, and following the = interactive process. It is doing the search and replace in exactly the way I'd expect, but = she I try to save the 27 buffers it leaves open (using = save-some-buffers) it says there are no changes to be saved. Trying to = save a single buffer does the same thing, yet I can see the changes = clear as day. Editing the buffer and saving it again does work, but = this is not practical over 27 of them; obviously there's a bug here with = the find & replace not marking the buffers as modified. I also tried using IBuffer to save all the buffers, which reported to = have saved them, but actually hadn't written anything to disk. I assume = that IBuffer's reporting of what it saved is actually just telling me = how many buffers were selected when I asked it to save the, but is not = checking to make sure they really did save. Can somebody please confirm that this is a bug and/or provide a suitable = workaround? :) I'd just do this on the command line if I didn't need to = do it interactively, due to some ambiguities. Cheers, Chris --Apple-Mail=_04D91FAD-7D0C-49EE-95AB-44C9B683AD9C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = All,


Basically I'm trying to find & replace = across all files in my project; which I'm doing by starting = find-name-dired, then selecting all the files in my project, hitting "Q" = for Query & Replace, and following the interactive = process.

It is doing the search and replace in = exactly the way I'd expect, but she  I try to save the 27 buffers = it leaves open (using save-some-buffers) it says there are no changes to = be saved.  Trying to save a single buffer does the same thing, yet = I can see the changes clear as day.  Editing the buffer and saving = it again does work, but this is not practical over 27 of them; obviously = there's a bug here with the find & replace not marking the buffers = as modified.

I also tried using IBuffer to save = all the buffers, which reported to have saved them, but actually hadn't = written anything to disk.  I assume that IBuffer's reporting of = what it saved is actually just telling me how many buffers were selected = when I asked it to save the, but is not checking to make sure they = really did save.

Can somebody please confirm = that this is a bug and/or provide a suitable workaround? :)  I'd = just do this on the command line if I didn't need to do it = interactively, due to some = ambiguities.

Cheers,

Chr= is

= --Apple-Mail=_04D91FAD-7D0C-49EE-95AB-44C9B683AD9C-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 30 16:42:17 2011 Received: (at 10174) by debbugs.gnu.org; 30 Nov 2011 21:42:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVruy-0002dY-5y for submit@debbugs.gnu.org; Wed, 30 Nov 2011 16:42:17 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVruu-0002dH-2Q for 10174@debbugs.gnu.org; Wed, 30 Nov 2011 16:42:12 -0500 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pAULg3hD015951; Wed, 30 Nov 2011 16:42:03 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 6B42313008C; Wed, 30 Nov 2011 16:42:03 -0500 (EST) From: Stefan Monnier To: Chris Corbyn Subject: Re: bug#10174: find-named-dired followed by Query and Replace leaves emacs in a bad state Message-ID: References: <31162C2F-52BF-45A2-967F-5FC395BC0930@w3style.co.uk> Date: Wed, 30 Nov 2011 16:42:03 -0500 In-Reply-To: <31162C2F-52BF-45A2-967F-5FC395BC0930@w3style.co.uk> (Chris Corbyn's message of "Thu, 1 Dec 2011 08:08:40 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4057=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4057> : streams <706654> : uri <1019375> X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 10174 Cc: 10174@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.5 (----) > It is doing the search and replace in exactly the way I'd expect, but she > I try to save the 27 buffers it leaves open (using save-some-buffers) it > says there are no changes to be saved. Trying to save a single buffer does I can't reproduce this problem here. I tried: [ starting from some elisp package directory (tuareg in this case) ] % emacs23 -Q M-x find-name-dired RET RET *.el RET t Q with RET when RET !!!!!!.... ad nauseam M-x save-some-buffers RET yyyyyy..... The last line is because it asked me whether to save each buffer. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 30 17:51:40 2011 Received: (at 10174) by debbugs.gnu.org; 30 Nov 2011 22:51:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVt05-0004CI-3r for submit@debbugs.gnu.org; Wed, 30 Nov 2011 17:51:38 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVt01-0004CA-Df for 10174@debbugs.gnu.org; Wed, 30 Nov 2011 17:51:35 -0500 Received: by eear51 with SMTP id r51so743982eea.3 for <10174@debbugs.gnu.org>; Wed, 30 Nov 2011 14:51:27 -0800 (PST) Received: by 10.14.3.206 with SMTP id 54mr559948eeh.214.1322693487221; Wed, 30 Nov 2011 14:51:27 -0800 (PST) Received: from [192.168.1.2] (203-214-32-197.dyn.iinet.net.au. [203.214.32.197]) by mx.google.com with ESMTPS id d6sm11091523eec.10.2011.11.30.14.51.24 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 14:51:26 -0800 (PST) Subject: Re: bug#10174: find-named-dired followed by Query and Replace leaves emacs in a bad state Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=us-ascii From: Chris Corbyn In-Reply-To: Date: Thu, 1 Dec 2011 09:51:19 +1100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <31162C2F-52BF-45A2-967F-5FC395BC0930@w3style.co.uk> To: Stefan Monnier X-Mailer: Apple Mail (2.1244.3) X-Spam-Score: -4.5 (----) X-Debbugs-Envelope-To: 10174 Cc: 10174@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) I compiled Emacs from source recently (a couple of months ago). The = version given is "GNU Emacs 23.3.1". Hopefully this narrows it down. What exact version are you using, = Stefan? On 01/12/2011, at 8:42 AM, Stefan Monnier wrote: >> It is doing the search and replace in exactly the way I'd expect, but = she >> I try to save the 27 buffers it leaves open (using save-some-buffers) = it >> says there are no changes to be saved. Trying to save a single = buffer does >=20 > I can't reproduce this problem here. > I tried: >=20 > [ starting from some elisp package directory (tuareg in this case) ] > % emacs23 -Q > M-x find-name-dired RET > RET > *.el RET > t > Q > with RET when RET > !!!!!!.... ad nauseam > M-x save-some-buffers RET > yyyyyy..... >=20 > The last line is because it asked me whether to save each buffer. >=20 >=20 > Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 01 00:09:52 2011 Received: (at 10174) by debbugs.gnu.org; 1 Dec 2011 05:09:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVyu8-0004KO-3r for submit@debbugs.gnu.org; Thu, 01 Dec 2011 00:09:52 -0500 Received: from mail-gx0-f172.google.com ([209.85.161.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RVyu6-0004KH-9d for 10174@debbugs.gnu.org; Thu, 01 Dec 2011 00:09:51 -0500 Received: by ggnp4 with SMTP id p4so1482765ggn.3 for <10174@debbugs.gnu.org>; Wed, 30 Nov 2011 21:09:42 -0800 (PST) Received: by 10.100.122.19 with SMTP id u19mr1292303anc.111.1322716182522; Wed, 30 Nov 2011 21:09:42 -0800 (PST) Received: from chipbook.lan (203-206-182-17.perm.iinet.net.au. [203.206.182.17]) by mx.google.com with ESMTPS id 17sm8466380and.15.2011.11.30.21.09.38 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 21:09:41 -0800 (PST) Subject: Re: bug#10174: find-named-dired followed by Query and Replace leaves emacs in a bad state Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=us-ascii From: Chris Corbyn In-Reply-To: Date: Thu, 1 Dec 2011 16:09:32 +1100 Content-Transfer-Encoding: quoted-printable Message-Id: <5EF6F7B8-DC71-4311-A326-3D4466528E11@w3style.co.uk> References: <31162C2F-52BF-45A2-967F-5FC395BC0930@w3style.co.uk> To: Stefan Monnier X-Mailer: Apple Mail (2.1244.3) X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 10174 Cc: 10174@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) Switched to emacs HEAD and its working there, thanks. Expected = everything to explode under HEAD with regards to the extensions I have = installed, but fortunately it seems to work. Not sure how to close this request, but consider it closed :) On 01/12/2011, at 8:42 AM, Stefan Monnier wrote: >> It is doing the search and replace in exactly the way I'd expect, but = she >> I try to save the 27 buffers it leaves open (using save-some-buffers) = it >> says there are no changes to be saved. Trying to save a single = buffer does >=20 > I can't reproduce this problem here. > I tried: >=20 > [ starting from some elisp package directory (tuareg in this case) ] > % emacs23 -Q > M-x find-name-dired RET > RET > *.el RET > t > Q > with RET when RET > !!!!!!.... ad nauseam > M-x save-some-buffers RET > yyyyyy..... >=20 > The last line is because it asked me whether to save each buffer. >=20 >=20 > Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 01 10:49:38 2011 Received: (at 10174) by debbugs.gnu.org; 1 Dec 2011 15:49:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RW8tF-0004Bt-VR for submit@debbugs.gnu.org; Thu, 01 Dec 2011 10:49:38 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RW8tD-0004Bl-DO for 10174@debbugs.gnu.org; Thu, 01 Dec 2011 10:49:36 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EABah105Ld/3d/2dsb2JhbABEqniBBoFyAQEEAVYjBQsLNBIUGA0kiBq4DosgBIgomhCETw X-IronPort-AV: E=Sophos;i="4.71,278,1320642000"; d="scan'208";a="150385226" Received: from 75-119-253-221.dsl.teksavvy.com (HELO ceviche.home) ([75.119.253.221]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Dec 2011 10:49:25 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 249D6660D4; Thu, 1 Dec 2011 10:49:24 -0500 (EST) From: Stefan Monnier To: Chris Corbyn Subject: Re: bug#10174: find-named-dired followed by Query and Replace leaves emacs in a bad state Message-ID: References: <31162C2F-52BF-45A2-967F-5FC395BC0930@w3style.co.uk> Date: Thu, 01 Dec 2011 10:49:24 -0500 In-Reply-To: (Chris Corbyn's message of "Thu, 1 Dec 2011 09:51:19 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 10174 Cc: 10174@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) > I compiled Emacs from source recently (a couple of months ago). The version > given is "GNU Emacs 23.3.1". > Hopefully this narrows it down. What exact version are you using, Stefan? I'm using the `emacs23' package from Debian testing, which is a lightly patched Emacs-23.3 (the ".1" is not actually part of the version information: it's a build counter). I'm happy to hear it's fixed for you on the trunk, but I'm still puzzled. Can you reproduce it starting from "emacs -Q" with Emacs-23.3? Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 18:24:22 2012 Received: (at control) by debbugs.gnu.org; 5 Jan 2012 23:24:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RiwfV-0008K5-O6 for submit@debbugs.gnu.org; Thu, 05 Jan 2012 18:24:22 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RiwfT-0008Jv-24 for control@debbugs.gnu.org; Thu, 05 Jan 2012 18:24:19 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Riwc2-0006Vt-Gh for control@debbugs.gnu.org; Thu, 05 Jan 2012 18:20:46 -0500 Date: Thu, 05 Jan 2012 18:20:46 -0500 Message-Id: Subject: control message for bug 10174 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) close 10174 From unknown Sat Jun 21 10:41:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 03 Feb 2012 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator