From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: How to edit compilation-error-regexp-alist in .emacs file? Date: Fri, 27 Sep 2002 13:47:30 +0200 Organization: University of Dortmund, Germany 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 1033127867 8639 127.0.0.1 (27 Sep 2002 11:57:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 27 Sep 2002 11:57:47 +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 17utkf-0002FC-00 for ; Fri, 27 Sep 2002 13:57:46 +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 17utkr-00065H-00; Fri, 27 Sep 2002 07:57:57 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.73.101.75!eusc.inter.net!Informatik.Uni-Dortmund.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: lucy.cs.uni-dortmund.de Mail-Copies-To: never User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:vkjKTJtMtvVUG6lf3gHh6aJdpeY= Original-Xref: nntp.stanford.edu gnu.emacs.help:105381 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:1930 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1930 "Siegfried Heintze" writes: > Well the setcdr and setcar are kinda ugly but they work. I agree, it would > be more readable to just push new values on. I'll change that in the future. OK. > Anyway, to recognize the error messages produced by the apache xerces-j I > have to open my .emacs file, double click on the progn statement (shown in > the fragment of code I initially posted in this thread), paste it into the > alt-shift-: minibuffer and execute it. Then I can use c-x` to jump to the > errors. Can I automate this process of altering the variable > compilation-error-regexp-alist? Yes. > I saw the code in the perl module so I just pasted it into my .emacs and it > is not producing any error messages but it is not working either. My code in > the progn statement seems to work as long as it is not executed directly in > my .emacs file (which apparently tries to execute before the > compilation-error-regexp-alist variable has been created). Yes. > I don't want to use the require statement because that would require > compile-mode be loaded at that time and I would like to defer that, > especially if I never use it. Well, if you have the choice of making Emacs startup slower by 0.5 secs or of having something that does not work, what do you want to choose :-) > If I try to execute in my .emacs file, it complains that there is no such > variable compilation-error-regexp-alist. When compilation-error-regexp-alist is defined, look which file it comes from, with C-h v. I think it's compile, not mode-compile. Then specify the right filename in eval-after-load. kai -- ~/.signature is: umop ap!sdn (Frank Nobis)