From unknown Sat Jun 14 19:30:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13335: 24.1; compilation misparses GNU-style message locations 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: To: 13335@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.135714061423818 (code B ref -1); Wed, 02 Jan 2013 15:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jan 2013 15:30:14 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.2 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 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 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 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 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" 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 Message-Id: From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 2 Jan 2013 15:53:19 +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-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) 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 From unknown Sat Jun 14 19:30:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13335: 24.1; compilation misparses GNU-style message locations Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Jan 2013 07:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13335 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Cc: 13335@debbugs.gnu.org Received: via spool by 13335-submit@debbugs.gnu.org id=B13335.13578044404862 (code B ref 13335); Thu, 10 Jan 2013 07:54:02 +0000 Received: (at 13335) by debbugs.gnu.org; 10 Jan 2013 07:54:00 +0000 Received: from localhost ([127.0.0.1]:52616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TtCxb-0001GL-0e for submit@debbugs.gnu.org; Thu, 10 Jan 2013 02:54:00 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:47105 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TtCxW-0001G8-Fc for 13335@debbugs.gnu.org; Thu, 10 Jan 2013 02:53:57 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TtCxU-0000pd-HY; Thu, 10 Jan 2013 02:53:52 -0500 From: Glenn Morris References: X-Spook: TWA nuclear Merlin Fortezza Steve Case Ft. Knox digicash X-Ran: W]T+U@:&{oc(w3YD#|vkks^,53vL= ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Wed, 2 Jan 2013 15:53:19 +0100") Message-ID: <8nd2xdwk1b.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Mattias Engdeg=C3=A5rd wrote: > 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. Thanks. It seems there was a misunderstanding of what this format meant, because in the Emacs test-suite it is also interpreted as LINE1.COL1-LINE2. > 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. That does \[ look wrong, but I don't think it is related. It seems difficult to do all the following with a single regexp and still get the subexpressions to have the same numbers in each case: LINE1 LINE1[.:]COL1 LINE1.COL1-COL2 LINE1.COL1-LINE2.COL2 LINE1-LINE2 LINE1-LINE2.COL2 # this seems to be something Emacs made up AFAICS This is the best I can come up with: *** lisp/progmodes/compile.el 2013-01-07 01:23:26 +0000 --- lisp/progmodes/compile.el 2013-01-10 07:42:50 +0000 *************** *** 134,139 **** --- 134,140 ---- =20=20 ;; If you make any changes to `compilation-error-regexp-alist-alist', ;; be sure to run the ERT test in test/automated/compile-tests.el. + ;; emacs -batch -l compile-tests.el -f ert-run-tests-batch-and-exit =20=20 (defvar compilation-error-regexp-alist-alist '((absoft *************** *** 261,268 **** ;; The "in \\|from " exception was added to handle messages from Rub= y. "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\|[ \t]+\\(?:in \\|from \\)\\)?\ \\([0-9]*[^0-9\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\): ?\ ! \\([0-9]+\\)\\(?:[.:]\\([0-9]+\\)\\)?\ ! \\(?:-\\([0-9]+\\)?\\(?:\\.\\([0-9]+\\)\\)?\\)?:\ \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\= \)\\|\ *[Ee]rror\\|\[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" --- 262,269 ---- ;; The "in \\|from " exception was added to handle messages from Rub= y. "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\|[ \t]+\\(?:in \\|from \\)\\)?\ \\([0-9]*[^0-9\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\): ?\ ! \\([0-9]+\\)\\(?:-\\(?4:[0-9]+\\)\\(?:\\.\\(?5:[0-9]+\\)\\)?\ ! \\|[.:]\\(?3:[0-9]+\\)\\(?:-\\(?:\\(?4:[0-9]+\\)\\.\\)?\\(?5:[0-9]+\\)\\)= ?\\)?:\ \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\= \)\\|\ *[Ee]rror\\|\[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" =3D=3D=3D modified file 'test/automated/compile-tests.el' *** test/automated/compile-tests.el 2013-01-01 09:11:05 +0000 --- test/automated/compile-tests.el 2013-01-10 07:39:23 +0000 *************** *** 176,183 **** ("foo.c:8.23: note: message" 1 23 8 "foo.c") ("foo.c:8.23: info: message" 1 23 8 "foo.c") ("foo.c:8:23:information: message" 1 23 8 "foo.c") ! ("foo.c:8.23-45: Informational: message" 1 (23 . nil) (8 . 45) "foo.c= ") ("foo.c:8-23: message" 1 nil (8 . 23) "foo.c") ("foo.c:8-45.3: message" 1 (nil . 4) (8 . 45) "foo.c") ("foo.c:8.23-9.1: message" 1 (23 . 2) (8 . 9) "foo.c") ("jade:dbcommon.dsl:133:17:E: missing argument for function call" --- 176,185 ---- ("foo.c:8.23: note: message" 1 23 8 "foo.c") ("foo.c:8.23: info: message" 1 23 8 "foo.c") ("foo.c:8:23:information: message" 1 23 8 "foo.c") ! ("foo.c:8.23-45: Informational: message" 1 (23 . 46) (8 . nil) "foo.c= ") ("foo.c:8-23: message" 1 nil (8 . 23) "foo.c") + ;; The next one is not in the GNU standards AFAICS. + ;; Here we seem to interpret it as LINE1-LINE2.COL2. ("foo.c:8-45.3: message" 1 (nil . 4) (8 . 45) "foo.c") ("foo.c:8.23-9.1: message" 1 (23 . 2) (8 . 9) "foo.c") ("jade:dbcommon.dsl:133:17:E: missing argument for function call" From unknown Sat Jun 14 19:30:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13335: 24.1; compilation misparses GNU-style message locations 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: Thu, 10 Jan 2013 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13335 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 13335@debbugs.gnu.org Received: via spool by 13335-submit@debbugs.gnu.org id=B13335.13578439642249 (code B ref 13335); Thu, 10 Jan 2013 18:53:01 +0000 Received: (at 13335) by debbugs.gnu.org; 10 Jan 2013 18:52:44 +0000 Received: from localhost ([127.0.0.1]:54435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TtNF6-0000aD-1j for submit@debbugs.gnu.org; Thu, 10 Jan 2013 13:52:44 -0500 Received: from smtprelay-h31.telenor.se ([213.150.131.4]:57156) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TtNF2-0000Zz-Sm for 13335@debbugs.gnu.org; Thu, 10 Jan 2013 13:52:42 -0500 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id 9395FEA062 for <13335@debbugs.gnu.org>; Thu, 10 Jan 2013 19:52:32 +0100 (CET) X-SMTPAUTH-B2: [mategn] X-SENDER-IP: [85.229.46.85] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnC3AL8M71BV5S5VPGdsb2JhbABEgkGBBoEMgSCFALJ4FgMBAQEBODSCHgEBBAE4Aj8FCwsOOEMUBogmCrQ0kD5hA6lL X-IronPort-AV: E=Sophos;i="4.84,447,1355094000"; d="scan'208";a="479542605" Received: from c-552ee555.032-29-73746f10.cust.bredbandsbolaget.se ([85.229.46.85]) by ipb2.telenor.se with ESMTP; 10 Jan 2013 19:52:32 +0100 Message-Id: From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= In-Reply-To: <8nd2xdwk1b.fsf@fencepost.gnu.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 10 Jan 2013 19:52:31 +0100 References: <8nd2xdwk1b.fsf@fencepost.gnu.org> X-Mailer: Apple Mail (2.936) X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.0 (/) 10 jan 2013 kl. 08.53 skrev Glenn Morris: > LINE1-LINE2.COL2 # this seems to be something Emacs made up AFAICS Is that something we need to keep, or do you consider it a "regression" to remove it? It does not look very useful to me (a range of lines but the same column?). Anyway, I can confirm that your patch works for a very small variety of tools (including the bug subject). Thanks for taking care of this. What about transforming that regexp into rx form, by the way? Besides being a more readable form (and fewer backslashes), it would also permit explanatory comments to be put at their natural places inside. From unknown Sat Jun 14 19:30:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13335: 24.1; compilation misparses GNU-style message locations Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Jan 2013 20:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13335 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Cc: 13335@debbugs.gnu.org Received: via spool by 13335-submit@debbugs.gnu.org id=B13335.135784994516230 (code B ref 13335); Thu, 10 Jan 2013 20:33:01 +0000 Received: (at 13335) by debbugs.gnu.org; 10 Jan 2013 20:32:25 +0000 Received: from localhost ([127.0.0.1]:54570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TtOnY-0004Dj-La for submit@debbugs.gnu.org; Thu, 10 Jan 2013 15:32:25 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:38202 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TtOnW-0004Dc-Mr for 13335@debbugs.gnu.org; Thu, 10 Jan 2013 15:32:23 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TtOnS-0000R2-9O; Thu, 10 Jan 2013 15:32:18 -0500 From: Glenn Morris References: <8nd2xdwk1b.fsf@fencepost.gnu.org> X-Spook: IDEA ASO New World Order embassy CIDA cypherpunk X-Ran: _[_hZGEj?;)NgbQF_T:2GD2%?]9`k:d{b_%TJ9(.^lwwp#rzPSL#~ X-Hue: green X-Attribution: GM Date: Thu, 10 Jan 2013 15:32:18 -0500 In-Reply-To: ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Thu, 10 Jan 2013 19:52:31 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) Mattias Engdeg=C3=A5rd wrote: >> LINE1-LINE2.COL2 # this seems to be something Emacs made up AFAICS > > Is that something we need to keep, or do you consider it a "regression" > to remove it? It does not look very useful to me (a range of lines but > the same column?). It does look fairly nonsensical... > What about transforming that regexp into rx form, by the way? > Besides being a more readable form (and fewer backslashes), > it would also permit explanatory comments to be put at their natural > places inside. More comments would be good, but could be inserted just as easily by breaking the regexp up using concat, so personally I don't see any need to switch to rx. (I don't always find rx more readable.) From unknown Sat Jun 14 19:30:36 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Subject: bug#13335: closed (Re: bug#13335: 24.1; compilation misparses GNU-style message locations) Message-ID: References: X-Gnu-PR-Message: they-closed 13335 X-Gnu-PR-Package: emacs Reply-To: 13335@debbugs.gnu.org Date: Mon, 14 Jan 2013 01:09:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1358125743-5623-1" This is a multi-part message in MIME format... ------------=_1358125743-5623-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13335: 24.1; compilation misparses GNU-style message locations which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13335@debbugs.gnu.org. --=20 13335: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13335 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1358125743-5623-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13335-done) by debbugs.gnu.org; 14 Jan 2013 01:09:01 +0000 Received: from localhost ([127.0.0.1]:58880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TuYXs-0001SV-Cu for submit@debbugs.gnu.org; Sun, 13 Jan 2013 20:09:00 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:42674 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TuYXp-0001SN-Bv for 13335-done@debbugs.gnu.org; Sun, 13 Jan 2013 20:08:58 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TuYXT-0003RL-7w; Sun, 13 Jan 2013 20:08:35 -0500 From: Glenn Morris To: 13335-done@debbugs.gnu.org Subject: Re: bug#13335: 24.1; compilation misparses GNU-style message locations References: <8nd2xdwk1b.fsf@fencepost.gnu.org> X-Spook: IRA CNCIS Cocaine CISU Merlin Ft. Knox David John Oates X-Ran: jI!diNN5`[=^8>b?]br^e'#dj{1Ijf|{o9'?&~`j%UC^f[L@7~Q)d_mq2)Gb.ruulJ5u\? X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sun, 13 Jan 2013 20:08:35 -0500 In-Reply-To: <8nd2xdwk1b.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 10 Jan 2013 02:53:52 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 13335-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) Version: 24.4 Fixed in trunk. ------------=_1358125743-5623-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Jan 2013 15:30:14 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.2 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 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 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 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 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" 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 Message-Id: From: =?ISO-8859-1?Q?Mattias_Engdeg=E5rd?= To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: 24.1; compilation misparses GNU-style message locations Date: Wed, 2 Jan 2013 15:53:19 +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-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) 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 ------------=_1358125743-5623-1-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 21 20:16:29 2013 Received: (at control) by debbugs.gnu.org; 22 Feb 2013 01:16:29 +0000 Received: from localhost ([127.0.0.1]:43240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U8hFU-0001E5-DS for submit@debbugs.gnu.org; Thu, 21 Feb 2013 20:16:28 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:48652) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U8hFQ-0001Dw-Pd for control@debbugs.gnu.org; Thu, 21 Feb 2013 20:16:25 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U8hE9-0001sb-1O for control@debbugs.gnu.org; Thu, 21 Feb 2013 20:15:05 -0500 Date: Thu, 21 Feb 2013 20:15:05 -0500 Message-Id: Subject: control message for bug 7725 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) unarchive 13335 forcemerge 13335 7725