[Top][All Lists]

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

Re: Is there something like `on-display-functions'?

From: Alan Mackenzie
Subject: Re: Is there something like `on-display-functions'?
Date: Thu, 28 Jan 2010 10:38:56 +0000
User-agent: Mutt/1.5.9i

Hi, Eli,

On Thu, Jan 28, 2010 at 01:55:13AM -0500, Eli Zaretskii wrote:
> > From: Stefan Monnier <address@hidden>
> > Cc: address@hidden,  address@hidden
> > Date: Wed, 27 Jan 2010 16:04:07 -0500

> Btw, it would not be too difficult to add a hook like what Alan
> wanted, I think.  Perhaps Alan could post a list of requirements for
> such a feature (as I know close to nothing about CC Mode's internals,
> it is not entirely clear to me what is needed), and we could then
> generalize it.

As a zero order approximation, something like
`before-display-functions', where an element would look like this:

   (defun foo-before-display (buffer beg end) .....)

, BEG and END defining the piece of BUFFER about to be displayed.  The
hook would be called before fontification.  (Is it possible in general
to determine BEG and END before fontification?).

Alan Mackenzie (Nuremberg, Germany).

reply via email to

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