Emacs31
The main.c buffer is still the active buffer, but it is linked to the *compilation* buffer. As
indicated by Figure 2-6, typing
^X-`
the first error in the bottom buffer is highlighted and the
pointer in the top buffer is positioned in the line of code that caused the error. Repeating that
command moves the pointer forward in the code to the next error.
While navigating through the *compilation* buffer, typing
^C^C
will move the code in
the window to the line referenced by the error message. Table 2-11 lists the commands used to
aid in debugging compiled code.
Table2-11 Compiling with Emacs
ActionCommand
M-X compileCompile a file or an entire project
^X-`Find the next error
^C^CExamine source code that created the error
Figure2-6 Using the built-in functions to debug code.