Any setting I can use to get back the old behavior where killing a buffer I get to the next buffer for the files I have given on the command line?
I have been using Emacs like this for years
- Open many files in emacs buffers:
emacs $(find . -name "Makefile")
- Start recording macro:
- Do a small safe change to one of the files
- Kill buffer:
C-x k <ret>
- Stop recording:
- Try it out once or twice:
- Run the macro on all the files:
C-u C-u C-u C-x e
- Exit Emacs:
- Redo from 1 until all have the intended changes
I work in Release Engineering and use to call this "working more horizontally vs dev work", changing things like updating copyright headers in many files. Emacs and macros has helped me a lot and is in general more flexible vs using sed/awk/perl one-liners!
Problem is, with more recent Emacs versions the first time I do step 5 Emacs will go to the
*scratch* buffer. Fine, I do
C-x k <ret> and then hit
C-x e again. Only to end up in the
After this Emacs seems to go to buffers for the files I gave on the command line and end with
*Buffer List* where I exit Emacs.
This might sound like a small thing, but I do this many times a day and constantly be thrown into
*Messages* instead of the intended file buffers is annoying. Especially since I want to hit a few
C-u and when entering those buffers my macro will fail and everything stop.