From xemacs-m  Sat Mar  1 16:34:21 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id QAA22068
	for <xemacs-beta@xemacs.org>; Sat, 1 Mar 1997 16:34:20 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id OAA12375;
	Sat, 1 Mar 1997 14:45:55 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: RFC:  pre-display-buffer-function [was Re: annoying buffer switching/focus  behavior]
References: <yvtafoo8frj.fsf@corona.pixar.com> <yvt91488atk.fsf@corona.pixar.com>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Hunter Kelly's message of 28 Feb 1997 21:01:43 -0800
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
Date: 01 Mar 1997 14:45:54 -0800
Message-ID: <m2d8tjjknx.fsf@altair.xemacs.org>
Lines: 48
X-Mailer: Gnus v5.4.16/XEmacs 20.1

Hunter Kelly writes:

> A follow up to my previous report (feeling like a lazy bastard for not
> tracking down the bug myself):

> It looks like the problem is this:
> list-buffers (and grep, and tons of other things) call display-buffer.
> display-buffer in turn runs pre-display-buffer-function, which by
> default is get-frame-for-buffer, which in turn calls
> get-frame-for-buffer-noselect.

> At the end of get-frame-for-buffer-noselect is the following:


>      (t
>       ;;
>       ;; This buffer's mode did not express a preference for a frame of a
>       ;; particular name.  So try to find a frame already displaying this
>       ;; buffer.  
>       ;;



> We could add a customization variable, or change the value of the hook
> (which I don't think is the right thing, it seems like
> get-frame-for-buffer does useful things), or change what happens in
> the case I illustrated above.  I'll do the work, I just need a
> consensus on what the right thing is.

We already have two customization variables can you use them?

C-h v pop-up-windows
pop-up-windows's value is t
  -- a variable declared in Lisp.

Documentation:
*Non-nil means display-buffer should make new windows.


C-h v pop-up-frames
pop-up-frames's value is nil
  -- a variable declared in Lisp.

Documentation:
*Non-nil means `display-buffer' should make a separate frame.
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

