aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2014-03-12 00:14:30 -0700
committerGlenn Morris2014-03-12 00:14:30 -0700
commit464560055fa70476dc6db20c1c29e812cf05a8f9 (patch)
treec775ca9c30ab50ce4e383ff9ebb9d97cebafb725 /lisp
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 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/desktop.el27
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 @@
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))