all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Modify parameters on all frames
@ 2003-04-06 15:39 Ehud Karni
  2003-04-06 23:07 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Ehud Karni @ 2003-04-06 15:39 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I suggest to add a function to frame.el to change parameters on all
existing and future frames:

(defun modify-all-frames-parameters (alist)
  "modify all current and future frames parameters by changing 
`initial-frame-alist' and `default-frame-alist' and calling 
`modify-frame-parameters' on all existing frames with ALIST.
See help of `modify-frame-parameters' for more information."
  (let ((cframesc (cdr (current-frame-configuration)))
	frames ix fcount   ;; frames - list, index, count
	key val)	   ;; key and value for aput
    (while cframesc
      (setq frames (append (list (car (car cframesc))) frames))
      (setq cframesc (cdr cframesc)))
    (setq fcount (length frames))
    (while alist
      (setq val (car alist))
      (setq key (car val))
      (setq val (cdr val))
      (message "key=%s, val=%s" key val)
      (aput 'initial-frame-alist key val) ;; If before initial frame
      (aput 'default-frame-alist key val) ;; for next frames
      (setq ix 0)
      (while (< ix fcount)
	(modify-frame-parameters (nth ix frames) (list (cons key val)))
	(setq ix (1+ ix)))
      (setq alist (cdr alist)))))


Ehud.

- -- 
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud@unix.mvs.co.il                  Better  Safe  Than  Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE+kEoVLFvTvpjqOY0RAk6mAJ9e01e2QNYZx8mVKEkeDoTo0nplmwCcCtna
4PiVyDeCfF3aM9kkgM1RMyY=
=oQ5f
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-04-09 17:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-06 15:39 Modify parameters on all frames Ehud Karni
2003-04-06 23:07 ` Richard Stallman
2003-04-07 20:39   ` Ehud Karni
2003-04-08  6:45     ` Richard Stallman
2003-04-08 19:56       ` Ehud Karni
2003-04-09  5:39         ` Richard Stallman
2003-04-09 17:38           ` Ehud Karni

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.