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: Joost Kremers
Subject: Re: Run `window-configuration-change-hook` in Lisp code?
Date: Fri, 08 Nov 2024 15:55:12 +0100

On Fri, Nov 08 2024, Stefan Monnier via Users list for the GNU Emacs text 
editor wrote:
> 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`.

Eli made two suggestions (`text-scale-mode-hook` and `add-variable-watcher`
on `face-remap-alist`). I'll give them a try as soon as I find some time.

-- 
Joost Kremers
Life has its moments



reply via email to

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