GNU bug report logs - #38143
27.0.50; Say that before-make-frame-hook & after-make-frame-functions are not invoked for the initial frame

Previous Next

Package: emacs;

Reported by: Óscar Fuentes <ofv <at> wanadoo.es>

Date: Sat, 9 Nov 2019 03:19:01 UTC

Severity: normal

Found in version 27.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Óscar Fuentes <ofv <at> wanadoo.es>
Cc: martin rudalics <rudalics <at> gmx.at>, Eli Zaretskii <eliz <at> gnu.org>, 38143 <at> debbugs.gnu.org
Subject: bug#38143: 27.0.50; Say that before-make-frame-hook & after-make-frame-functions are not invoked for the initial frame
Date: Sun, 05 Dec 2021 04:13:11 +0100
Óscar Fuentes <ofv <at> wanadoo.es> writes:

> 1. The hooks are not run for the initial frame because it is not created
>    with `make-frame'.
>
> 2. Except when Emacs runs as daemon, in that case make-frame is always
>    used and therefore the hooks are executed.
>
> The added text would be something like this:
>
>   When Emacs is not executed as a daemon, `make-frame` is not used for
>   creating the initial frame, therefore the hooks are not invoked on
>   that case.
>
> Or this:
>
>   `make-frame` is not used for the frame that is automatically created
>   before the init file is processed, therefore the hooks are not invoked
>   for that frame. Please note that when Emacs is executed as a daemon
>   there is no such frame.

I've now added something like this to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 160 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.