aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/frame.el20
1 files changed, 19 insertions, 1 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index ee879c531b2..e83db698e5a 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -505,6 +505,25 @@ React to settings of `default-frame-alist', `initial-frame-alist' there."
505 505
506;;;; Creation of additional frames, and other frame miscellanea 506;;;; Creation of additional frames, and other frame miscellanea
507 507
508(defun modify-all-frames-parameters (alist)
509 "Modify all current and future frames parameters according to ALIST.
510This changes `default-frame-alist' and possibly `initial-frame-alist'.
511See help of `modify-frame-parameters' for more information."
512 (let (element) ;; temp
513 (dolist (frame (frame-list))
514 (modify-frame-parameters frame alist))
515 (dolist (pair alist) ;; conses to add/replace
516 ;; initial-frame-alist needs setting only when
517 ;; frame-notice-user-settings is true
518 (and frame-notice-user-settings
519 (setq element (assoc (car pair) initial-frame-alist))
520 (setq initial-frame-alist (delq element initial-frame-alist)))
521 (and (setq element (assoc (car pair) default-frame-alist))
522 (setq default-frame-alist (delq element default-frame-alist)))))
523 (and frame-notice-user-settings
524 (setq initial-frame-alist (append initial-frame-alist alist)))
525 (setq default-frame-alist (append default-frame-alist alist)))
526
508(defun get-other-frame () 527(defun get-other-frame ()
509 "Return some frame other than the current frame. 528 "Return some frame other than the current frame.
510Create one if necessary. Note that the minibuffer frame, if separate, 529Create one if necessary. Note that the minibuffer frame, if separate,
@@ -639,7 +658,6 @@ the user during startup."
639 (nreverse frame-initial-geometry-arguments)) 658 (nreverse frame-initial-geometry-arguments))
640 (cdr param-list)) 659 (cdr param-list))
641 660
642
643(defcustom focus-follows-mouse t 661(defcustom focus-follows-mouse t
644 "*Non-nil if window system changes focus when you move the mouse. 662 "*Non-nil if window system changes focus when you move the mouse.
645You should set this variable to tell Emacs how your window manager 663You should set this variable to tell Emacs how your window manager