From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: subtle problem of font-lock in *compilation* buffer Date: Mon, 11 Sep 2006 12:56:49 +0900 Message-ID: References: <87ejujxg42.fsf@furball.mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1157947108 14149 80.91.229.2 (11 Sep 2006 03:58:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2006 03:58:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 11 05:58:24 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 1GMcwB-0001eb-GS for ged-emacs-devel@m.gmane.org; Mon, 11 Sep 2006 05:58:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMcwB-0001Fl-2k for ged-emacs-devel@m.gmane.org; Sun, 10 Sep 2006 23:58:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMcvz-0001Da-4t for emacs-devel@gnu.org; Sun, 10 Sep 2006 23:58:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMcvu-00010o-4U for emacs-devel@gnu.org; Sun, 10 Sep 2006 23:58:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMcvu-00010l-0z for emacs-devel@gnu.org; Sun, 10 Sep 2006 23:58:06 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GMcx3-0005PP-Uc for emacs-devel@gnu.org; Sun, 10 Sep 2006 23:59:19 -0400 Original-Received: from smtp3.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k8B3w0iL026295; Mon, 11 Sep 2006 12:58:00 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id k8B3vxRX026773; Mon, 11 Sep 2006 12:57:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1GMcuf-0007Ma-00; Mon, 11 Sep 2006 12:56:49 +0900 Original-To: Chong Yidong In-reply-to: <87ejujxg42.fsf@furball.mit.edu> (message from Chong Yidong on Sun, 10 Sep 2006 22:59:57 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:59654 Archived-At: In article <87ejujxg42.fsf@furball.mit.edu>, Chong Yidong writes: > Kenichi Handa writes: > > In *compilation* buffer, font-lock thinks that this kind of > > line is an error message: > > > > /bin/sh ../libtool --tag=CC --mode=link gcc -g -Wall --pedantic -o libm17n-core.la -rpath /usr/local/lib -export-dynamic -version-info 1:0:1 character.lo chartab.lo plist.lo m17n-core.lo mtext.lo symbol.lo textprop.lo mtext-lbrk.lo mtext-wseg.lo -L/usr/lib -lxml2 -lz -lpthread -lm -L/usr/local/lib -lthai -ldl > > > > That is perhaps because of "1:0:1". > How can the compilation font-lock pattern distinguish this from a > legitimate error message? Maybe this is too hard to solve (and it > seems to be a fairly uncommon situation). 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). Or, more generally, we may be able tell that a line matching with "^/bin/sh " is not an error message. --- Kenichi Handa handa@m17n.org