diff options
| author | Philipp Stephani | 2016-09-27 20:47:23 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2016-10-01 14:25:27 +0200 |
| commit | b661efd90d9bd57430761b0e87fcc8723ec24814 (patch) | |
| tree | 2808dd470064a2ac929dd28804359886a650f9ad /doc | |
| parent | e1c5422e7bc2fbe0ecf5ab501b39d32fac61e747 (diff) | |
| download | emacs-b661efd90d9bd57430761b0e87fcc8723ec24814.tar.gz emacs-b661efd90d9bd57430761b0e87fcc8723ec24814.zip | |
Make querying to kill processes customizable
Introduce a new customization option, `confirm-kill-processes', that
users can set to nil if they don't want Emacs to nag them about killing
processes.
* lisp/files.el (confirm-kill-processes): New customization option.
(save-buffers-kill-emacs): Use customization option.
* test/lisp/files-tests.el
(files-test--save-buffers-kill-emacs--confirm-kill-processes): Add
test for new customization option.
* doc/emacs/entering.texi (Exiting): Document new user option.
* doc/lispref/processes.texi (Query Before Exit): Document new
user option.
* etc/NEWS: Document new user option.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/entering.texi | 5 | ||||
| -rw-r--r-- | doc/lispref/processes.texi | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/emacs/entering.texi b/doc/emacs/entering.texi index 66817e3067f..09331e80fb1 100644 --- a/doc/emacs/entering.texi +++ b/doc/emacs/entering.texi | |||
| @@ -133,6 +133,11 @@ run. One convenient function to use as the value of | |||
| 133 | @code{confirm-kill-emacs} is the function @code{yes-or-no-p}. The | 133 | @code{confirm-kill-emacs} is the function @code{yes-or-no-p}. The |
| 134 | default value of @code{confirm-kill-emacs} is @code{nil}. | 134 | default value of @code{confirm-kill-emacs} is @code{nil}. |
| 135 | 135 | ||
| 136 | @vindex confirm-kill-processes | ||
| 137 | If the value of the variable @code{confirm-kill-processes} is | ||
| 138 | @code{nil}, @kbd{C-x C-c} does not ask for confirmation before killing | ||
| 139 | subprocesses started by Emacs. The value is @code{t} by default. | ||
| 140 | |||
| 136 | To further customize what happens when Emacs is exiting, see | 141 | To further customize what happens when Emacs is exiting, see |
| 137 | @ref{Killing Emacs,,, elisp, The GNU Emacs Lisp Reference Manual}. | 142 | @ref{Killing Emacs,,, elisp, The GNU Emacs Lisp Reference Manual}. |
| 138 | 143 | ||
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index f9d5096dbea..87c0b5c7687 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -1970,6 +1970,13 @@ shell process to avoid querying: | |||
| 1970 | @end smallexample | 1970 | @end smallexample |
| 1971 | @end defun | 1971 | @end defun |
| 1972 | 1972 | ||
| 1973 | @defopt confirm-kill-processes | ||
| 1974 | If this user option is set to @code{t} (the default), then Emacs asks | ||
| 1975 | for confirmation before killing processes on exit. If it is | ||
| 1976 | @code{nil}, Emacs kills processes without confirmation, i.e., the | ||
| 1977 | query flag of all processes is ignored. | ||
| 1978 | @end defopt | ||
| 1979 | |||
| 1973 | @node System Processes | 1980 | @node System Processes |
| 1974 | @section Accessing Other Processes | 1981 | @section Accessing Other Processes |
| 1975 | @cindex system processes | 1982 | @cindex system processes |