Variable: kill-emacs-hook

kill-emacs-hook is a variable defined in emacs.c.

Value

(org-persist-gc
 org-persist-write-all
 org-persist-clear-storage-maybe
 tramp-fuse-cleanup-all
 tramp-archive-cleanup-hash
 org-babel-remove-temporary-stable-directory
 org-babel-remove-temporary-directory
 tex-delete-last-temp-files
 ps-run-cleanup)

Documentation

Hook run when kill-emacs is called.

Since kill-emacs may be invoked when the terminal is disconnected (or in other similar situations), functions placed on this hook should not expect to be able to interact with the user. To ask for confirmation, see kill-emacs-query-functions instead.

Before Emacs 24.1, the hook was not run in batch mode, i.e., if noninteractive was non-nil.

View in manual

Probably introduced at or before Emacs version 18.52.

Source Code

// Defined in /usr/src/emacs/src/emacs.c
  DEFVAR_LISP ("kill-emacs-hook", Vkill_emacs_hook,
	       doc: /* Hook run when `kill-emacs' is called.
Since `kill-emacs' may be invoked when the terminal is disconnected (or
in other similar situations), functions placed on this hook should not
expect to be able to interact with the user.  To ask for confirmation,
see `kill-emacs-query-functions' instead.

Before Emacs 24.1, the hook was not run in batch mode, i.e., if
`noninteractive' was non-nil.  */);