Mercurial > emacs
comparison lisp/frame.el @ 51901:48f24a9d5a64
(modify-all-frames-parameters): Reinstall (copyright papers received).
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Sun, 13 Jul 2003 17:48:58 +0000 |
parents | e4e1e9a6becf |
children | 695cf19ef79e |
comparison
equal
deleted
inserted
replaced
51900:118c9a7b0a1b | 51901:48f24a9d5a64 |
---|---|
502 (if display | 502 (if display |
503 (make-frame-on-display display parms) | 503 (make-frame-on-display display parms) |
504 (make-frame parms)))) | 504 (make-frame parms)))) |
505 | 505 |
506 ;;;; Creation of additional frames, and other frame miscellanea | 506 ;;;; Creation of additional frames, and other frame miscellanea |
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))) | |
507 | 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, |
511 is not considered (see `next-frame')." | 531 is not considered (see `next-frame')." |