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: Fri, 23 Dec 2005 22:43:34 +0200 Organization: JURTA Message-ID: <87y82b7evb.fsf@jurta.org> References: <708F3D2D-A87C-4F80-BC27-171D82653F4D@gmail.com> <069BF3EB-C5E4-4042-91E9-0DFB37C58E99@gmail.com> <87u0d3cu9y.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135371415 23354 80.91.229.2 (23 Dec 2005 20:56:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Dec 2005 20:56:55 +0000 (UTC) Cc: david.reitter@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 23 21:56:53 2005 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Epty8-0000p6-VA for ged-emacs-devel@m.gmane.org; Fri, 23 Dec 2005 21:56:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EptzD-0002hy-0W for ged-emacs-devel@m.gmane.org; Fri, 23 Dec 2005 15:57:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eptz0-0002h9-H5 for emacs-devel@gnu.org; Fri, 23 Dec 2005 15:57:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eptyz-0002ga-Fn for emacs-devel@gnu.org; Fri, 23 Dec 2005 15:57:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eptyz-0002gT-Ba for emacs-devel@gnu.org; Fri, 23 Dec 2005 15:57:45 -0500 Original-Received: from [194.126.101.98] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EptxI-0001WF-4X; Fri, 23 Dec 2005 15:56:00 -0500 Original-Received: from mail.neti.ee (80-235-44-35-dsl.mus.estpak.ee [80.235.44.35]) by Relayhost1.neti.ee (Postfix) with ESMTP id 1D214209E; Fri, 23 Dec 2005 22:55:50 +0200 (EET) Original-To: rms@gnu.org In-Reply-To: <87u0d3cu9y.fsf@jurta.org> (Juri Linkov's message of "Tue, 20 Dec 2005 23:55:47 +0200") 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:48267 Archived-At: > Since I fixed menu-bar to work on non-toolkit builds, I think patches > sent by David Reitter finally can be installed now. I looked at these patches and now I have some questions. 1. What is the purpose of adding the condition `enable-recursive-minibuffers' to `:enable' of "Visit New File..." and "Open File..."? If to allow calling `find-file' in the minibuffer then this doesn't work anyway. It gives an error after selecting "Open File..." and selecting a file name while point in the minibuffer: find-file: Cannot switch buffers in minibuffer window 2. Why keymap variables are replaced with their values at the moment of adding a menu item? I.e. what changes like the following achieve? (define-key menu-bar-edit-menu [bookmark] - '(menu-item "Bookmarks" menu-bar-bookmark-map + `(menu-item "Bookmarks" ,menu-bar-bookmark-map :help "Record positions and jump between them")) -- Juri Linkov http://www.jurta.org/emacs/