Function: shadow--save-buffers-kill-emacs

shadow--save-buffers-kill-emacs is a byte-compiled function defined in shadowfile.el.gz.

Signature

(shadow--save-buffers-kill-emacs &optional ARG &rest _)

Source Code

;; Defined in /usr/src/emacs/lisp/shadowfile.el.gz
(defun shadow--save-buffers-kill-emacs (&optional arg &rest _)
  ;; This function is necessary because we need to get control and save
  ;; the todo file /after/ saving other files, but /before/ the warning
  ;; message about unsaved buffers (because it can get modified by the
  ;; action of saving other buffers).  `kill-emacs-hook' is no good
  ;; because it is not called at the correct time, and also because it is
  ;; called when the terminal is disconnected and we cannot ask whether
  ;; to copy files.
  (shadow-save-todo-file)
  (save-some-buffers arg t)
  (shadow-copy-files)
  (shadow-save-todo-file))