From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reto Zimmermann Newsgroups: gmane.emacs.devel Subject: Re: new compile.el Date: Tue, 10 Mar 2009 14:25:06 +0100 Message-ID: <49B66A32.20908@synopsys.com> References: <49B11B93.6070907@synopsys.com> <49B1A6B0.2080308@synopsys.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236691534 20239 80.91.229.12 (10 Mar 2009 13:25:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Mar 2009 13:25:34 +0000 (UTC) Cc: Emacs Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 10 14:26:51 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lh1yq-0006Md-97 for ged-emacs-devel@m.gmane.org; Tue, 10 Mar 2009 14:26:48 +0100 Original-Received: from localhost ([127.0.0.1]:57913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lh1xU-0006e8-BA for ged-emacs-devel@m.gmane.org; Tue, 10 Mar 2009 09:25:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lh1xO-0006d6-0Y for emacs-devel@gnu.org; Tue, 10 Mar 2009 09:25:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lh1xJ-0006Wd-AZ for emacs-devel@gnu.org; Tue, 10 Mar 2009 09:25:17 -0400 Original-Received: from [199.232.76.173] (port=33785 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lh1xJ-0006WK-17 for emacs-devel@gnu.org; Tue, 10 Mar 2009 09:25:13 -0400 Original-Received: from vaxjo.synopsys.com ([198.182.60.75]:49890) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lh1xI-0005nU-NY for emacs-devel@gnu.org; Tue, 10 Mar 2009 09:25:12 -0400 Original-Received: from maiden.synopsys.com (maiden.synopsys.com [146.225.100.170]) by vaxjo.synopsys.com (Postfix) with ESMTP id 77C35E6E5; Tue, 10 Mar 2009 06:25:10 -0700 (PDT) Original-Received: from [10.96.14.12] (localhost [127.0.0.1]) by maiden.synopsys.com (8.9.1/8.9.1) with ESMTP id GAA17055; Tue, 10 Mar 2009 06:25:08 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, de-ch In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) 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:109540 Archived-At: >>>>How do I transition a major mode (vhdl-mode) to use the new >>>>compile.el? From reading the compilation-error-regexp-alist >>>>description it sounds like it should still work with the old alist >>>>but then it doesn't work right. >>> >>>It should work. Give us more details of the problems you encountered. >> >>Only error messages with a certain syntax ("::") are >>found and highlighted, but not others which should also match regexps >>defined in the alist. Just as if only one regexp from (the middle) of the >>alist is active. The same alist highlighted all errors with the old >>compile.el. > > > How do you set the alist? With the new code, the alist is not used > directly, but instead it's "compiled" to a set of font-lock-keywords > rules, so if you change it after "compilation" it won't take effect. The alist is assigned before the first time "compile" is called. So not at startup but only when the user calls "compile" for the first time. Reto