[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages
From: |
LanX |
Subject: |
Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages |
Date: |
Fri, 9 Oct 2009 05:56:52 -0700 (PDT) |
User-agent: |
G2/1.0 |
Hi
I found a workaround by extending the regexes to match the whole
line!
Changing in mode-compile.el from
------------------------------------------------
(defvar perl-compilation-error-regexp-alist
;; Contributed by Martin Jost
'(
;; PERL 4
("in file \\([^ ]+\\) at line \\([0-9]+\\).*" 1 2)
;; PERL 5 Blubber at FILE line XY, <XY> line ab.
("at \\([^ ]+\\) line \\([0-9]+\\)," 1 2)
;; PERL 5 Blubber at FILE line XY.
("at \\([^ ]+\\) line \\([0-9]+\\)." 1 2)
)
;; This look like a paranoiac regexp: could anybody find a better
one? (which WORK).
;;'(("^[^\n]* \\(file\\|at\\) \\([^ \t\n]+\\) [^\n]*line \\([0-9]+\\)
[\\.,]" 2 3))
"Alist that specifies how to match errors in perl output.
See variable compilation-error-regexp-alist for more details.")
------------------------------------------------
to
------------------------------------------------
(defvar perl-compilation-error-regexp-alist
;; Contributed by Martin Jost
'(
;; PERL 4
("^[^\n]* in file \\([^ ]+\\) at line \\([0-9]+\\).*" 1 2)
;; PERL 5 Blubber at FILE line XY, <XY> line ab.
("^[^\n]* at \\([^ ]+\\) line \\([0-9]+\\)," 1 2)
;; PERL 5 Blubber at FILE line XY.
("^[^\n]* at \\([^ ]+\\) line \\([0-9]+\\)." 1 2)
)
;; This look like a paranoiac regexp: could anybody find a better
one? (which WORK).
;;'(("^[^\n]* \\(file\\|at\\) \\([^ \t\n]+\\) [^\n]*line \\([0-9]+\\)
[\\.,]" 2 3))
"Alist that specifies how to match errors in perl output.
See variable compilation-error-regexp-alist for more details.")
------------------------------------------------
fixes the problem in emacs 23! 8)
(Plz note: the WHOLE error line gets underlined now)
Have there been changes to compile.el???
(I'm not sure if this problem might be caused by the German
localization of my Ubuntu installation since I had encoding problems
in the past. But I never changed the default settings .
In mode-compile.el I occasionally see `^L´ between paragraphs...
)
Anyway I will send a bug report and mail to the authors of mode-
compile.el and compile.el.
Cheers
Rolf
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, (continued)
- Message not available
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Peter Dyballa, 2009/10/01
- Message not available
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, LanX, 2009/10/01
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Peter Dyballa, 2009/10/01
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, LanX, 2009/10/01
- Message not available
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Ilya Zakharevich, 2009/10/01
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Peter Dyballa, 2009/10/01
- Message not available
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, LanX, 2009/10/02
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, LanX, 2009/10/08
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, LanX, 2009/10/08
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Peter Dyballa, 2009/10/09
- Message not available
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages,
LanX <=
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Peter Dyballa, 2009/10/09
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, LanX, 2009/10/09
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, LanX, 2009/10/09
- Message not available
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Ilya Zakharevich, 2009/10/09
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Lennart Borgman, 2009/10/09
- Message not available
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, LanX, 2009/10/10
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Joseph Brenner, 2009/10/30
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Stefan Monnier, 2009/10/30
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Lennart Borgman, 2009/10/30
- Re: In emacs 23 compile-mode doesn't recognize (c)perl error messages, Peter Dyballa, 2009/10/10