[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
When Emacs exits, it terminates all its subprocesses by sending them the
SIGHUP
signal. Because subprocesses may be doing valuable work,
Emacs normally asks the user to confirm that it is ok to terminate them.
Each process has a query flag which, if non-nil
, says that Emacs
should ask for confirmation before exiting and thus killing that process.
The default for the query flag is t
, meaning do query.
This returns the query flag of process.
This function sets the query flag of process to flag. It returns flag.
;; Don't query about the shell process
(set-process-query-on-exit-flag (get-process "shell") nil)
⇒ t
|
This function clears the query flag of process, so that Emacs will not query the user on account of that process.
Actually, the function does more than that: it returns the old value of the
process's query flag, and sets the query flag to do-query. Please
don't use this function to do those things any more—please use the newer,
cleaner functions process-query-on-exit-flag
and
set-process-query-on-exit-flag
in all but the simplest cases. The
only way you should use process-kill-without-query
nowadays is like
this:
;; Don't query about the shell process
(process-kill-without-query (get-process "shell"))
|
Ce document a été généré par Eric Reinbold le 13 Octobre 2007 en utilisant texi2html 1.78.