Function: emacs-lock--kill-emacs-hook
emacs-lock--kill-emacs-hook is a byte-compiled function defined in
emacs-lock.el.gz.
Signature
(emacs-lock--kill-emacs-hook)
Documentation
Signal an error if any buffer is exit-locked.
Used from kill-emacs-hook (which see).
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lock.el.gz
(defun emacs-lock--kill-emacs-hook ()
"Signal an error if any buffer is exit-locked.
Used from `kill-emacs-hook' (which see)."
(let ((locked (emacs-lock--exit-locked-buffer)))
(when locked
(run-hook-with-args 'emacs-lock-locked-buffer-functions locked)
(error "Emacs cannot exit because buffer %S is locked"
(buffer-name locked)))))