From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: menu-bar: disable items when no frame visible Date: Mon, 28 Nov 2005 22:23:03 +0200 Organization: JURTA Message-ID: <8764qcvqfs.fsf@jurta.org> References: <708F3D2D-A87C-4F80-BC27-171D82653F4D@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133210679 17843 80.91.229.2 (28 Nov 2005 20:44:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 20:44:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 21:44:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgpnI-000869-VD for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 21:40:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgpnI-0003VK-52 for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 15:40:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Egpmy-0003VD-2L for emacs-devel@gnu.org; Mon, 28 Nov 2005 15:39:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Egpmv-0003V0-DZ for emacs-devel@gnu.org; Mon, 28 Nov 2005 15:39:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egpmv-0003Ux-8Q for emacs-devel@gnu.org; Mon, 28 Nov 2005 15:39:49 -0500 Original-Received: from [194.126.101.98] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Egpmv-0007NS-0n for emacs-devel@gnu.org; Mon, 28 Nov 2005 15:39:49 -0500 Original-Received: from mail.neti.ee (80-235-44-28-dsl.mus.estpak.ee [80.235.44.28]) by Relayhost1.neti.ee (Postfix) with ESMTP id C5C68522D; Mon, 28 Nov 2005 22:40:02 +0200 (EET) Original-To: David Reitter In-Reply-To: <708F3D2D-A87C-4F80-BC27-171D82653F4D@gmail.com> (David Reitter's message of "Thu, 10 Nov 2005 15:57:23 +0000") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46719 Archived-At: > This patch ensures that menu items are disabled when they should be, > i.e. when there is no applicable visible and non-iconified frame. > In a lot of cases, one could do "insert file" or choose stuff from > the "search" menu even if there were only iconified or hidden frames. Instead of disabling some menu items one by one, wouldn't it be better to disable all menu items if the frame attached to the menu is not visible. Operating on non-visible frames from the visible menu is not only confusing, but might be dangerous. -- Juri Linkov http://www.jurta.org/emacs/