# HG changeset patch # User Juanma Barranquero # Date 1058118538 0 # Node ID 48f24a9d5a641b73f790fc83b5e84954e515dcc1 # Parent 118c9a7b0a1beef622a0faea2ffc7893382f44b9 (modify-all-frames-parameters): Reinstall (copyright papers received). diff -r 118c9a7b0a1b -r 48f24a9d5a64 lisp/frame.el --- a/lisp/frame.el Sun Jul 13 17:32:20 2003 +0000 +++ b/lisp/frame.el Sun Jul 13 17:48:58 2003 +0000 @@ -505,6 +505,26 @@ ;;;; Creation of additional frames, and other frame miscellanea +(defun modify-all-frames-parameters (alist) + "modify all current and future frames parameters according to ALIST. +This changes `default-frame-alist' and possibly `initial-frame-alist'. +See help of `modify-frame-parameters' for more information." + (let (element) ;; temp + (dolist (frame (frame-list)) + (modify-frame-parameters frame alist)) + + (dolist (pair alist) ;; conses to add/replace + ;; initial-frame-alist needs setting only when + ;; frame-notice-user-settings is true + (and frame-notice-user-settings + (setq element (assoc (car pair) initial-frame-alist)) + (setq initial-frame-alist (delq element initial-frame-alist))) + (and (setq element (assoc (car pair) default-frame-alist)) + (setq default-frame-alist (delq element default-frame-alist))))) + (and frame-notice-user-settings + (setq initial-frame-alist (append initial-frame-alist alist))) + (setq default-frame-alist (append default-frame-alist alist))) + (defun get-other-frame () "Return some frame other than the current frame. Create one if necessary. Note that the minibuffer frame, if separate,