I can't figure out what's going on here. I've done a search and replace across a whole directory, using:
Now I've cycled through all the buffers it opens for me, selectively press "y" or "n" depending on the replacement. When it finished, it just left me in the last buffer I had changed.
So, hitting C-z to background the emacs window and check what has changed, shows that none of the files are saved, which I expected.
So then I did M-x save-some-buffers RET
, which tells me there are no files to be saved. So I start rotating through my buffers with C-x b and verify that, yes indeed, the buffers do have changes compared to what is on disk.
So I repeat the process, this time with a completely fresh emacs process (no open buffers at all when I start the process). At the end I have a bunch of buffers open, with changes (that I can see), yet again, emacs says there's nothing to save.
So I tried using C-x C-b to bring up IBuffer. Marked all the files I wanted to save, then hit "S" to save them, at which point it shows "Operation finished; saved 27 buffers". Awesome... except git is still telling me that emacs has in fact saved nothing.
What am I doing wrong? I want to replace "transaction" with "invoice" across my entire project, though I do need to do it interactively, since there are some places where that replacement should not be done.
Emacs 23.
I've reproed the behaviour you describe. Sure smells like a bug to me. Please report it at [email protected].
The Emacs contributors are very responsive.
P.S. Love the details you put into your question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With