From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: new compile.el Date: Tue, 10 Mar 2009 10:47:27 -0400 Message-ID: References: <49B11B93.6070907@synopsys.com> <49B1A6B0.2080308@synopsys.com> <49B66A32.20908@synopsys.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236731802 4176 80.91.229.12 (11 Mar 2009 00:36:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2009 00:36:42 +0000 (UTC) Cc: Emacs Devel To: Reto Zimmermann Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 11 01:37:58 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 1LhCSM-0004uS-6y for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2009 01:37:58 +0100 Original-Received: from localhost ([127.0.0.1]:55012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhCR0-00023m-FO for ged-emacs-devel@m.gmane.org; Tue, 10 Mar 2009 20:36:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhCQu-00022h-M7 for emacs-devel@gnu.org; Tue, 10 Mar 2009 20:36:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhCQs-00020X-N9 for emacs-devel@gnu.org; Tue, 10 Mar 2009 20:36:28 -0400 Original-Received: from [199.232.76.173] (port=33589 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhCQs-00020K-JU for emacs-devel@gnu.org; Tue, 10 Mar 2009 20:36:26 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:57170 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LhCQs-0000SI-9d for emacs-devel@gnu.org; Tue, 10 Mar 2009 20:36:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIFAMektklFxL+1/2dsb2JhbACBTtBrhA0GhCU X-IronPort-AV: E=Sophos;i="4.38,338,1233550800"; d="scan'208";a="35013179" Original-Received: from 69-196-191-181.dsl.teksavvy.com (HELO ceviche.home) ([69.196.191.181]) by ironport2-out.teksavvy.com with ESMTP; 10 Mar 2009 20:36:23 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6BFC2B403E; Tue, 10 Mar 2009 10:47:27 -0400 (EDT) In-Reply-To: <49B66A32.20908@synopsys.com> (Reto Zimmermann's message of "Tue, 10 Mar 2009 14:25:06 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:109547 Archived-At: >> 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. I'm guessing that you're talking about the error-regexp code that's in emacs/lisp/progmodes/vhdl-mode.el. Looking at it, I do not quite understand what the code is meant to do: vhdl-compile-use-local-error-regexp sets error-regexp-alist in the vhdl-mode buffer rather than in the compilaiton buffer. I.e. please reproduce the problem and then in the compilation buffer, check the value of compilation-error-regexp-alist (and if it looks correct, check the value of font-lock-keywords as well: even if you're not familiar with it, you should be able to recognize some parts, e.g. the fact that each entry in compilation-error-regexp-alist should have a corresponding entry in font-lock-keywords). Stefan