aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-09-17 12:20:09 +0300
committerEli Zaretskii2016-09-17 12:20:09 +0300
commit1229cc4ae640ea1fd9fafbb0bd64e72fc07994f8 (patch)
treec999813110fe5bc2509097a2734f5986dc47aba7
parentf0eb70d8935be90f7c03e187c12d9b60e7214cc6 (diff)
downloademacs-1229cc4ae640ea1fd9fafbb0bd64e72fc07994f8.tar.gz
emacs-1229cc4ae640ea1fd9fafbb0bd64e72fc07994f8.zip
Document that desktop file overrides frame parameters
* doc/emacs/misc.texi (Saving Emacs Sessions): * doc/emacs/frames.texi (Frame Parameters): Document that frame parameters restored by desktop.el take precedence over the customizations in the init file, and explain how to countermand that. For the details of the issue, see http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00318.html.
-rw-r--r--doc/emacs/frames.texi8
-rw-r--r--doc/emacs/misc.texi11
2 files changed, 19 insertions, 0 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index 7e6006262ce..99926dc47be 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -913,6 +913,14 @@ the initial frame, by customizing the variable
913specify colors and fonts don't affect menus and the menu bar, since 913specify colors and fonts don't affect menus and the menu bar, since
914those are drawn by the toolkit and not directly by Emacs. 914those are drawn by the toolkit and not directly by Emacs.
915 915
916 Note that if you are using the desktop library to save and restore
917your sessions, the frames to be restored are recorded in the desktop
918file, together with their parameters. When these frames are restored,
919the recorded parameters take precedence over the frame parameters
920specified by @code{default-frame-alist} and @code{initial-frame-alist}
921in your init file. @xref{Saving Emacs Sessions}, for how to avoid
922that.
923
916@node Scroll Bars 924@node Scroll Bars
917@section Scroll Bars 925@section Scroll Bars
918@cindex Scroll Bar mode 926@cindex Scroll Bar mode
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 853b9784920..a1f611cfb23 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -2325,6 +2325,17 @@ To disable this, set @code{desktop-restore-frames} to @code{nil}.
2325(See that variable's documentation for some related options 2325(See that variable's documentation for some related options
2326that you can customize to fine-tune this behavior.) 2326that you can customize to fine-tune this behavior.)
2327 2327
2328@vindex frameset-filter-alist
2329 When the desktop restores the frame and window configuration, it
2330uses the recorded values of frame parameters, disregarding any
2331settings for those parameters you have in your init file (@pxref{Init
2332File}). This means that frame parameters such as fonts and faces for
2333the restored frames will come from the desktop file, where they were
2334saved when you exited your previous Emacs session; any settings for
2335those parameters in your init file will be ignored. To disable this,
2336customize the value of @code{frameset-filter-alist} to filter out the
2337frame parameters you don't want to be restored.
2338
2328@findex desktop-save 2339@findex desktop-save
2329@vindex desktop-save-mode 2340@vindex desktop-save-mode
2330 You can save the desktop manually with the command @kbd{M-x 2341 You can save the desktop manually with the command @kbd{M-x