Go to the first, previous, next, last section, table of contents.


Running a Compilation

The command to run a shell command in a buffer is,

Meta-x compile
Prompts you for the command to execute, with a default of the last command you ran (starts as `make'). A shell process is created which runs asynchronously to the editor in the same directory as the current buffer's file was loaded from. The buffer *compilation* is selected and this is where all output from the program is printed.

When the process finishes running a message is printed in the *compilation* buffer telling you its exit-code.

Only one process may be run with the compile function at once.

This command is not available on the Amiga version yet.

Variable: compile-command
This buffer-local variable defines the value of the prompt you are given upon running the compile command. It is often useful to embed the command needed to compile a file in the `Local Variables:' section of that file, See section File Variables.

For example, the following piece of text placed at the end of the file `foo.c' would set compile-command appropriately.

/*
 * Local Variables:
 * compile-command:"gcc -g -O2 -Wall -o foo foo.c"
 * End:
 */

Variable: compile-default-command
The value of this variable defines the value of the compile-command variable when it is undefined. Jade originally defines this as `make'.


Go to the first, previous, next, last section, table of contents.