From: "Ehud Karni" <ehud@unix.mvs.co.il>
Subject: Modify parameters on all frames
Date: Sun, 6 Apr 2003 18:39:02 +0300 [thread overview]
Message-ID: <200304061539.h36Fd2R3007062@beta.mvs.co.il> (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-----
next reply other threads:[~2003-04-06 15:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-06 15:39 Ehud Karni [this message]
2003-04-06 23:07 ` Modify parameters on all frames 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200304061539.h36Fd2R3007062@beta.mvs.co.il \
--to=ehud@unix.mvs.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).