Next: , Up: Shell Commands   [Index]


9.5.1 Compiling in Emacs

M-x compile’ asynchronously runs a compilation command (by default make -k). You can run any command or script, however, and track the output. Error messages go to the "compilation" buffer.

CommandsDescription
M-x compileRuns a command, and tracks errors
M-x recompileRe-runs last command
M-g M-n’, ‘M-g M-pJumps to next or previous error
C-x `Visit errors sequentially
g’ (Compilation mode)Re-runs last command
M-x kill-compilationKill the running compilation subprocess
compile-commandVariable holding prior command
compilation-scroll-outputVariable controlling scrolling of compilation buffer
compilation-environmentVariable to control the environment passed

Table 9.2: Compilation command key bindings