From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Siegfried Heintze" Newsgroups: gmane.emacs.help Subject: How to edit compilation-error-regexp-alist in .emacs file? Date: Mon, 16 Sep 2002 11:11:53 -0600 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1032198957 8463 127.0.0.1 (16 Sep 2002 17:55:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 17:55:57 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17r06G-0002CM-00 for ; Mon, 16 Sep 2002 19:55:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17r06Y-0004D9-00; Mon, 16 Sep 2002 13:56:14 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!newsfeed.news2me.com!sn-xit-05!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 11 Original-Xref: nntp.stanford.edu gnu.emacs.help:104951 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1506 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1506 When I put the following in my .emacs fail, I get an error. This is probably because the necessary modules have not been loaded yet. How do I automatically execute these statements after the necessary modules have been loaded? (setcar (car compilation-error-regexp-alist) (concat "\\(\\[Error\\] \\|\\[Fatal Error\\] \\)?" (caar compilation-error-regexp-alist))) (setcdr (car compilation-error-regexp-alist) '(3 4 7))