From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: subtle problem of font-lock in *compilation* buffer Date: Tue, 12 Sep 2006 23:42:50 -0400 Message-ID: <87vensh1ol.fsf@furball.mit.edu> References: <87ejujxg42.fsf@furball.mit.edu> <87fyewpun5.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1158119000 31510 80.91.229.2 (13 Sep 2006 03:43:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2006 03:43:20 +0000 (UTC) Cc: handa@m17n.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 13 05:43:19 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GNLef-0003YL-Hd for ged-emacs-devel@m.gmane.org; Wed, 13 Sep 2006 05:43:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNLef-0000MN-2e for ged-emacs-devel@m.gmane.org; Tue, 12 Sep 2006 23:43:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GNLeT-0000Ly-Vk for emacs-devel@gnu.org; Tue, 12 Sep 2006 23:43:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNLeS-0000Lq-Mx for emacs-devel@gnu.org; Tue, 12 Sep 2006 23:43:04 -0400 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GNLg6-0002Rf-0Y; Tue, 12 Sep 2006 23:44:46 -0400 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id k8D3h3dL010913; Tue, 12 Sep 2006 23:43:03 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by central-city-carrier-station.mit.edu (8.13.6/8.9.2) with ESMTP id k8D3gwvA025288; Tue, 12 Sep 2006 23:42:58 -0400 (EDT) Original-Received: from furball.mit.edu (SYDNEYPACIFIC-FOUR-SIXTY-FIVE.MIT.EDU [18.95.6.210]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id k8D3go9i026786; Tue, 12 Sep 2006 23:42:50 -0400 (EDT) Original-Received: from cyd by furball.mit.edu with local (Exim 3.36 #1 (Debian)) id 1GNLeE-0005UW-00; Tue, 12 Sep 2006 23:42:50 -0400 Original-To: rms@gnu.org In-Reply-To: <87fyewpun5.fsf@stupidchicken.com> (Chong Yidong's message of "Tue\, 12 Sep 2006 18\:50\:06 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Spam-Score: 1.217 X-Scanned-By: MIMEDefang 2.42 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:59752 Archived-At: >> I don't know whqether it's uncommon or not, but if a packages uses >> libtool with "-version-info M:N:L" argument, the above line >> appears. It may be too ad hoc but we can tell font-lock >> that a line matching with the regexp "-version-info [0-9]" >> is not an error message (if font-lock accepts such a >> request). > > I don't see a straightforward way of doing this, but I guess it's > worth a shot. On further consideration, it's impossible to handle this perfectly: consider compiling a file named "foo -version-info 1", which gives rise to the error message foo -version-info 1:0: blah blah ^^^^^^^^^^^^^^^^^^^