[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Run `window-configuration-change-hook` in Lisp code?
From: |
Eli Zaretskii |
Subject: |
Re: Run `window-configuration-change-hook` in Lisp code? |
Date: |
Thu, 07 Nov 2024 09:24:46 +0200 |
> Date: Wed, 06 Nov 2024 23:47:02 -0500
> From: Stefan Monnier via Users list for the GNU Emacs text editor
> <help-gnu-emacs@gnu.org>
>
> > Something that just came up: is it OK to run
> > `window-configuration-change-hook` in Lisp code? The doc string says
> > "Functions called during redisplay when window configuration has changed",
> > which gives me the impression that it's *only* meant to be run during
> > redisplay, i.e., not during Lisp code.
>
> That description describes when the C code runs this hook.
> Do you want to run this hook yourself manually at other times?
> If so, why?
Indeed, the idea is that whatever a Lisp program does, it eventually
causes the display engine to make changes which trigger calls to this
hook. So if that doesn't happen for some Lisp program, we need to
understand what that program does, and why it expects this hook to be
called.