diff options
| author | Martin Rudalics | 2009-01-02 14:47:45 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2009-01-02 14:47:45 +0000 |
| commit | dca6c4189b8087267daf446463013227c9a91e7d (patch) | |
| tree | 1033ff201bbcf8035337491976e3567befae96da /lisp | |
| parent | df23bf081e91b7fdc188124b286b9698e5816b61 (diff) | |
| download | emacs-dca6c4189b8087267daf446463013227c9a91e7d.tar.gz emacs-dca6c4189b8087267daf446463013227c9a91e7d.zip | |
(window-system-default-frame-alist)
(initial-frame-alist, minibuffer-frame-alist)
(pop-up-frame-alist, pop-up-frame-function)
(special-display-frame-alist): Rewrite and reformat doc-strings.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/frame.el | 82 |
2 files changed, 58 insertions, 31 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a23979fbd3b..94ff8538a83 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-01-02 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * frame.el (window-system-default-frame-alist) | ||
| 4 | (initial-frame-alist, minibuffer-frame-alist) | ||
| 5 | (pop-up-frame-alist, pop-up-frame-function) | ||
| 6 | (special-display-frame-alist): Rewrite and reformat doc-strings. | ||
| 7 | |||
| 1 | 2009-01-01 Martin Rudalics <rudalics@gmx.at> | 8 | 2009-01-01 Martin Rudalics <rudalics@gmx.at> |
| 2 | 9 | ||
| 3 | * simple.el (minibuffer-default-add-shell-commands): Fix | 10 | * simple.el (minibuffer-default-add-shell-commands): Fix |
diff --git a/lisp/frame.el b/lisp/frame.el index 316ab36cae7..e7a57fb60f3 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -38,33 +38,39 @@ as its argument.") | |||
| 38 | 38 | ||
| 39 | (defvar window-system-default-frame-alist nil | 39 | (defvar window-system-default-frame-alist nil |
| 40 | "Alist of window-system dependent default frame parameters. | 40 | "Alist of window-system dependent default frame parameters. |
| 41 | You can set this in your `.emacs' file; for example, | 41 | You can set this in your init file; for example, |
| 42 | 42 | ||
| 43 | ;; Disable menubar and toolbar on the console, but enable them under X. | 43 | ;; Disable menubar and toolbar on the console, but enable them under X. |
| 44 | (setq window-system-default-frame-alist | 44 | (setq window-system-default-frame-alist |
| 45 | '((x (menu-bar-lines . 1) (tool-bar-lines . 1)) | 45 | '((x (menu-bar-lines . 1) (tool-bar-lines . 1)) |
| 46 | (nil (menu-bar-lines . 0) (tool-bar-lines . 0)))) | 46 | (nil (menu-bar-lines . 0) (tool-bar-lines . 0)))) |
| 47 | 47 | ||
| 48 | Parameters specified here supersede the values given in `default-frame-alist'.") | 48 | Parameters specified here supersede the values given in |
| 49 | `default-frame-alist'.") | ||
| 49 | 50 | ||
| 50 | ;; The initial value given here used to ask for a minibuffer. | 51 | ;; The initial value given here used to ask for a minibuffer. |
| 51 | ;; But that's not necessary, because the default is to have one. | 52 | ;; But that's not necessary, because the default is to have one. |
| 52 | ;; By not specifying it here, we let an X resource specify it. | 53 | ;; By not specifying it here, we let an X resource specify it. |
| 53 | (defcustom initial-frame-alist nil | 54 | (defcustom initial-frame-alist nil |
| 54 | "Alist of frame parameters for creating the initial X window frame. | 55 | "Alist of parameters for the initial X window frame. |
| 55 | You can set this in your `.emacs' file; for example, | 56 | You can set this in your init file; for example, |
| 56 | (setq initial-frame-alist '((top . 1) (left . 1) (width . 80) (height . 55))) | 57 | |
| 57 | Parameters specified here supersede the values given in `default-frame-alist'. | 58 | (setq initial-frame-alist |
| 58 | 59 | '((top . 1) (left . 1) (width . 80) (height . 55))) | |
| 59 | If the value calls for a frame without a minibuffer, and you have not created | 60 | |
| 60 | a minibuffer frame on your own, one is created according to | 61 | Parameters specified here supersede the values given in |
| 61 | `minibuffer-frame-alist'. | 62 | `default-frame-alist'. |
| 62 | 63 | ||
| 63 | You can specify geometry-related options for just the initial frame | 64 | If the value calls for a frame without a minibuffer, and you have |
| 64 | by setting this variable in your `.emacs' file; however, they won't | 65 | not created a minibuffer frame on your own, a minibuffer frame is |
| 65 | take effect until Emacs reads `.emacs', which happens after first creating | 66 | created according to `minibuffer-frame-alist'. |
| 66 | the frame. If you want the frame to have the proper geometry as soon | 67 | |
| 67 | as it appears, you need to use this three-step process: | 68 | You can specify geometry-related options for just the initial |
| 69 | frame by setting this variable in your init file; however, they | ||
| 70 | won't take effect until Emacs reads your init file, which happens | ||
| 71 | after creating the initial frame. If you want the initial frame | ||
| 72 | to have the proper geometry as soon as it appears, you need to | ||
| 73 | use this three-step process: | ||
| 68 | * Specify X resources to give the geometry you want. | 74 | * Specify X resources to give the geometry you want. |
| 69 | * Set `default-frame-alist' to override these options so that they | 75 | * Set `default-frame-alist' to override these options so that they |
| 70 | don't affect subsequent frames. | 76 | don't affect subsequent frames. |
| @@ -76,10 +82,12 @@ as it appears, you need to use this three-step process: | |||
| 76 | :group 'frames) | 82 | :group 'frames) |
| 77 | 83 | ||
| 78 | (defcustom minibuffer-frame-alist '((width . 80) (height . 2)) | 84 | (defcustom minibuffer-frame-alist '((width . 80) (height . 2)) |
| 79 | "Alist of frame parameters for initially creating a minibuffer frame. | 85 | "Alist of parameters for initial minibuffer frame. |
| 80 | You can set this in your `.emacs' file; for example, | 86 | You can set this in your init file; for example, |
| 87 | |||
| 81 | (setq minibuffer-frame-alist | 88 | (setq minibuffer-frame-alist |
| 82 | '((top . 1) (left . 1) (width . 80) (height . 2))) | 89 | '((top . 1) (left . 1) (width . 80) (height . 2))) |
| 90 | |||
| 83 | Parameters specified here supersede the values given in | 91 | Parameters specified here supersede the values given in |
| 84 | `default-frame-alist', for a minibuffer frame." | 92 | `default-frame-alist', for a minibuffer frame." |
| 85 | :type '(repeat (cons :format "%v" | 93 | :type '(repeat (cons :format "%v" |
| @@ -88,12 +96,19 @@ Parameters specified here supersede the values given in | |||
| 88 | :group 'frames) | 96 | :group 'frames) |
| 89 | 97 | ||
| 90 | (defcustom pop-up-frame-alist nil | 98 | (defcustom pop-up-frame-alist nil |
| 91 | "Alist of frame parameters used when creating pop-up frames. | 99 | "Alist of parameters for automatically generated new frames. |
| 92 | Pop-up frames are used for completions, help, and the like. | 100 | You can set this in your init file; for example, |
| 93 | This variable can be set in your init file, like this: | 101 | |
| 94 | (setq pop-up-frame-alist '((width . 80) (height . 20))) | 102 | (setq pop-up-frame-alist '((width . 80) (height . 20))) |
| 95 | These supersede the values given in `default-frame-alist', | 103 | |
| 96 | for pop-up frames." | 104 | If non-nil, the value you specify here is used by the default |
| 105 | `pop-up-frame-function' for the creation of new frames. | ||
| 106 | |||
| 107 | Since `pop-up-frame-function' is used by `display-buffer' for | ||
| 108 | making new frames, any value specified here, by default affects | ||
| 109 | the automatic generation of new frames via `display-buffer' and | ||
| 110 | all functions based on it. The behavior of `make-frame' is not | ||
| 111 | affected by this variable." | ||
| 97 | :type '(repeat (cons :format "%v" | 112 | :type '(repeat (cons :format "%v" |
| 98 | (symbol :tag "Parameter") | 113 | (symbol :tag "Parameter") |
| 99 | (sexp :tag "Value"))) | 114 | (sexp :tag "Value"))) |
| @@ -101,19 +116,24 @@ for pop-up frames." | |||
| 101 | 116 | ||
| 102 | (defcustom pop-up-frame-function | 117 | (defcustom pop-up-frame-function |
| 103 | (lambda () (make-frame pop-up-frame-alist)) | 118 | (lambda () (make-frame pop-up-frame-alist)) |
| 104 | "Function to call to handle automatic new frame creation. | 119 | "Function used by `display-buffer' for creating a new frame. |
| 105 | It is called with no arguments and should return a newly created frame." | 120 | This function is called with no arguments and should return a new |
| 121 | frame. The default value calls `make-frame' with the argument | ||
| 122 | `pop-up-frame-alist'." | ||
| 106 | :type '(choice (const nil) (function :tag "function")) | 123 | :type '(choice (const nil) (function :tag "function")) |
| 107 | :group 'frames) | 124 | :group 'frames) |
| 108 | 125 | ||
| 109 | (defcustom special-display-frame-alist | 126 | (defcustom special-display-frame-alist |
| 110 | '((height . 14) (width . 80) (unsplittable . t)) | 127 | '((height . 14) (width . 80) (unsplittable . t)) |
| 111 | "Alist of frame parameters used when creating special frames. | 128 | "Alist of parameters for special frames. |
| 112 | Special frames are used for buffers whose names are in | 129 | Special frames are used for buffers whose names are in |
| 113 | `special-display-buffer-names' and for buffers whose names match | 130 | `special-display-buffer-names' and for buffers whose names match |
| 114 | one of the regular expressions in `special-display-regexps'. | 131 | one of the regular expressions in `special-display-regexps'. |
| 132 | |||
| 115 | This variable can be set in your init file, like this: | 133 | This variable can be set in your init file, like this: |
| 134 | |||
| 116 | (setq special-display-frame-alist '((width . 80) (height . 20))) | 135 | (setq special-display-frame-alist '((width . 80) (height . 20))) |
| 136 | |||
| 117 | These supersede the values given in `default-frame-alist'." | 137 | These supersede the values given in `default-frame-alist'." |
| 118 | :type '(repeat (cons :format "%v" | 138 | :type '(repeat (cons :format "%v" |
| 119 | (symbol :tag "Parameter") | 139 | (symbol :tag "Parameter") |