[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: next-error insists on split windows

From: Bill Wohler
Subject: Re: next-error insists on split windows
Date: Thu, 27 Apr 2006 08:15:06 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Kevin Rodgers <ihs_4664@yahoo.com> writes:

> So M-x compile and M-x grep ought to display the *compilation* and
> *grep* buffers, but next-error and previous-error shouldn't.  Does
> advising them to preserve the window configuration do what you want:
> (defadvice next-error (around save-window-excursion activate)
>   "Preserve the current window configuration."
>   (save-window-excursion
>     ad-do-it))

It's a bit too strong since if the buffer with the next error isn't
current visible, you won't see it.

Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]