Wilfred / ag.el

An Emacs frontend to The Silver Searcher
http://agel.readthedocs.org/en/latest/
525 stars 61 forks source link

next-error-follow disabled when ag-reuse-window set true #96

Open jmindek opened 8 years ago

jmindek commented 8 years ago

I'd like to use both next-error-follow-minor-mode and ag-reuse-window. In my .emacs I have: (setq ag-reuse-window 't) While in a ag results buffer, I hit C-c C-f to activate next-error-follow-minor-mode.

When I move my cursor to the next match, the match is oriented at the top of the buffer, however the file where the match is contained does not appear in another buffer.

Wilfred commented 8 years ago

Agreed, this doesn't work.

I'm not sure what behaviour you're expecting though. It seems to me like next-error-follow-minor-mode would be annoying with ag-reuse-window. As soon as you moved in the results buffer, the results buffer (presumably) would be hidden. Is this what you want? You'd be unable to skip over search results.