From 7842a606b76dfabd1540da1c130728064e8f02ed Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 5 Dec 2021 04:12:55 +0100 Subject: [PATCH] Improve before-make-frame-hook and after-make-frame-functions docs * lisp/frame.el (before-make-frame-hook): (after-make-frame-functions): Note when the functions are run. --- lisp/frame.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lisp/frame.el b/lisp/frame.el index 1319759e74d..bc086495041 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -808,12 +808,19 @@ also select the new frame." new-frame)) (defvar before-make-frame-hook nil - "Functions to run before `make-frame' creates a new frame.") + "Functions to run before `make-frame' creates a new frame. +Note that these functions are usually not run for the initial +frame, except when the initial frame is created from an Emacs +daemon.") (defvar after-make-frame-functions nil "Functions to run after `make-frame' created a new frame. The functions are run with one argument, the newly created -frame.") +frame. + +Note that these functions are usually not run for the initial +frame, except when the initial frame is created from an Emacs +daemon.") (defvar after-setting-font-hook nil "Functions to run after a frame's font has been changed.") -- 2.39.2