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 /lisp | |
| 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.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/desktop.el | 27 |
2 files changed, 20 insertions, 11 deletions
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)) |