File: emacs-lock.el.html
This package defines a minor mode Emacs Lock to mark a buffer as protected against accidental killing, or exiting Emacs, or both. Buffers associated with inferior modes, like shell or telnet, can be treated specially, by auto-unlocking them if their inferior processes are dead.
Defined variables (7)
emacs-lock--old-mode | Most recent locking mode set on the buffer. |
emacs-lock--try-unlocking | Non-nil if current buffer should be checked for auto-unlocking. |
emacs-lock-default-locking-mode | Default locking mode of Emacs-Locked buffers. |
emacs-lock-locked-buffer-functions | Abnormal hook run when Emacs Lock prevents exiting Emacs, or killing a buffer. |
emacs-lock-mode | If non-nil, the current buffer is locked. |
emacs-lock-mode-hook | Hook run after entering or leaving ‘emacs-lock-mode’. |
emacs-lock-unlockable-modes | Alist of auto-unlockable modes. |
Defined functions (9)
emacs-lock--can-auto-unlock | (ACTION) |
emacs-lock--exit-locked-buffer | () |
emacs-lock--kill-buffer-query-functions | () |
emacs-lock--kill-emacs-hook | () |
emacs-lock--kill-emacs-query-functions | () |
emacs-lock--set-mode | (MODE ARG PREFIX) |
emacs-lock-live-process-p | (BUFFER-OR-NAME) |
emacs-lock-mode | (&optional ARG) |
emacs-lock-unload-function | () |