From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: menu-bar: disable items when no frame visible Date: Thu, 10 Nov 2005 19:39:08 +0000 Message-ID: <0E0F66C8-DC13-469A-8725-2896CB60AF65@gmail.com> References: <708F3D2D-A87C-4F80-BC27-171D82653F4D@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: multipart/mixed; boundary="===============1001697637==" X-Trace: sea.gmane.org 1131651733 13504 80.91.229.2 (10 Nov 2005 19:42:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2005 19:42:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 10 20:42:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EaIGe-0000qw-S2 for ged-emacs-devel@m.gmane.org; Thu, 10 Nov 2005 20:39:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EaIGe-0006uI-4l for ged-emacs-devel@m.gmane.org; Thu, 10 Nov 2005 14:39:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EaIGQ-0006ts-Hn for emacs-devel@gnu.org; Thu, 10 Nov 2005 14:39:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EaIGO-0006tG-W0 for emacs-devel@gnu.org; Thu, 10 Nov 2005 14:39:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EaIGO-0006t8-Tc for emacs-devel@gnu.org; Thu, 10 Nov 2005 14:39:12 -0500 Original-Received: from [64.233.162.194] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EaIGO-0000Qw-U8 for emacs-devel@gnu.org; Thu, 10 Nov 2005 14:39:13 -0500 Original-Received: by zproxy.gmail.com with SMTP id r28so467910nza for ; Thu, 10 Nov 2005 11:39:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:from:subject:date:to:x-mailer; b=YB1UvnuDkQtcDvLKDf27HcXa3PYK4L49RwVpl/ARH8z7lOoep+ECX1Jar8fD+itLYsQ6zVve+TYekznOAxyJrjHYUl6gDv25Z1iM66Ts4PCV1yTQCno9O2mTE2y3zaF+sqQnEp0ZbfwYiOdo4wQkllckPMBCCyp24m5BKZNGKEA= Original-Received: by 10.64.201.20 with SMTP id y20mr1169696qbf; Thu, 10 Nov 2005 11:39:11 -0800 (PST) Original-Received: from ?129.215.174.81? ( [129.215.174.81]) by mx.gmail.com with ESMTP id e19sm110716qbe.2005.11.10.11.39.10; Thu, 10 Nov 2005 11:39:11 -0800 (PST) In-Reply-To: Original-To: Eli Zaretskii X-Mailer: Apple Mail (2.746.2) 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:45693 Archived-At: --===============1001697637== Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-16-873009918; protocol="application/pkcs7-signature" --Apple-Mail-16-873009918 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 10 Nov 2005, at 19:34, Eli Zaretskii wrote: >> This patch ensures that menu items are disabled when they should be, >> i.e. when there is no applicable visible and non-iconified frame. > > Could you explain why this is needed? If there's no visible frame, > the menu isn't visible as well, so no one will notice that the menu > items are enabled. > > Or am I missing something? Yes you are :) Menus are not always inside frames. On my machine, they're on top and perfectly accessible when there is no window... I think we already have a few frame-live-p/frame-visible-p checks in menu-bar, they're just not very complete. - D --Apple-Mail-16-873009918 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGOzCCAvQw ggJdoAMCAQICAw3xWjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt YWlsIElzc3VpbmcgQ0EwHhcNMDUwMjAxMjM0NTA0WhcNMDYwMjAxMjM0NTA0WjBiMRAwDgYDVQQE EwdSZWl0dGVyMQ4wDAYDVQQqEwVEYXZpZDEWMBQGA1UEAxMNRGF2aWQgUmVpdHRlcjEmMCQGCSqG SIb3DQEJARYXZGF2aWQucmVpdHRlckBnbWFpbC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw ggEKAoIBAQDhuoehK+SM/uai1CMVwn3NgRTTwqPpEBKKrr0RKTwxn+B9KFHUK033x4cV1zF4NsHx t8OG7uk25ZRnBdf2xGC4Dmz2LiGKKhps+EkGzxFuKA3Q8WbXv7stEsS1ALl/mapcaOXTukzKGcu9 wYFpmSi+PMc/61Th7A9T3bBNQcC2rKuILcaB3GM4ajekoEKFEPx/sTtMhGOLLwb5JcrWhxD0ADIA S1woY1PS3BJ4YTzPPkZMul46s7riV6CPd2gjnSn2aGvgXHTOHz7tOWmD4phVZ/THQ7nGLnIPy7gi HfXKvJ3IlM2NcHrgAGMNHaDwSWkdNdNhFe2rsoGTvLRF/fXVAgMBAAGjNDAyMCIGA1UdEQQbMBmB F2RhdmlkLnJlaXR0ZXJAZ21haWwuY29tMAwGA1U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c1ZO+afTMLYwiRVkO417wGFnzhJh014BjZoi4KvhTGPKl E+Wk7P3ie+H5WB/3HS660Of60+4RPGTc9ueP5xaJpi7EYh4F8dZxwmwdhIZnvTTv1Q+p1CCCQ4VU ivt9F6VTVQgf+MHoJLPaHZFTwOQc5b9YS8uaVhX+gdNLl7Yv1BZ8ameVTyw0zbUxf91SyK/iZWRZ AAAAAAAA --Apple-Mail-16-873009918-- --===============1001697637== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1001697637==--