diff options
| author | Karoly Lorentey | 2004-04-19 15:39:17 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-04-19 15:39:17 +0000 |
| commit | bf1ba39f770dfd48e770d19f61858b9757231bcd (patch) | |
| tree | 7afce963bb8c499c1cc08395ed1aaac0b84f0f02 | |
| parent | de93c7914c81714c745cc60c16b56c3aa82ed01e (diff) | |
| download | emacs-bf1ba39f770dfd48e770d19f61858b9757231bcd.tar.gz emacs-bf1ba39f770dfd48e770d19f61858b9757231bcd.zip | |
A simple implementation for display-local frame parameters.
lisp/frame.el (window-system-default-frame-alist): New var.
(make-frame): Use it.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-150
| -rw-r--r-- | lisp/frame.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 54bccd93970..2be0f6417ff 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -39,6 +39,17 @@ The window system startup file should add its frame creation | |||
| 39 | function to this list, which should take an alist of parameters | 39 | function to this list, which should take an alist of parameters |
| 40 | as its argument.") | 40 | as its argument.") |
| 41 | 41 | ||
| 42 | (defvar window-system-default-frame-alist nil | ||
| 43 | "Alist of window-system dependent default frame parameters. | ||
| 44 | These may be set in your init file, like this: | ||
| 45 | |||
| 46 | ;; Disable menubar and toolbar on the console, but enable them under X. | ||
| 47 | (setq window-system-default-frame-alist | ||
| 48 | '((x (menu-bar-lines . 1) (tool-bar-lines . 1)) | ||
| 49 | (nil (menu-bar-lines . 0) (tool-bar-lines . 0)))) | ||
| 50 | |||
| 51 | Also see `default-frame-alist'.") | ||
| 52 | |||
| 42 | ;; The initial value given here used to ask for a minibuffer. | 53 | ;; The initial value given here used to ask for a minibuffer. |
| 43 | ;; But that's not necessary, because the default is to have one. | 54 | ;; But that's not necessary, because the default is to have one. |
| 44 | ;; By not specifying it here, we let an X resource specify it. | 55 | ;; By not specifying it here, we let an X resource specify it. |
| @@ -639,6 +650,7 @@ on `after-make-frame-functions' are run with one arg, the newly created frame." | |||
| 639 | (error "Don't know how to create a frame on window system %s" w)) | 650 | (error "Don't know how to create a frame on window system %s" w)) |
| 640 | (run-hooks 'before-make-frame-hook) | 651 | (run-hooks 'before-make-frame-hook) |
| 641 | (setq frame (funcall frame-creation-function parameters)) | 652 | (setq frame (funcall frame-creation-function parameters)) |
| 653 | (modify-frame-parameters frame (assq w window-system-default-frame-alist)) | ||
| 642 | (run-hook-with-args 'after-make-frame-functions frame) | 654 | (run-hook-with-args 'after-make-frame-functions frame) |
| 643 | frame)) | 655 | frame)) |
| 644 | 656 | ||