When I use grep–find it opens another window (area in the frame) with a list of results that I can select. When I select one it opens the target file in a different window than grep–find is in.
How can I get the target file to open in the same window as the grep results (replacing the grep results window with what I am actually looking for).
How can I keep grep-find from opening a separate window (have it so it opens in the current window). My goal is I look for something, I find it, I go to it, all within the same window. I would like to add this to my .emacs file.
It doesn’t look like there is any way to configure the
compilepackage to do what you’re asking. And there’s no easy way to use advice to tweak the behavior. I think you have to resort to editing the function which actually jumps to the error, which you can do with the following addition to your .emacs (tested in Emacs 23.1):The
eval-afer-loadportion just ensures that you re-define it after Emacs defined it, so that your change takes hold.