From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: From menu button, how run more than one command? Date: Thu, 02 Mar 2006 17:01:52 +0100 Organization: Chalmers University of Technology, Sweden Message-ID: References: <11vvif44kod09bd@corp.supernews.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1141411514 5089 80.91.229.2 (3 Mar 2006 18:45:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 18:45:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 03 19:45:13 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFFGT-0006T7-1f for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 19:44:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFFGR-0002C7-HM for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 13:44:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.net.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: linus003.dd.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1141315312 27537 129.16.117.203 (2 Mar 2006 16:01:52 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Thu, 2 Mar 2006 16:01:52 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:20GJIKmC7T1mPsanGkvE8ocWUEs= Original-Xref: shelby.stanford.edu gnu.emacs.help:137881 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33492 Archived-At: Kevin Rodgers writes: > Mathias Dahl wrote: >> (defvar my-menu (make-sparse-keymap)) >> >> (define-key my-menu [rmx1] >> `(menu-item "Find file on c:/" >> ,(lambda () >> (interactive) >> (abc "c:/")))) [...] > (lambda ...) is a self-evaluating form, so the backquote/comma > syntax is completely extraneous and can be replaced with a simple > quote: '(menu-item ...) Having `lambda' in a non-quoted context has the advantage that the byte-compiler can process it. -- Johan Bockgård