diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-03-04 16:55:57 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-03-04 16:55:57 +0100 |
commit | 18e25c198f39895438c05ef293789358232dfd76 (patch) | |
tree | 6f9716354c3696e509dd594a76e5bf68edfbfb7a /src/frame.c | |
parent | cdbc2f9d274a23bcf6cb03046b1e5b4bdcedafb1 (diff) | |
download | emacs-18e25c198f39895438c05ef293789358232dfd76.tar.gz |
Improve scroll-bar-mode/default-frame-alist interaction docs
* lisp/scroll-bar.el (scroll-bar-mode): Mention
default-frame-alist (bug#54237).
* src/frame.c (syms_of_frame): Clarify further that setting this
variable may have unintended consequences.
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/frame.c b/src/frame.c index b7ff7fd1fc4..b3990ae2aa5 100644 --- a/src/frame.c +++ b/src/frame.c @@ -6233,14 +6233,24 @@ You can also use a floating number between 0.0 and 1.0. */); doc: /* Alist of default values for frame creation. These may be set in your init file, like this: (setq default-frame-alist \\='((width . 80) (height . 55) (menu-bar-lines . 1))) + These override values given in window system configuration data, - including X Windows' defaults database. +including X Windows' defaults database. + +Note that many display-related modes (like `scroll-bar-mode' or +`menu-bar-mode') alter `default-frame-alist', so if you set this +variable directly, you may be overriding other settings +unintentionally. Instead it's often better to use +`modify-all-frames-parameters' or push new elements to the front of +this alist. + For values specific to the first Emacs frame, see `initial-frame-alist'. + For window-system specific values, see `window-system-default-frame-alist'. + For values specific to the separate minibuffer frame, see - `minibuffer-frame-alist'. -The `menu-bar-lines' element of the list controls whether new frames - have menu bars; `menu-bar-mode' works by altering this element. +`minibuffer-frame-alist'. + Setting this variable does not affect existing frames, only new ones. */); Vdefault_frame_alist = Qnil; |