emacs-devel
[Top][All Lists]
Advanced

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

Re: What's the best (i.e. least bad) way to re-redisplay?


From: Stefan Monnier
Subject: Re: What's the best (i.e. least bad) way to re-redisplay?
Date: Tue, 24 Aug 2021 18:43:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> The problem is, there will be occurences in the foreground window before
> the one which triggered the fontification.  Redisplay will already have
> passed this earlier buffer position.  So I need to trigger another
> redisplay immediately after the current one.
>
> What is the least bad way of doing this?

I think something along the lines of

    (run-with-timer 0 nil
                    (lambda (buf)
                      (with-current-buffer buf (font-lock-flush)))
                    (current-buffer))

is the cleanest that comes to mind.


        Stefan
                         




reply via email to

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