emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs just dies during fontification


From: Stefan Monnier
Subject: Re: Emacs just dies during fontification
Date: Mon, 21 Dec 2009 10:37:45 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

>> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]