emacs-devel
[Top][All Lists]
Advanced

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

Re: "after" variable watchers


From: Stefan Monnier
Subject: Re: "after" variable watchers
Date: Mon, 17 May 2021 14:54:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> > window_updeco_window is called indirectly from all places that change a
>> > window's decorations, font or size.
>> 
>> Would it make sense to call it more lazily, e.g. as part of redisplay
>> (basically, the watchpoints would just set some dirty bits and then at
>> the beginning of redisplay you'd then run `window_updeco_window` on
>> those windows with the dirty bit set)?
>
> You don't need a watcher to set flags on windows.  Each change in the
> dimensions of windows and their decorations is already preformed by
> functions.

You're asking for a watcher, right?
I's telling you to make this watcher set a dirty flag rather than
immediately reacting to that variable value's change.


        Stefan




reply via email to

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