help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Run `window-configuration-change-hook` in Lisp code?


From: Stefan Monnier
Subject: Re: Run `window-configuration-change-hook` in Lisp code?
Date: Fri, 08 Nov 2024 12:55:01 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

>> Then again, looking at that patch I can't understand why it would work.
>> Does it work?  If so how?  That code is run only when `visual-fill-mode`
>> is enabled, AFAICT,
> Yes, but that's the point. When `visual-fill-column-mode` is active, a
> change in text size should trigger a recalculation of the window margins by
> `visual-fill-column-mode`.

But the code is not run when the mode is active but when the mode is
being activated.  So I don't see how the patch helps: the previous code
already called the relevant function in that case, AFAICT the new code
just runs it N times redundantly (by running the N hooks on which we
register that same function).


        Stefan




reply via email to

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