From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Corbyn Newsgroups: gmane.emacs.bugs Subject: bug#10174: 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/alternative; boundary="Apple-Mail=_04D91FAD-7D0C-49EE-95AB-44C9B683AD9C" X-Trace: dough.gmane.org 1322688325 2737 80.91.229.12 (30 Nov 2011 21:25:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2011 21:25:25 +0000 (UTC) To: 10174@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 30 22:25:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RVrea-0000jL-1L for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2011 22:25:20 +0100 Original-Received: from localhost ([::1]:52438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVreZ-0006MZ-Jv for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2011 16:25:19 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVreF-0006GA-56 for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 16:25:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVreD-00045d-JR for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 16:24:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVreD-00045V-Gb for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 16:24:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RVreI-0002Cs-7r for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2011 16:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chris Corbyn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2011 21:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10174 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13226882568418 (code B ref -1); Wed, 30 Nov 2011 21:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Nov 2011 21:24:16 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-Received: by bke17 with SMTP id 17so1621630bke.0 for ; Wed, 30 Nov 2011 13:08:50 -0800 (PST) Original-Received: by 10.205.139.65 with SMTP id iv1mr4280391bkc.34.1322687328063; Wed, 30 Nov 2011 13:08:48 -0800 (PST) Original-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) 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-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 Resent-Date: Wed, 30 Nov 2011 16:25:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Wed, 30 Nov 2011 16:25:17 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54517 Archived-At: --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--