From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: reading compile.el, modifying settings Date: Thu, 12 May 2011 15:49:10 +0300 Message-ID: References: <1933055643.48627.1304431423078.JavaMail.root@aksu.oays-ds.com> <87wri5jukr.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1305204577 14725 80.91.229.12 (12 May 2011 12:49:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 May 2011 12:49:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 12 14:49:34 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QKVKa-00043J-F8 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 May 2011 14:49:28 +0200 Original-Received: from localhost ([::1]:36084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKVKZ-00016w-RZ for geh-help-gnu-emacs@m.gmane.org; Thu, 12 May 2011 08:49:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKVKS-00016b-3V for help-gnu-emacs@gnu.org; Thu, 12 May 2011 08:49:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKVKM-00073P-0o for help-gnu-emacs@gnu.org; Thu, 12 May 2011 08:49:20 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:44247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKVKL-00073B-RL for help-gnu-emacs@gnu.org; Thu, 12 May 2011 08:49:13 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QKVKI-0003qv-AK for help-gnu-emacs@gnu.org; Thu, 12 May 2011 14:49:10 +0200 Original-Received: from 91.193.68.214 ([91.193.68.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 14:49:10 +0200 Original-Received: from gavenko by 91.193.68.214 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 May 2011 14:49:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91.193.68.214 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: <87wri5jukr.fsf@member.fsf.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80966 Archived-At: On 05.05.2011 13:44, Tassilo Horn wrote: > Paul Graham 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)) ) ))