aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2014-03-12 00:14:30 -0700
committerGlenn Morris2014-03-12 00:14:30 -0700
commit464560055fa70476dc6db20c1c29e812cf05a8f9 (patch)
treec775ca9c30ab50ce4e383ff9ebb9d97cebafb725 /doc
parent7195b84120e016e4a23c9559ac4eeb5d05ceb2b0 (diff)
downloademacs-464560055fa70476dc6db20c1c29e812cf05a8f9.tar.gz
emacs-464560055fa70476dc6db20c1c29e812cf05a8f9.zip
Some doc edits related to desktop-restore-frames
* doc/emacs/misc.texi (Saving Emacs Sessions): Be briefer about desktop's handling of frames. The manual does not need to mention every option, nor should it just repeat the doc-strings. * lisp/desktop.el (desktop-restore-frames) (desktop-restore-in-current-display, desktop-restore-forces-onscreen) (desktop-restore-reuses-frames): Doc tweaks. * etc/NEWS: Related edits.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog3
-rw-r--r--doc/emacs/misc.texi31
2 files changed, 7 insertions, 27 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 67987ddc9e6..6adfa7fb90c 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -8,6 +8,9 @@
8 8
92014-03-12 Glenn Morris <rgm@gnu.org> 92014-03-12 Glenn Morris <rgm@gnu.org>
10 10
11 * misc.texi (Saving Emacs Sessions): Be briefer about desktop's
12 handling of frames.
13
11 * indent.texi (Indent Convenience): Mention electric-indent-local-mode. 14 * indent.texi (Indent Convenience): Mention electric-indent-local-mode.
12 15
132014-03-02 Xue Fuqiao <xfq@gnu.org> 162014-03-02 Xue Fuqiao <xfq@gnu.org>
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 801d9f9e4e6..f935b2e68d6 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -2132,10 +2132,13 @@ hexl-@key{RET}} for details.
2132@cindex reload files 2132@cindex reload files
2133@cindex desktop 2133@cindex desktop
2134 2134
2135@vindex desktop-restore-frames
2135 Use the desktop library to save the state of Emacs from one session 2136 Use the desktop library to save the state of Emacs from one session
2136to another. Once you save the Emacs @dfn{desktop}---the buffers, 2137to another. Once you save the Emacs @dfn{desktop}---the buffers,
2137their file names, major modes, buffer positions, and so on---then 2138their file names, major modes, buffer positions, and so on---then
2138subsequent Emacs sessions reload the saved desktop. 2139subsequent Emacs sessions reload the saved desktop. By default,
2140the desktop also tries to save the frame and window configuration.
2141To disable this, customize @code{desktop-restore-frames} to @code{nil}.
2139 2142
2140@findex desktop-save 2143@findex desktop-save
2141@vindex desktop-save-mode 2144@vindex desktop-save-mode
@@ -2193,32 +2196,6 @@ preserve certain buffers, customize the variable
2193@code{desktop-clear-preserve-buffers-regexp}, whose value is a regular 2196@code{desktop-clear-preserve-buffers-regexp}, whose value is a regular
2194expression matching the names of buffers not to kill. 2197expression matching the names of buffers not to kill.
2195 2198
2196@vindex desktop-restore-frames
2197@code{desktop-restore-frames}, enabled by default, a non-@code{nil}
2198means save frames (@pxref{Frames}) to desktop file.
2199
2200@vindex desktop-restore-in-current-display
2201If the value of @code{desktop-restore-in-current-display} is @code{t},
2202frames are restored in the current display. If @code{nil} (the
2203default), frames are restored in their original displays if possible.
2204If @samp{delete}, frames on other displays are deleted instead of
2205restored.
2206
2207@vindex desktop-restore-reuses-frames
2208If the value of @code{desktop-restore-reuses-frames} is @code{t} (the
2209default), restoring frames will reuse existing frames. If @code{nil},
2210existing frames are deleted. If @samp{:keep}, existing frames are
2211kept but not reused.
2212
2213@vindex desktop-restore-forces-onscreen
2214If the value of @code{desktop-restore-forces-onscreen} is @code{t}
2215(the default), offscreen frames are restored onscreen. If
2216@samp{:all}, frames that are partially offscreen are also forced
2217onscreen. @strong{Notice:} Checking of frame boundaries is
2218approximate. It may not reliably detect frames whose
2219onscreen/offscreen state depends on a few pixels, especially near the
2220right and/or bottom borders of the screen.
2221
2222 If you want to save minibuffer history from one session to 2199 If you want to save minibuffer history from one session to
2223another, use the @code{savehist} library. 2200another, use the @code{savehist} library.
2224 2201