GNU bug report logs -
#10174
find-named-dired followed by Query and Replace leaves emacs in a bad state
Previous Next
Reported by: Chris Corbyn <chris <at> w3style.co.uk>
Date: Wed, 30 Nov 2011 21:25:02 UTC
Severity: normal
Tags: moreinfo, unreproducible
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
This bug report was last modified 13 years and 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.