aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-03-12 00:14:30 -0700
committerGlenn Morris2014-03-12 00:14:30 -0700
commit464560055fa70476dc6db20c1c29e812cf05a8f9 (patch)
treec775ca9c30ab50ce4e383ff9ebb9d97cebafb725
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.
-rw-r--r--doc/emacs/ChangeLog3
-rw-r--r--doc/emacs/misc.texi31
-rw-r--r--etc/NEWS8
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/desktop.el27
5 files changed, 31 insertions, 42 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
diff --git a/etc/NEWS b/etc/NEWS
index 910c8385706..04796bf37e2 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -572,10 +572,10 @@ after `desktop-auto-save-timeout'. To disable this, customize that option
572to nil (or zero). 572to nil (or zero).
573 573
574+++ 574+++
575*** `desktop-restore-frames', enabled by default, allows saving and 575*** Desktop now saves and restores the frame/window configuration.
576restoring the frame/window configuration (frameset). Additional options 576To disable this, set `desktop-restore-frames' to nil.
577`desktop-restore-in-current-display', `desktop-restore-reuses-frames' 577See also related options `desktop-restore-reuses-frames',
578and `desktop-restore-forces-onscreen' offer further customization. 578`desktop-restore-in-current-display', and `desktop-restore-forces-onscreen'.
579 579
580+++ 580+++
581** New Dired minor mode `dired-hide-details-mode' toggles whether details, 581** New Dired minor mode `dired-hide-details-mode' toggles whether details,
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9d99bdecd38..acc0f016caa 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12014-03-12 Glenn Morris <rgm@gnu.org> 12014-03-12 Glenn Morris <rgm@gnu.org>
2 2
3 * desktop.el (desktop-restore-frames)
4 (desktop-restore-in-current-display, desktop-restore-forces-onscreen)
5 (desktop-restore-reuses-frames): Doc tweaks.
6
3 * electric.el (electric-indent-mode): Doc fix. 7 * electric.el (electric-indent-mode): Doc fix.
4 8
52014-03-12 Juanma Barranquero <lekktu@gmail.com> 92014-03-12 Juanma Barranquero <lekktu@gmail.com>
diff --git a/lisp/desktop.el b/lisp/desktop.el
index dbddfb7c1d3..5e43c03ade7 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -387,15 +387,18 @@ modes are restored automatically; they should not be listed here."
387 :group 'desktop) 387 :group 'desktop)
388 388
389(defcustom desktop-restore-frames t 389(defcustom desktop-restore-frames t
390 "When non-nil, save frames to desktop file." 390 "When non-nil, save and restore the frame and window configuration.
391See related options `desktop-restore-reuses-frames',
392`desktop-restore-in-current-display', and `desktop-restore-forces-onscreen'."
391 :type 'boolean 393 :type 'boolean
392 :group 'desktop 394 :group 'desktop
393 :version "24.4") 395 :version "24.4")
394 396
395(defcustom desktop-restore-in-current-display nil 397(defcustom desktop-restore-in-current-display nil
396 "If t, frames are restored in the current display. 398 "Controls how restoring of frames treats displays.
397If nil, frames are restored, if possible, in their original displays. 399If t, restores frames into the current display.
398If `delete', frames on other displays are deleted instead of restored." 400If nil, restores frames into their original displays (if possible).
401If `delete', deletes frames on other displays instead of restoring them."
399 :type '(choice (const :tag "Restore in current display" t) 402 :type '(choice (const :tag "Restore in current display" t)
400 (const :tag "Restore in original display" nil) 403 (const :tag "Restore in original display" nil)
401 (const :tag "Delete frames in other displays" delete)) 404 (const :tag "Delete frames in other displays" delete))
@@ -403,11 +406,13 @@ If `delete', frames on other displays are deleted instead of restored."
403 :version "24.4") 406 :version "24.4")
404 407
405(defcustom desktop-restore-forces-onscreen t 408(defcustom desktop-restore-forces-onscreen t
406 "If t, offscreen frames are restored onscreen instead. 409 "If t, restores frames that are fully offscreen onscreen instead.
407If `all', frames that are partially offscreen are also forced onscreen. 410If `all', also restores frames that are partially offscreen onscreen.
408NOTE: Checking of frame boundaries is only approximate and can fail 411
409to reliably detect frames whose onscreen/offscreen state depends on a 412Note that checking of frame boundaries is only approximate.
410few pixels, especially near the right / bottom borders of the screen." 413It can fail to reliably detect frames whose onscreen/offscreen state
414depends on a few pixels, especially near the right / bottom borders
415of the screen."
411 :type '(choice (const :tag "Only fully offscreen frames" t) 416 :type '(choice (const :tag "Only fully offscreen frames" t)
412 (const :tag "Also partially offscreen frames" all) 417 (const :tag "Also partially offscreen frames" all)
413 (const :tag "Do not force frames onscreen" nil)) 418 (const :tag "Do not force frames onscreen" nil))
@@ -416,8 +421,8 @@ few pixels, especially near the right / bottom borders of the screen."
416 421
417(defcustom desktop-restore-reuses-frames t 422(defcustom desktop-restore-reuses-frames t
418 "If t, restoring frames reuses existing frames. 423 "If t, restoring frames reuses existing frames.
419If nil, existing frames are deleted. 424If nil, deletes existing frames.
420If `keep', existing frames are kept and not reused." 425If `keep', keeps existing frames and does not reuse them."
421 :type '(choice (const :tag "Reuse existing frames" t) 426 :type '(choice (const :tag "Reuse existing frames" t)
422 (const :tag "Delete existing frames" nil) 427 (const :tag "Delete existing frames" nil)
423 (const :tag "Keep existing frames" :keep)) 428 (const :tag "Keep existing frames" :keep))