From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: next-error insists on split windows Date: Wed, 26 Apr 2006 11:04:03 -0600 Organization: IHS Message-ID: References: <87hd4k1aai.fsf@jidanni.org> <87k69etxy3.fsf@olgas.newt.com> <32390.1145920329@olgas.newt.com> <87y7xtckpg.fsf@olgas.newt.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146071162 14982 80.91.229.2 (26 Apr 2006 17:06:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 17:06:02 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 26 19:06:00 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYnSW-00022A-OS for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2006 19:05:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYnSW-0002WM-BB for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2006 13:05:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYnS6-0002BS-3H for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2006 13:05:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYnS4-0002Ao-0a for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2006 13:05:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYnS3-0002Af-NX for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2006 13:05:19 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FYnUm-0006bm-JJ for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2006 13:08:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FYnRu-0001sk-02 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2006 19:05:10 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Apr 2006 19:05:09 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Apr 2006 19:05:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 50 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) In-Reply-To: <87y7xtckpg.fsf@olgas.newt.com> X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15061 Archived-At: Bill Wohler wrote: > Kevin Rodgers writes: > >> Bill Wohler wrote: >>> Kim F. Storm wrote: >>>> Bill Wohler writes: >>>>> FWIW, I agree with you. I don't know if Emacs 22 provides any relief. >>>> (setq grep-window-height 5) >>> Thanks for the aspirin, Kim ;-). It would still be great if next-error >>> didn't insist on making the window visible. >> What happens if you try: >> >> (setq special-display-buffer-names >> (cons '("*grep*" ignore) >> special-display-buffer-names)) > > Worse! With that code you either get: > > compilation-set-window-height: Wrong type argument: window-live-p, nil That makes sense, since the buffer was not actually displayed it has no window. Should compilation-set-window-height or the calls to it check window-live-p instead of assuming the buffer has been displayed? > Or if you s/ignore/'ignore/, then you get a separate frame that > occludes your work! Right, 'ignore is just (quote ignore), which is interpreted as setting the special frame's quote parameter to ignore. > Thanks for an intriguing suggestion, though. > > Note that the error isn't with grep, it's with next-error. 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)) (defadvice previous-error (around save-window-excursion activate) "Preserve the current window configuration." (save-window-excursion ad-do-it)) -- Kevin Rodgers