From xemacs-m  Sat May 31 19:23:05 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id TAA17081
	for <xemacs-beta@xemacs.org>; Sat, 31 May 1997 19:22:59 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id CAA00484; Sun, 1 Jun 1997 02:22:52 +0200 (MET DST)
To: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: [PATCH] 20.3-b3: new tty frame selected too soon
References: <QQcrzc00937.199706010008@crystal.WonderWorks.COM>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
Emacs: if SIGINT doesn't work, try a tranquilizer.
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 01 Jun 1997 02:22:51 +0200
In-Reply-To: Kyle Jones's message of Sat, 31 May 1997 20:08:55 -0400 (EDT)
Message-ID: <kigraenp3xg.fsf@jagor.srce.hr>
Lines: 30
X-Mailer: Gnus v5.4.52/XEmacs 20.2

Kyle Jones <kyle_jones@wonderworks.com> writes:

> xemacs -nw
> 
> (eq (make-frame) (selected-frame))
> 
> returns t.  It should return nil.

True.  How about doing what the FSF does, and that is not to select
newly created frames at all, except when created by the user?  This is 
from FSF:

(defun make-frame-command ()
  "Make a new frame, and select it if the terminal displays only one frame."
  (interactive)
  (if (and window-system (not (eq window-system 'pc)))
      (make-frame)
    (select-frame (make-frame))))

However, since you don't get a window manager under TTY-s, this has
the evil consequence of forcing the package authors to call
`select-frame' after nearly every `make-frame'.  So maybe it's not a
good solution after all.

Definitely.  Kyle's patch is fine.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Speak softly and carry a +6 two-handed sword.

