From: Lars Ingebrigtsen Date: Sun, 5 Dec 2021 03:12:55 +0000 (+0100) Subject: Improve before-make-frame-hook and after-make-frame-functions docs X-Git-Tag: emacs-29.0.90~3617^2~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7842a606b76dfabd1540da1c130728064e8f02ed;p=emacs.git 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. --- 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.")