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: Thu, 26 Aug 2021 15:27:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>     (run-with-timer 0 nil
>>                     (lambda (buf)
>>                       (with-current-buffer buf
>>                         (put-text-property (point-min) (point-max) 'cc-dummy 
>> t)
>>                         (remove-text-properties (point-min) (point-max) 
>> '(cc-dummy))))
>>                     (current-buffer))
>
> I don't understand what that bit of code's doing.

The intention is to perform a dummy change that forces the redisplay
to rerender that chunk of text.  Of course, I see I forgot
`with-silent-modifications` and I might have missed other things.


        Stefan




reply via email to

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