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: Emacs just dies during fontification Date: Mon, 21 Dec 2009 10:37:45 -0500 Message-ID: References: <83pr6a5lt6.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261410164 32111 80.91.229.12 (21 Dec 2009 15:42:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2009 15:42:44 +0000 (UTC) Cc: Lennart Borgman , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 21 16:42:37 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 1NMkP5-00018u-Np for ged-emacs-devel@m.gmane.org; Mon, 21 Dec 2009 16:42:36 +0100 Original-Received: from localhost ([127.0.0.1]:43616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMkP5-0003Zt-T7 for ged-emacs-devel@m.gmane.org; Mon, 21 Dec 2009 10:42:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMkNo-0002pa-1L for emacs-devel@gnu.org; Mon, 21 Dec 2009 10:41:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMkNi-0002nQ-PP for emacs-devel@gnu.org; Mon, 21 Dec 2009 10:41:15 -0500 Original-Received: from [199.232.76.173] (port=47259 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMkNi-0002nK-M0 for emacs-devel@gnu.org; Mon, 21 Dec 2009 10:41:10 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:56654) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMkNg-0001uo-Qq; Mon, 21 Dec 2009 10:41:08 -0500 Original-Received: from alfajor.home (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id nBLFf0wd015350; Mon, 21 Dec 2009 10:41:03 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id 8B1B364367; Mon, 21 Dec 2009 10:37:45 -0500 (EST) In-Reply-To: <83pr6a5lt6.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 20 Dec 2009 06:08:53 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3431=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:118759 Archived-At: >> I have problem finding an error because Emacs just dies during >> fontification when I try to call `message'. It does not happen when I >> do not add the calls to `message'. (But then I do not get the info I >> need.) > If you mean that you added calls to `message' inside a fontification > function, then it's a no-no, because fontification functions are > called by the display engine as part of rendering the display. A call > to `message' causes Emacs to re-enter redisplay, which again causes it > to call the fontification functions, and you then have infinite > recursion on your hands. It shouldn't crash, tho. It should either ignore the call, or delay it or something. This said, to debug font-lock problems, (setq font-lock-support-mode nil) has always been a very good friend of mine, Stefan