From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Syver Enstad Newsgroups: gmane.emacs.help Subject: Re: How to edit compilation-error-regexp-alist in .emacs file? Date: Mon, 16 Sep 2002 18:18:09 GMT Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032200765 14820 127.0.0.1 (16 Sep 2002 18:26:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 18:26:05 +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 17r0ZP-0003qm-00 for ; Mon, 16 Sep 2002 20:26:03 +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 17r0Za-0003It-00; Mon, 16 Sep 2002 14:26:14 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!Norway.EU.net!newsfeed1.ulv.nextra.no!nextra.com!news4.ulv.nextra.no.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 80.213.2.122 Original-X-Complaints-To: news-abuse@nextra.no Original-NNTP-Posting-Date: Mon, 16 Sep 2002 20:18:09 MEST Original-X-Trace: news4.ulv.nextra.no 1032200289 80.213.2.122 Original-Xref: nntp.stanford.edu gnu.emacs.help:104953 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:1508 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1508 "Siegfried Heintze" writes: > 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)) Use a hook? -- Vennlig hilsen Syver Enstad