From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Subject: Re: How to edit compilation-error-regexp-alist in .emacs file?
Date: Mon, 16 Sep 2002 21:52:56 +0200 [thread overview]
Message-ID: <vafn0qhd84n.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: uoc46v801lvd66@corp.supernews.com
"Siegfried Heintze" <siegfried@heintze.com> 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))
This is better style:
(add-to-list 'compilation-error-regexp-alist
'("your-regexp-here" 3 4 7))
Before that, you might need (require 'compile), or you need to put the
add-to-list statement in a hook, or in an eval-after-load. The
require statement is simplest, at the cost of some Emacs startup time.
kai
--
~/.signature is: umop 3p!sdn (Frank Nobis)
next prev parent reply other threads:[~2002-09-16 19:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-16 17:11 How to edit compilation-error-regexp-alist in .emacs file? Siegfried Heintze
2002-09-16 18:18 ` Syver Enstad
2002-09-16 19:52 ` Kai Großjohann [this message]
2002-09-23 2:00 ` Siegfried Heintze
2002-09-23 13:06 ` Kai Großjohann
2002-09-27 3:37 ` Siegfried Heintze
2002-09-27 11:47 ` Kai Großjohann
2002-09-27 22:55 ` Siegfried Heintze
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vafn0qhd84n.fsf@lucy.cs.uni-dortmund.de \
--to=kai.grossjohann@cs.uni-dortmund.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).