File: old-emacs-lock.el.html

This code sets a buffer-local variable to t if toggle-emacs-lock is run, then if the user attempts to exit Emacs, the locked buffer name will be displayed and the exit aborted. This is just a way of protecting yourself from yourself. For example, if you have a shell running a big program and exiting Emacs would abort that program, you may want to lock that buffer, then if you forget about it after a while, you won't accidentally exit Emacs. To unlock the buffer, just goto the buffer and run toggle-emacs-lock again.

Defined variables (2)

emacs-lock-buffer-lockedWhether a shell or telnet buffer was locked when its process was killed.
emacs-lock-from-exitingWhether Emacs is locked to prevent exiting. See ‘check-emacs-lock’.

Defined functions (4)

check-emacs-lock()
emacs-lock-check-buffer-lock()
emacs-lock-clear-sentinel(PROC STR)
toggle-emacs-lock()

Defined faces (0)