bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compilation-error-regexp-alist


From: Gerd Moellmann
Subject: Re: compilation-error-regexp-alist
Date: 15 Jan 2001 16:33:10 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.96

Erik Forkalsrud <erik@cj.com> writes:

> When I use compile to syntax-check my perl code, the filenames and
> line numbers of the warnings are not recognized with the default 
> compilation-error-regexp-alist.
> 
> A sample warning is:
> 
> Name "main::act" used only once: possible typo at b.pl line 21.
> 
> 
> There is one regexp in the list that comes very close:
> 
>   (".* at \\([^ ]+\\) line \\([0-9]+\\)," 1 2)
> 
> it only needs to accept a . instead of the , at the end. The latest
> version I have tested this in is the 20.7.1 that comes with Redhat
> Linux 7.0. To work around this, I add the following to my .emacs:
> 
> (add-to-list 'compilation-error-regexp-alist '(".* at \\([^ ]+\\) line 
> \\([0-9]+\\)\\." 1 2))
> 
> It would be nice to have the default regexp handle this -- maybe
> change the existing one to something like:
> 
>   (".* at \\([^ ]+\\) line \\([0-9]+\\)[,\\.]" 1 2)
> 
> Perl version: (output from perl -v)
> 
>   This is perl, version 5.005_03 built for i386-linux

Thanks, Erik.  I think this has been fixed in our current sources.
When 21.1 is released, please check that it works, and file a new
bug report if not.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]