,----[ C-h f emacs-lock-mode RET ]
| emacs-lock-mode is an interactive autoloaded Lisp function in
| `emacs-lock.el'.
| 
| (emacs-lock-mode &optional ARG)
| 
| Toggle Emacs Lock mode in the current buffer.
| If called with a plain prefix argument, ask for the locking mode
| to be used.  With any other prefix ARG, turn mode on if ARG is
| positive, off otherwise.  If called from Lisp, enable the mode if
| ARG is omitted or nil.
| 
| Initially, if the user does not pass an explicit locking mode, it
| defaults to `emacs-lock-default-locking-mode' (which see);
| afterwards, the locking mode most recently set on the buffer is
| used instead.
| 
| When called from Elisp code, ARG can be any locking mode:
| 
|  exit   -- Emacs cannot exit while the buffer is locked
|  kill   -- the buffer cannot be killed, but Emacs can exit as usual
|  all    -- the buffer is locked against both actions
| 
| Other values are interpreted as usual.
| 
| [back]
`----

Emacs-24.1 has the following NEWS entry.

,----
| ** New emacs-lock.el package.
| (The previous version has been moved to obsolete/old-emacs-lock.el.)
| Now, there is a proper minor mode `emacs-lock-mode'.
| Protection against exiting Emacs and killing the buffer can be set
| separately.  The mechanism for automatically turning off protection
| for buffers with dead inferior processes has been generalized.
`----

-- 

Reply via email to