diff options
| author | Juanma Barranquero | 2003-07-13 17:48:58 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2003-07-13 17:48:58 +0000 |
| commit | 63019bad3a83e24424397e7ade2836b323405877 (patch) | |
| tree | 641cd316f1720c5e76b6c1e259c65f5d226a91c7 | |
| parent | 517b2c378d3003cbe01627a357d61721ba6f5978 (diff) | |
| download | emacs-63019bad3a83e24424397e7ade2836b323405877.tar.gz emacs-63019bad3a83e24424397e7ade2836b323405877.zip | |
(modify-all-frames-parameters): Reinstall (copyright papers received).
| -rw-r--r-- | lisp/frame.el | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 8ed5776550e..f8df2c7a2ec 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -505,6 +505,26 @@ 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. | ||
| 510 | This changes `default-frame-alist' and possibly `initial-frame-alist'. | ||
| 511 | See help of `modify-frame-parameters' for more information." | ||
| 512 | (let (element) ;; temp | ||
| 513 | (dolist (frame (frame-list)) | ||
| 514 | (modify-frame-parameters frame alist)) | ||
| 515 | |||
| 516 | (dolist (pair alist) ;; conses to add/replace | ||
| 517 | ;; initial-frame-alist needs setting only when | ||
| 518 | ;; frame-notice-user-settings is true | ||
| 519 | (and frame-notice-user-settings | ||
| 520 | (setq element (assoc (car pair) initial-frame-alist)) | ||
| 521 | (setq initial-frame-alist (delq element initial-frame-alist))) | ||
| 522 | (and (setq element (assoc (car pair) default-frame-alist)) | ||
| 523 | (setq default-frame-alist (delq element default-frame-alist))))) | ||
| 524 | (and frame-notice-user-settings | ||
| 525 | (setq initial-frame-alist (append initial-frame-alist alist))) | ||
| 526 | (setq default-frame-alist (append default-frame-alist alist))) | ||
| 527 | |||
| 508 | (defun get-other-frame () | 528 | (defun get-other-frame () |
| 509 | "Return some frame other than the current frame. | 529 | "Return some frame other than the current frame. |
| 510 | Create one if necessary. Note that the minibuffer frame, if separate, | 530 | Create one if necessary. Note that the minibuffer frame, if separate, |