From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#2490: compilation only highlights the "E" of error Date: Mon, 11 Jul 2011 23:12:40 +0200 Message-ID: <87hb6sserb.fsf@gnu.org> References: <1yk57c4kwl.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310418817 15495 80.91.229.12 (11 Jul 2011 21:13:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 21:13:37 +0000 (UTC) Cc: 2490@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 23:13:33 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QgNnI-0000bY-Cx for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 23:13:32 +0200 Original-Received: from localhost ([::1]:47221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgNnG-00089b-7g for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 17:13:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgNmu-00088U-Uk for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 17:13:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgNmq-0004BD-Ud for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 17:13:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgNmp-0004Ao-A0 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 17:13:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QgNmo-0004NW-GG; Mon, 11 Jul 2011 17:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2011 21:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 2490-submit@debbugs.gnu.org id=B2490.131041877216811 (code B ref 2490); Mon, 11 Jul 2011 21:13:02 +0000 Original-Received: (at 2490) by debbugs.gnu.org; 11 Jul 2011 21:12:52 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgNmd-0004N6-Bc for submit@debbugs.gnu.org; Mon, 11 Jul 2011 17:12:51 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgNma-0004Mr-Nw for 2490@debbugs.gnu.org; Mon, 11 Jul 2011 17:12:50 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 84DA7E9FB2 for <2490@debbugs.gnu.org>; Mon, 11 Jul 2011 23:12:41 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.203.189] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AplpAJ1mG05V5Mu9PGdsb2JhbABTiQyeGAsBAQEBNzKIegLAJIY6BKMf X-IronPort-AV: E=Sophos;i="4.65,517,1304287200"; d="scan'208";a="205636973" Original-Received: from c-bdcbe455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.203.189]) by ipb2.telenor.se with ESMTP; 11 Jul 2011 23:12:41 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 2BB9B484308; Mon, 11 Jul 2011 23:12:40 +0200 (CEST) Mail-Copies-To: never In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 10 Jul 2011 18:26:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Jul 2011 17:13:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:48648 Archived-At: Lars Magne Ingebrigtsen writes: > Glenn Morris writes: > >> emacs -Q foo.el, where foo.el contains everything between start and end: >> >> ;; start >> (setq foo 1) >> >> ( >> ;; end >> >> M-x byte-compile-file RET foo.el RET >> >> The "*Compile-Log*" buffer contains: >> >> foo.el:1:7:Warning: assignment to free variable `foo' >> foo.el:3:1:Error: End of file during parsing >> >> On the warning line, everything up to and including the "g" in "Warning" >> is underlined and has mouse-face. >> >> On the error line, the underline/mouse-face stops at the "E" in error. > > I'm able to reproduce this in Emacs 24, but I'm not able to make any > sense of how compilation mode parses and fontifies the buffer... font-lock-keywords -> compilation--ensure-parse -> compilation--parse-region -> compilation-parse-errors -> compilation-error-regexp-alist-alist The lines in *Compile-Log* are matched by the `gnu' entry in compilation-error-regexp-alist-alist (try `compilation-debug'): "^\\(?:[[: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\\)\\|\ \[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" ^^^^^^^^ E(rror)