aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-10-24 03:18:18 +0000
committerRichard M. Stallman1993-10-24 03:18:18 +0000
commit4133ab490815babb0d9639b1036326659e3f2e5c (patch)
tree51fc216ae3750585cadd0b250313cc1382ae879d
parentf3417b13050516fb5adf8f54355999232915c1b5 (diff)
downloademacs-4133ab490815babb0d9639b1036326659e3f2e5c.tar.gz
emacs-4133ab490815babb0d9639b1036326659e3f2e5c.zip
(make-frame): Use before-make-frame-hook and after-make-frame-hook.
-rw-r--r--lisp/frame.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index e9d17fc1de3..f40516d4308 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -319,7 +319,11 @@ of the following forms:
319The documentation for the function `x-create-frame' describes 319The documentation for the function `x-create-frame' describes
320additional frame parameters that Emacs recognizes for X window frames." 320additional frame parameters that Emacs recognizes for X window frames."
321 (interactive) 321 (interactive)
322 (funcall frame-creation-function parameters)) 322 (let ((nframe))
323 (run-hooks 'before-make-frame-hook)
324 (setq nframe (funcall frame-creation-function parameters))
325 (run-hooks 'after-make-frame-hook)
326 nframe))
323 327
324(defun filtered-frame-list (predicate) 328(defun filtered-frame-list (predicate)
325 "Return a list of all live frames which satisfy PREDICATE." 329 "Return a list of all live frames which satisfy PREDICATE."