summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-08-23 12:31:24 +0000
committerEli Zaretskii <eliz@gnu.org>2001-08-23 12:31:24 +0000
commit3b445a2848ee4d539a1c682c13aeff323a810c34 (patch)
tree6d2906ec82b21630c8c6a2a58bfd2e9bc8d0800a /man
parent017d5bc76bf0f077b5f81076cd51a9e577d77732 (diff)
downloademacs-3b445a2848ee4d539a1c682c13aeff323a810c34.tar.gz
Document confirm-kill-emacs.
Diffstat (limited to 'man')
-rw-r--r--man/entering.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/man/entering.texi b/man/entering.texi
index e8c6227be99..7e1e60501ef 100644
--- a/man/entering.texi
+++ b/man/entering.texi
@@ -120,6 +120,15 @@ if any subprocesses are still running, @kbd{C-x C-c} asks for
confirmation about them, since killing Emacs will kill the subprocesses
immediately.
+@vindex confirm-kill-emacs
+ If the value of the variable @code{confirm-kill-emacs} is
+non-@code{nil}, @kbd{C-x C-c} assumes that its value is a predicate
+function, and calls that function. If the result is non-@code{nil}, the
+session is killed, otherwise Emacs continues to run. One convenient
+function to use as the value of @code{confirm-kill-emacs} is the
+function @code{yes-or-no-p}. The default value of
+@code{confirm-kill-emacs} is @code{nil}.
+
There is no way to restart an Emacs session once you have killed it.
You can, however, arrange for Emacs to record certain session
information, such as which files are visited, when you kill it, so that