From xemacs-m  Tue Mar  4 19:07:48 1997
Received: from cdc.noaa.gov (manager.Colorado.EDU [128.138.218.210])
	by xemacs.org (8.8.5/8.8.5) with SMTP id TAA23550
	for <xemacs-beta@xemacs.org>; Tue, 4 Mar 1997 19:07:48 -0600 (CST)
Received: from suomi by cdc.noaa.gov (SMI-8.6/SMI-SVR4)
	id SAA17260; Tue, 4 Mar 1997 18:07:48 -0700
Received: by suomi (SMI-8.6) id SAA29899; Tue, 4 Mar 1997 18:07:43 -0700
Sender: mdb@cdc.noaa.gov
To: XEmacs beta-list <xemacs-beta@xemacs.org>
Subject: [20.1-b5] frame-live-p() 
Organization: CIRES, University of Colorado
X-Attribution: mb
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
From: Mark Borges <mdb@cdc.noaa.gov>
Date: 04 Mar 1997 18:07:42 -0700
Message-ID: <vk67z7b0yp.fsf@cdc.noaa.gov>
Lines: 42
X-Mailer: Gnus v5.4.17/XEmacs 20.1


I've been using this function,

       ;; Customize the toolbar
       (defun toolbar-news ()
	 "Run GNUS in a separate frame."
	 (interactive)
	 (if (or (not toolbar-news-frame)
		 (not (frame-live-p toolbar-news-frame)))
	     (progn
	       (setq toolbar-news-frame (make-frame))
	       (add-hook 'gnus-exit-gnus-hook
			 '(lambda ()
			    (if (frame-live-p toolbar-news-frame)
				(delete-frame toolbar-news-frame))))
	       (select-frame toolbar-news-frame)
	       (raise-frame toolbar-news-frame)
	       (start-my-gnus 0)))
	 (if (frame-iconified-p toolbar-news-frame)
	     (deiconify-frame toolbar-news-frame))
	 (select-frame toolbar-news-frame)
	 (raise-frame toolbar-news-frame))

to automatically delete the frame after gnus exits, but it now refuses
to do so in the latest betas (I think it happens in 19.15-b97 as well,
but I can't be positive as I've been flipping back and forth today):

------------------------------------------------------------------------------
Attempt to delete the sole visible or iconified frame

Are you sure you want to quit reading news? (y or n) Yes
Are you sure you want to quit reading news? (y or n) 
------------------------------------------------------------------------------

in fact, there are two frames, one displaying a dired buffer, one
displaying gnus. Should I be using something other than frame-live-p()
now?

thanks.

-- 
  -mb-

