* Emacs just dies during fontification
@ 2009-12-20 2:52 Lennart Borgman
2009-12-20 4:08 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2009-12-20 2:52 UTC (permalink / raw)
To: Emacs-Devel devel
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.)
Anyone understands what might be going on?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Emacs just dies during fontification
2009-12-20 2:52 Emacs just dies during fontification Lennart Borgman
@ 2009-12-20 4:08 ` Eli Zaretskii
2009-12-21 15:37 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2009-12-20 4:08 UTC (permalink / raw)
To: Lennart Borgman; +Cc: emacs-devel
> From: Lennart Borgman <lennart.borgman@gmail.com>
> Date: Sun, 20 Dec 2009 03:52:01 +0100
>
> 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.)
>
> Anyone understands what might be going on?
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Emacs just dies during fontification
2009-12-20 4:08 ` Eli Zaretskii
@ 2009-12-21 15:37 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2009-12-21 15:37 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Lennart Borgman, emacs-devel
>> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-21 15:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-20 2:52 Emacs just dies during fontification Lennart Borgman
2009-12-20 4:08 ` Eli Zaretskii
2009-12-21 15:37 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).