help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading compile.el, modifying settings


From: Oleksandr Gavenko
Subject: Re: reading compile.el, modifying settings
Date: Thu, 12 May 2011 15:49:10 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

On 05.05.2011 13:44, Tassilo Horn wrote:
Paul Graham<pgraham@oasys-ds.com>  writes:

Hi Paul,

I use compile mode, but I have my own set of compiler
message regexps.  I try to set them up as follows:

.emacs:

     (load "compile")
     (load-file "~/emacs/compile-settings.el")

compile-settings.el:

     (setq compilation-error-regexp-alist ... )

That looks good, except one would normally do (require 'compile), but
that shouldn't be any different here.

I use such code (as example):

(eval-after-load 'compile
  '(progn
     ;; My funny error messages.
(add-to-list 'compilation-error-regexp-alist '("^\\( +\\[csc\\] \\|\\)\\(.*\\)(\\([0-9]*\\),\\([0-9]*\\)):" 2 3 4)) (add-to-list 'compilation-error-regexp-alist '("^ *\\(.*\\)(\\([0-9]*\\)) +:" 1 2)) (add-to-list 'compilation-error-regexp-alist '("^\"?\\([^\"]*\\)\"?,\\([0-9]*\\) .*\\[.*\\]: " 1 2)) ; KEIL compiler
     (when (boundp 'compilation-mode-font-lock-keywords)
(add-to-list 'compilation-mode-font-lock-keywords '("\\(/[Oo][Uu][Tt]:[^[:blank:]]+\\)" . 1)) (add-to-list 'compilation-mode-font-lock-keywords '("[[:blank:]]\\(/F[oe][^[:blank:]]+\\)" . 1))
       )
     ))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]