From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#13335: 24.1; compilation misparses GNU-style message locations Date: Wed, 2 Jan 2013 15:53:19 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1357140592 27529 80.91.229.3 (2 Jan 2013 15:29:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2013 15:29:52 +0000 (UTC) To: 13335@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 02 16:30:08 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TqQGe-0000BO-Ci for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jan 2013 16:30:08 +0100 Original-Received: from localhost ([::1]:51885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqQGO-0006L9-VZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jan 2013 10:29:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqQGF-0006Jz-GS for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 10:29:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqQGC-0000ag-SE for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 10:29:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqQGC-0000ac-Oo for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 10:29:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TqQHW-0006DN-2O for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 10:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jan 2013 15:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13335 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135714061423818 (code B ref -1); Wed, 02 Jan 2013 15:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jan 2013 15:30:14 +0000 Original-Received: from localhost ([127.0.0.1]:40268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TqQGj-0006C6-Al for submit@debbugs.gnu.org; Wed, 02 Jan 2013 10:30:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33324) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TqQGh-0006Bz-BA for submit@debbugs.gnu.org; Wed, 02 Jan 2013 10:30:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqQFL-0000GU-KS for submit@debbugs.gnu.org; Wed, 02 Jan 2013 10:28:49 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:33175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqQFL-0000GL-HJ for submit@debbugs.gnu.org; Wed, 02 Jan 2013 10:28:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqQFI-0006Fj-M0 for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 10:28:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqQFB-0000B5-BY for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 10:28:44 -0500 Original-Received: from smtprelay-h13.telenor.se ([62.127.194.6]:57818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqQFB-00009S-4W for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2013 10:28:37 -0500 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h13.telenor.se (Postfix) with ESMTP id C342F487DA for ; Wed, 2 Jan 2013 15:53:20 +0100 (CET) X-SMTPAUTH-B2: [mategn] X-SENDER-IP: [85.229.43.14] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Asj/AEZJ5FBV5SsOPGdsb2JhbABFgX9DRkCHLKsAh1gWAwEBAQE4NIJdAoFjiESZNp8bkDlhA6lJ X-Suspected-Spam: Yes X-IronPort-AV: E=Sophos;i="4.84,396,1355094000"; d="scan'208";a="475588471" Original-Received: from c-0e2be555.032-29-73746f10.cust.bredbandsbolaget.se ([85.229.43.14]) by ipb2.telenor.se with ESMTP; 02 Jan 2013 15:53:20 +0100 X-Mailer: Apple Mail (2.936) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69292 Archived-At: According to the GNU standards, a valid error message format is FILE:LINE.COL1-COL2: MESSAGE but this is not parsed correctly by the "gnu" regexp in compile.el; it is interpreted as the line range LINE-COL2 starting at column COL1. The consequence is that Emacs does not highlight the correct part of the buffer when entering the file at that location. This was disovered when writing a tool whose diagnostics would work nicely with Emacs. Using the longer form FILE:LINE.COL1-LINE.COL2: TEXT worked correctly. According to etc/compilation.txt, it looks like the intention is to allow either format. The "gnu" regexp is quite complex and it is not immediately obvious what is wrong. There is also what appears to be a superfluous backslash on the last line: *[Ee]rror\\|\[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" ^ Since "\[" just means "[", this does not affect the actual regexp. In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2012-07-30 on bach.e.vtech