unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* font-lock and fontifying the few first nonempty lines in a buffer
@ 2003-06-26 20:47 Ulf Andersson
  2003-06-26 23:26 ` Kevin Rodgers
  0 siblings, 1 reply; 8+ messages in thread
From: Ulf Andersson @ 2003-06-26 20:47 UTC (permalink / raw)


Hello,

I'm sorry if this is a trivial question asked too many times,
but i couldn't find it.

I'm trying to write a major mode for Emacs, that need to fontify the few
first nonempty lines in the buffer. The mode do some other coloring in
addition to this, and that works OK. So far I have experimented with
`after-change-functions' and function matchers in `font-lock-keywords',
but all I manage to do is sending my Emacs into an infinite loop deep
down inside. I have to kill it from outside to get out of the lockup.

I am using emacs 21.2.1 in a Windows 2000 environment.

Has anyone already done somthing similar?
Is there an `obvious canonical way' to do this?
Is this downright impossible to do using `font-lock'?

Thank you all for your time and effort.

  /Ulf Andersson

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-06-28  1:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-26 20:47 font-lock and fontifying the few first nonempty lines in a buffer Ulf Andersson
2003-06-26 23:26 ` Kevin Rodgers
2003-06-27 10:43   ` Ulf Andersson
2003-06-27 12:44     ` Kai Großjohann
2003-06-27 14:41       ` Ulf Andersson
2003-06-27 15:15         ` Kai Großjohann
2003-06-27 16:54     ` Stefan Monnier
2003-06-28  1:01       ` Sandip Chitale

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