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: Sat, 24 Dec 2005 22:12:27 +0200 Organization: JURTA Message-ID: <87ek42nwbr.fsf@jurta.org> References: <708F3D2D-A87C-4F80-BC27-171D82653F4D@gmail.com> <069BF3EB-C5E4-4042-91E9-0DFB37C58E99@gmail.com> <87u0d3cu9y.fsf@jurta.org> <87y82b7evb.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 1135456457 15833 80.91.229.2 (24 Dec 2005 20:34:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Dec 2005 20:34:17 +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 Sat Dec 24 21:34:16 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 1EqG5j-0000Ve-1B for ged-emacs-devel@m.gmane.org; Sat, 24 Dec 2005 21:34:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqG6q-000769-9W for ged-emacs-devel@m.gmane.org; Sat, 24 Dec 2005 15:35:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EqG5s-0006qm-H6 for emacs-devel@gnu.org; Sat, 24 Dec 2005 15:34:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EqG5r-0006q0-60 for emacs-devel@gnu.org; Sat, 24 Dec 2005 15:34:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqG5q-0006pv-R6 for emacs-devel@gnu.org; Sat, 24 Dec 2005 15:34:18 -0500 Original-Received: from [194.126.101.98] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EqG5M-0000p8-MQ; Sat, 24 Dec 2005 15:33:48 -0500 Original-Received: from mail.neti.ee (80-235-35-230-dsl.mus.estpak.ee [80.235.35.230]) by Relayhost1.neti.ee (Postfix) with ESMTP id 33837CB37; Sat, 24 Dec 2005 22:33:26 +0200 (EET) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sat, 24 Dec 2005 11:32:41 -0500") 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:48332 Archived-At: > 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")) > > I think a symbol in such a position means to use its function > definition, not its value. Thus, unless I am misremembering, the > first version would not work at all. Was it ever really in use? Actually, both versions work correctly. I guess the first version works because menu operations can read the value of the map variable, and the second version works because functions that modify the menu operate directly on the Lisp structure by modifying its cells. I don't know which of these two variants is more preferable. -- Juri Linkov http://www.jurta.org/emacs/