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-modeMost recent locking mode set on the buffer.
emacs-lock--try-unlockingNon-nil if current buffer should be checked for auto-unlocking.
emacs-lock-default-locking-modeDefault locking mode of Emacs-Locked buffers.
emacs-lock-locked-buffer-functionsAbnormal hook run when Emacs Lock prevents exiting Emacs, or killing a buffer.
emacs-lock-modeIf non-nil, the current buffer is locked.
emacs-lock-mode-hookHook run after entering or leaving ‘emacs-lock-mode’.
emacs-lock-unlockable-modesAlist 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()

Defined faces (0)