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

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

Re: wish bash would make emacs compile-mode compliant error messages


From: Ehud Karni
Subject: Re: wish bash would make emacs compile-mode compliant error messages
Date: Tue, 30 Oct 2001 17:21:53 +0200

On 30 Oct 2001 09:42:10 +0800, Dan Jacobson <jidanni@deadspam.com> wrote:
> 
> these lines don't work
> wanttoquitsoon: line 26: unexpected EOF while looking for matching `''
> wanttoquitsoon: line 39: syntax error: unexpected end of file

Add this code to your .emacs:

(let ((rgxp "\\([^+][^: \n]+\\): line \\([0-9]+\\): ")
        (or (assoc rgxp compilation-error-regexp-alist)
            (setq compilation-error-regexp-alist
                   (append compilation-error-regexp-alist (list (list rgxp 1 
2)))))))

And, what a magic, these lines are parsed too !

Ehud.


-- 
 Ehud Karni     Mivtach - Simon  Insurance   /"\
 Tel: +972-3-7966-561 Fax: +972-3-7966-667   \ /  ASCII Ribbon Campaign
 (USA) Fax and  voice  mail: 1-815-5509341    X   Against  HTML  Mail
     Better     Safe     Than     Sorry      / \
     mailto:ehud@unix.simonwiesel.co.il    http://www.simonwiesel.co.il



reply via email to

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