summaryrefslogtreecommitdiff
path: root/lisp/frame.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-12-05 04:12:55 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-12-05 04:12:55 +0100
commit7842a606b76dfabd1540da1c130728064e8f02ed (patch)
tree7ba010b6e99647b9f82ea34a640f3c1c0f8e575d /lisp/frame.el
parent5d7eb2979bc7eec01cff7e7908dbbd3edb38ea0c (diff)
downloademacs-7842a606b76dfabd1540da1c130728064e8f02ed.tar.gz
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.
Diffstat (limited to 'lisp/frame.el')
-rw-r--r--lisp/frame.el11
1 files 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.")