From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: compile command Date: 26 Nov 2004 00:29:33 +0100 Organization: [posted via Easynet Spain] Message-ID: <87vfbtik2q.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101425454 5122 80.91.229.6 (25 Nov 2004 23:30:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Nov 2004 23:30:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 26 00:30:45 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CXT4W-0008Ru-00 for ; Fri, 26 Nov 2004 00:30:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXTDj-0004h0-UR for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Nov 2004 18:40:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-monga!easynet.net!easynet-post1!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 36 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=L>O8eA@>gGQ\i79C^MkQiZN[]a?6B>:PSbBd4DjF1d]Q Original-Xref: shelby.stanford.edu gnu.emacs.help:126925 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: main.gmane.org gmane.emacs.help:22327 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22327 Rodrigo Canellas writes: > Hi, > > > In my '.emacs' I have this: > > (global-set-key [f9] 'compile) > > But I would like to 'make' the project when I pressed 'f9'. > > I tried > > (global-set-key [f9] '(compile make)) > > but I got a syntax error. > > I also tried (global-set-key [f9] '(compile (make))) > > but I got this message: > > Wrong type argument: commandp, (compile (make) > > > Does anyone know how it should be done? Yes, you should pay attention to the error messages! If they're too fugacious in the Mini-Buffer, you can see them in the *Message* buffer. compile: Wrong type argument: char-or-string-p, make -------- -------------------- ---------------- ---- who says What's wrong What's expected What you gave. -- __Pascal Bourguignon__ http://www.informatimago.com/ The world will now reboot; don't bother saving your artefacts.