From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: compilation mode does not parse error messages from ant correctly Date: Tue, 03 Jun 2008 10:49:34 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212504627 9831 80.91.229.12 (3 Jun 2008 14:50:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2008 14:50:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bernhard Herzog Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 03 16:51:08 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K3XqQ-0004o1-0S for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 16:50:38 +0200 Original-Received: from localhost ([127.0.0.1]:46732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3Xpd-0005Pe-JQ for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 10:49:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3XpW-0005JD-Kk for emacs-devel@gnu.org; Tue, 03 Jun 2008 10:49:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3XpV-0005Fv-31 for emacs-devel@gnu.org; Tue, 03 Jun 2008 10:49:41 -0400 Original-Received: from [199.232.76.173] (port=32921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3XpU-0005Fg-VI for emacs-devel@gnu.org; Tue, 03 Jun 2008 10:49:40 -0400 Original-Received: from 206-248-132-168.dsl.teksavvy.com ([206.248.132.168]:36459 helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3XpV-0001dk-FQ for emacs-devel@gnu.org; Tue, 03 Jun 2008 10:49:41 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id D681FB423C; Tue, 3 Jun 2008 10:49:34 -0400 (EDT) In-Reply-To: (Bernhard Herzog's message of "Tue, 03 Jun 2008 15:33:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:98300 Archived-At: > The compilation mode does not parse error messages from ant correctly. > I have this problem with Emacs HEAD from this morning, but the problem > is probably older. > To reproduce, visit etc/compilation.txt. In the ant section, emacs > highlights the filenames correctly, e.g. in the line > [javac] /src/DataBaseTestCase.java:27: unreported exception ... > /src/DataBaseTestCase.java is shown with the compilation-error face as > expected. However, when clicking on the line with mouse button 1, I get > a prompt in the minibuffer with: > Find this error in (default [javac] /src/DataBaseTestCase.java): /vol1/opt/src/emacs-hg-sarge/etc/ > I. e. the default filename is the contents of the error line from the > beginning of the line until the first colon. That is, it includes the " > [javac] " which is not part of the filename. > AFAICT, this is due to the gnu regexp from > compilation-error-regexp-alist-alist also matching the ant line. If you'd used M-x report-emacs-bug, I wouldn't need to ask: what version of Emacs was that? I've installed a patch recently which rules out " /" from some filenames and should have fixed this problem. Stefan