Mail Archives: djgpp/1998/07/09/12:16:14
On Thu, 9 Jul 1998, Mark Bidewell wrote:
> Does anyone know how to evoke the GNU compiler from GNU emacs??
Press ALt-x, then type "compile" (without the quotes) and press [Enter].
The default compilation command is "make -k", but you can edit it when
Emacs prompts you for the command (after you press Alt-x).
After you have invoked the compile command once, Emacs will suggest it as
the default the next time. `Alt-x recompile' will invoke the last
compilation command without the prompt.
If the compilation produces error/warning messages, they will be
displayed at the bottom. To visit the locus of a particular message,
click the right mouse button on the message line, and Emacs will load
the offending file and position you right on the line which triggered
the message. Or press Ctrl-x ` (that's the grave accent) to step through
all the messages in sequence.
Btw, the best way to look for commands whose names you don't know is
with the `apropos' command (also available from the menu bar). Press
`Ctrl-h a', then type a word like "compile" and press [Enter], and Emacs
will pop a window with a list of all commands pertaining to the "compile"
and their short descriptions.
- Raw text -