GNU Info

Info Node: (efaq)Compiler error messages

(efaq)Compiler error messages


Next: Indenting switch statements Prev: Using an already running Emacs process Up: Common requests
Enter node , (file) or (file)node

How do I make Emacs recognize my compiler's funny error messages?
=================================================================

   The variable `compilation-error-regexp-alist' helps control how
Emacs parses your compiler output.  It is a list of triplets of the
form: `(REGEXP FILE-IDX LINE-IDX)', where REGEXP, FILE-IDX and LINE-IDX
are strings.  To help determine what the constituent elements should
be, load `compile.el' and then type `C-h v
compilation-error-regexp-alist <RET>' to see the current value.  A good
idea is to look at `compile.el' itself as the comments included for
this variable are quite useful--the regular expressions required for
your compiler's output may be very close to one already provided.  Once
you have determined the proper regexps, use the following to inform
Emacs of your changes:

     (setq compilation-error-regexp-alist
           (cons '(REGEXP FILE-IDX LINE-IDX)
              compilation-error-regexp-alist))


automatically generated by info2www version 1.2.2.9