aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2006-08-12 12:00:30 +0000
committerEli Zaretskii2006-08-12 12:00:30 +0000
commit5bfef96c0fc21d566a752a2c0fbd512811b7c84e (patch)
tree18c1c2939d1444aa5d19019ec1a53c3f14200700
parentd0cd961e58fb5e421377fad88b1037546e9bec93 (diff)
downloademacs-5bfef96c0fc21d566a752a2c0fbd512811b7c84e.tar.gz
emacs-5bfef96c0fc21d566a752a2c0fbd512811b7c84e.zip
(Saving Emacs Sessions): Clarify when desktop is restored on startup.
-rw-r--r--man/misc.texi15
1 files changed, 10 insertions, 5 deletions
diff --git a/man/misc.texi b/man/misc.texi
index 6f6d448bc7d..33c85a9fc8b 100644
--- a/man/misc.texi
+++ b/man/misc.texi
@@ -1999,9 +1999,10 @@ subsequent Emacs sessions reload the saved desktop.
1999@vindex desktop-save-mode 1999@vindex desktop-save-mode
2000 You can save the desktop manually with the command @kbd{M-x 2000 You can save the desktop manually with the command @kbd{M-x
2001desktop-save}. You can also enable automatic desktop saving when 2001desktop-save}. You can also enable automatic desktop saving when
2002you exit Emacs: use the Customization buffer (@pxref{Easy 2002you exit Emacs and its restoring when Emacs starts: use the
2003Customization}) to set @code{desktop-save-mode} to @code{t} for future 2003Customization buffer (@pxref{Easy Customization}) to set
2004sessions, or add this line in your @file{~/.emacs} file: 2004@code{desktop-save-mode} to @code{t} for future sessions, or add this
2005line in your @file{~/.emacs} file:
2005 2006
2006@example 2007@example
2007(desktop-save-mode 1) 2008(desktop-save-mode 1)
@@ -2009,7 +2010,8 @@ sessions, or add this line in your @file{~/.emacs} file:
2009 2010
2010@findex desktop-change-dir 2011@findex desktop-change-dir
2011@findex desktop-revert 2012@findex desktop-revert
2012 When Emacs starts, it looks for a saved desktop in the current 2013 If you turn on @code{desktop-save-mode} in your @file{~/.emacs},
2014then when Emacs starts, it looks for a saved desktop in the current
2013directory. Thus, you can have separate saved desktops in different 2015directory. Thus, you can have separate saved desktops in different
2014directories, and the starting directory determines which one Emacs 2016directories, and the starting directory determines which one Emacs
2015reloads. You can save the current desktop and reload one saved in 2017reloads. You can save the current desktop and reload one saved in
@@ -2018,7 +2020,10 @@ another directory by typing @kbd{M-x desktop-change-dir}. Typing
2018 2020
2019 Specify the option @samp{--no-desktop} on the command line when you 2021 Specify the option @samp{--no-desktop} on the command line when you
2020don't want it to reload any saved desktop. This turns off 2022don't want it to reload any saved desktop. This turns off
2021@code{desktop-save-mode} for the current session. 2023@code{desktop-save-mode} for the current session. Starting Emacs with
2024the @samp{--no-init-file} option also disables desktop reloading,
2025since it bypasses the @file{.emacs} init file, where
2026@code{desktop-save-mode} is usually turned on.
2022 2027
2023@vindex desktop-restore-eager 2028@vindex desktop-restore-eager
2024 By default, all the buffers in the desktop are restored at one go. 2029 By default, all the buffers in the desktop are restored at one go.