From xemacs-m  Tue Jul  8 14:57:29 1997
Received: from chaos.hut.fi (ave@chaos.hut.fi [130.233.244.36])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA23691
	for <xemacs-beta@xemacs.org>; Tue, 8 Jul 1997 14:57:28 -0500 (CDT)
Received: (from ave@localhost)
	by chaos.hut.fi (8.8.5/8.8.5) id WAA07931;
	Tue, 8 Jul 1997 22:58:52 +0300
To: xemacs-beta@xemacs.org
Subject: [patch] File->Delete Frame sensitivity
Mail-Copies-To: never
X-Attribution: Ave
From: Aki Vehtari <Aki.Vehtari@hut.fi>
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 08 Jul 1997 22:58:51 +0300
Message-ID: <l2en99mi2s.fsf@chaos.hut.fi>
Lines: 19
X-Mailer: Gnus v5.4.60/XEmacs 20.3(beta10) - "Athens"


"Delete Frame" in File menu should be sensitive when there is
more than one frame. At the moment it counts frames on selected
device, not all frames on all devices, so it's unsensitive if you
have more than one frame but those frames are eg. in different
x-displays (that's what I have).

Following patch fixes this (tested).

--- x-menubar.el.orig   Tue Jul  8 15:52:33 1997
+++ x-menubar.el        Tue Jul  8 22:47:55 1997
@@ -779,7 +779,7 @@
                 (aset item 2 (not (not (or buffer-file-name
                                            revert-buffer-function)))))
            (and (string= "Delete Frame" name)
-                (aset item 2 (not (eq (next-frame) (selected-frame)))))
+                (aset item 2 (device-or-frame-p (second (frame-list)))))
            )))
     result))

