unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: compile command
Date: 26 Nov 2004 00:29:33 +0100	[thread overview]
Message-ID: <87vfbtik2q.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: mailman.1520.1101420923.27204.help-gnu-emacs@gnu.org

Rodrigo Canellas <r.canellas@terra.com.br> 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.

       reply	other threads:[~2004-11-25 23:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1520.1101420923.27204.help-gnu-emacs@gnu.org>
2004-11-25 23:29 ` Pascal Bourguignon [this message]
2004-11-26  9:31 ` compile command FCC
2004-11-25 22:00 Rodrigo Canellas
2004-11-26  9:01 ` Kai Grossjohann
2004-11-26  9:13   ` Rodrigo Canellas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vfbtik2q.fsf@thalassa.informatimago.com \
    --to=spam@mouse-potato.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).