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: Thu, 07 Nov 2024 09:01:39 +0100

Hi Stefan & Eli,

On Thu, Nov 07 2024, Eli Zaretskii wrote:
>> 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.

I asked this question in relation to the issue that James Cherti posted
about on emacs-devel
<https://lists.gnu.org/archive/html/emacs-devel/2024-11/msg00208.html>.
Perhaps we should continue the discussion there.

-- 
Joost Kremers
Life has its moments



reply via email to

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