all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ulf Andersson" <ulf.andersson7@telia.com>
Subject: font-lock and fontifying the few first nonempty lines in a buffer
Date: Thu, 26 Jun 2003 20:47:19 GMT	[thread overview]
Message-ID: <rZIKa.13688$mU6.15106@newsb.telia.net> (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

             reply	other threads:[~2003-06-26 20:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-26 20:47 Ulf Andersson [this message]
2003-06-26 23:26 ` font-lock and fontifying the few first nonempty lines in a buffer 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='rZIKa.13688$mU6.15106@newsb.telia.net' \
    --to=ulf.andersson7@telia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.