diff options
| author | Glenn Morris | 2014-03-12 00:14:30 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-03-12 00:14:30 -0700 |
| commit | 464560055fa70476dc6db20c1c29e812cf05a8f9 (patch) | |
| tree | c775ca9c30ab50ce4e383ff9ebb9d97cebafb725 | |
| parent | 7195b84120e016e4a23c9559ac4eeb5d05ceb2b0 (diff) | |
| download | emacs-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/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/emacs/misc.texi | 31 | ||||
| -rw-r--r-- | etc/NEWS | 8 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/desktop.el | 27 |
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 | ||
| 9 | 2014-03-12 Glenn Morris <rgm@gnu.org> | 9 | 2014-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 | ||
| 13 | 2014-03-02 Xue Fuqiao <xfq@gnu.org> | 16 | 2014-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 |
| 2136 | to another. Once you save the Emacs @dfn{desktop}---the buffers, | 2137 | to another. Once you save the Emacs @dfn{desktop}---the buffers, |
| 2137 | their file names, major modes, buffer positions, and so on---then | 2138 | their file names, major modes, buffer positions, and so on---then |
| 2138 | subsequent Emacs sessions reload the saved desktop. | 2139 | subsequent Emacs sessions reload the saved desktop. By default, |
| 2140 | the desktop also tries to save the frame and window configuration. | ||
| 2141 | To 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 |
| 2194 | expression matching the names of buffers not to kill. | 2197 | expression 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} | ||
| 2198 | means save frames (@pxref{Frames}) to desktop file. | ||
| 2199 | |||
| 2200 | @vindex desktop-restore-in-current-display | ||
| 2201 | If the value of @code{desktop-restore-in-current-display} is @code{t}, | ||
| 2202 | frames are restored in the current display. If @code{nil} (the | ||
| 2203 | default), frames are restored in their original displays if possible. | ||
| 2204 | If @samp{delete}, frames on other displays are deleted instead of | ||
| 2205 | restored. | ||
| 2206 | |||
| 2207 | @vindex desktop-restore-reuses-frames | ||
| 2208 | If the value of @code{desktop-restore-reuses-frames} is @code{t} (the | ||
| 2209 | default), restoring frames will reuse existing frames. If @code{nil}, | ||
| 2210 | existing frames are deleted. If @samp{:keep}, existing frames are | ||
| 2211 | kept but not reused. | ||
| 2212 | |||
| 2213 | @vindex desktop-restore-forces-onscreen | ||
| 2214 | If 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 | ||
| 2217 | onscreen. @strong{Notice:} Checking of frame boundaries is | ||
| 2218 | approximate. It may not reliably detect frames whose | ||
| 2219 | onscreen/offscreen state depends on a few pixels, especially near the | ||
| 2220 | right 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 |
| 2223 | another, use the @code{savehist} library. | 2200 | another, use the @code{savehist} library. |
| 2224 | 2201 | ||
| @@ -572,10 +572,10 @@ after `desktop-auto-save-timeout'. To disable this, customize that option | |||
| 572 | to nil (or zero). | 572 | to 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. |
| 576 | restoring the frame/window configuration (frameset). Additional options | 576 | To disable this, set `desktop-restore-frames' to nil. |
| 577 | `desktop-restore-in-current-display', `desktop-restore-reuses-frames' | 577 | See also related options `desktop-restore-reuses-frames', |
| 578 | and `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 @@ | |||
| 1 | 2014-03-12 Glenn Morris <rgm@gnu.org> | 1 | 2014-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 | ||
| 5 | 2014-03-12 Juanma Barranquero <lekktu@gmail.com> | 9 | 2014-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. |
| 391 | See 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. |
| 397 | If nil, frames are restored, if possible, in their original displays. | 399 | If t, restores frames into the current display. |
| 398 | If `delete', frames on other displays are deleted instead of restored." | 400 | If nil, restores frames into their original displays (if possible). |
| 401 | If `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. |
| 407 | If `all', frames that are partially offscreen are also forced onscreen. | 410 | If `all', also restores frames that are partially offscreen onscreen. |
| 408 | NOTE: Checking of frame boundaries is only approximate and can fail | 411 | |
| 409 | to reliably detect frames whose onscreen/offscreen state depends on a | 412 | Note that checking of frame boundaries is only approximate. |
| 410 | few pixels, especially near the right / bottom borders of the screen." | 413 | It can fail to reliably detect frames whose onscreen/offscreen state |
| 414 | depends on a few pixels, especially near the right / bottom borders | ||
| 415 | of 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. |
| 419 | If nil, existing frames are deleted. | 424 | If nil, deletes existing frames. |
| 420 | If `keep', existing frames are kept and not reused." | 425 | If `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)) |