all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.