From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: From menu button, how run more than one command? Date: Thu, 02 Mar 2006 11:50:05 +0100 Message-ID: References: <11vvif44kod09bd@corp.supernews.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141418612 32481 80.91.229.2 (3 Mar 2006 20:43:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 20:43:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 03 21:43:31 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 1FFH76-0000y5-HG for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 21:43:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFH75-0002RU-US for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 15:43:00 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: individual.net t24gEOlUkZHcvvezW14UwQBIXEEyHVdA09FWFe+w64hRMXzFgY User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:jsKzxP6oXNEUHV2Cw7XK6zZQ2OU= Original-Xref: shelby.stanford.edu gnu.emacs.help:137869 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:33501 Archived-At: Kevin Rodgers writes: > > (define-key my-menu [rmx2] > > `(menu-item "Find file on h:/" > > ,(lambda () > > (interactive) > > (abc "h:/")))) > (lambda ...) is a self-evaluating form, so the backquote/comma syntax is > completely extraneous and can be replaced with a simple quote: > '(menu-item ...) I played a lot with that and the above worked so... :) My elisp is a bit shaky and sometimes you don't know what you do wrong and what changes that fixed the problem, so I probably changed some other thing while adding those "`" and "," which solved the problem. Anyway, thanks for pointing it out, I will play some more with it.