Lines Matching defs:from
1 ;;; emacs-lock.el --- prevents you from exiting Emacs if a buffer is locked
32 ;; yourself from yourself. For example, if you have a shell running a big
40 (defvar emacs-lock-from-exiting nil
42 (make-variable-buffer-local 'emacs-lock-from-exiting)
50 "Check if variable `emacs-lock-from-exiting' is t for any buffer.
55 (when emacs-lock-from-exiting
56 (error "Emacs is locked from exit due to buffer: %s" (buffer-name))))))
59 "Toggle `emacs-lock-from-exiting' for the current buffer.
62 (setq emacs-lock-from-exiting (not emacs-lock-from-exiting))
63 (if emacs-lock-from-exiting
68 "Check if variable `emacs-lock-from-exiting' is t for a buffer.
70 (when emacs-lock-from-exiting
83 (if emacs-lock-from-exiting
85 (setq emacs-lock-from-exiting nil)
92 (setq emacs-lock-from-exiting t)))