?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/emacs-lock.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:16 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emacs-lock.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\316\317\306\301\304\305& \210\310\320\312\313\321DD\322\316\323\306\301\304\305& \210\310\324\312\313\325DD\326\316\327\306\301\304\330& \207" [custom-declare-group emacs-lock nil "Emacs-Lock mode." :version "24.1" :group convenience custom-declare-variable emacs-lock-default-locking-mode funcall function #[0 "\300\207" [all] 1 "\n\n(fn)"] "Default locking mode of Emacs-Locked buffers.\n\nIts value is used as the default for `emacs-lock-mode' (which\nsee) the first time that Emacs Lock mode is turned on in a buffer\nwithout passing an explicit locking mode.\n\nPossible values are:\n exit -- Emacs cannot exit while the buffer is locked\n kill -- the buffer cannot be killed, but Emacs can exit as usual\n all -- the buffer is locked against both actions\n nil -- the buffer is not locked" :type (choice (const :tag "Do not allow Emacs to exit" exit) (const :tag "Do not allow killing the buffer" kill) (const :tag "Do not allow killing the buffer or exiting Emacs" all) (const :tag "Do not lock the buffer" nil)) emacs-lock-unlockable-modes #[0 "\300\207" [((shell-mode . all) (telnet-mode . all))] 1 "\n\n(fn)"] "Alist of auto-unlockable modes.\nEach element is a pair (MAJOR-MODE . ACTION), where ACTION is\none of `kill', `exit' or `all'. Buffers with matching major\nmodes are auto-unlocked for the specific action if their\ninferior processes are not alive. If this variable is t, all\nbuffers associated to inferior processes are auto-unlockable\nfor both actions (NOT RECOMMENDED)." (choice (const :tag "All buffers with inferior processes" t) (repeat :tag "Selected modes" (cons :tag "Set auto-unlock for" (symbol :tag "Major mode") (radio (const :tag "Allow exiting" exit) (const :tag "Allow killing" kill) (const :tag "Allow both" all))))) emacs-lock-locked-buffer-functions #[0 "\300\207" [nil] 1 "\n\n(fn)"] "Abnormal hook run when Emacs Lock prevents exiting Emacs, or killing a buffer.\nThe functions get one argument, the first locked buffer found." hook "24.3"] 10) #@295 If non-nil, the current buffer is locked. It can be one of the following values: 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 nil -- the buffer is not locked (defvar emacs-lock-mode nil (#$ . 2632)) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local emacs-lock-mode put permanent-local t] 4) #@64 Most recent locking mode set on the buffer. Internal use only. (defvar emacs-lock--old-mode nil (#$ . 3091)) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local emacs-lock--old-mode put permanent-local t] 4) #@84 Non-nil if current buffer should be checked for auto-unlocking. Internal use only. (defvar emacs-lock--try-unlocking nil (#$ . 3329)) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local emacs-lock--try-unlocking put permanent-local t] 4) #@84 Return t if BUFFER-OR-NAME is associated with a live process. (fn BUFFER-OR-NAME) (defalias 'emacs-lock-live-process-p #[257 "\300!\211\205\n \301!\207" [get-buffer-process process-live-p] 4 (#$ . 3597)]) #@148 Return t if the current buffer can auto-unlock for ACTION. ACTION must be one of `kill' or `exit'. See `emacs-lock-unlockable-modes'. (fn ACTION) (defalias 'emacs-lock--can-auto-unlock #[257 "\205 \303p!?\205 \304=\206 \n \236A\211\305=\206 \211=\262\207" [emacs-lock--try-unlocking emacs-lock-unlockable-modes major-mode emacs-lock-live-process-p t all] 4 (#$ . 3812)]) #@50 Return the first exit-locked buffer found. (fn) (defalias 'emacs-lock--exit-locked-buffer #[0 "r\300\301\302D\215)\207" [:found funcall #[0 "\301 \211\203# \211@\211q\210\302\303!\204 \304>\204 \305\306\"\210A\266\202\202 \210\307\207" [emacs-lock-mode buffer-list emacs-lock--can-auto-unlock exit (nil kill) throw :found nil] 5 "\n\n(fn)"]] 3 (#$ . 4198)]) #@94 Signal an error if any buffer is exit-locked. Used from `kill-emacs-hook' (which see). (fn) (defalias 'emacs-lock--kill-emacs-hook #[0 "\300 \211\205 \301\302\"\210\303\304\305!\"\207" [emacs-lock--exit-locked-buffer run-hook-with-args emacs-lock-locked-buffer-functions error "Emacs cannot exit because buffer %S is locked" buffer-name] 5 (#$ . 4569)]) #@128 Display a message if any buffer is exit-locked. Return a value appropriate for `kill-emacs-query-functions' (which see). (fn) (defalias 'emacs-lock--kill-emacs-query-functions #[0 "\300 \211\204\n \301\202 \302\303\"\210\304\305\306!\"\210\307\207" [emacs-lock--exit-locked-buffer t run-hook-with-args emacs-lock-locked-buffer-functions message "Emacs cannot exit because buffer %S is locked" buffer-name nil] 5 (#$ . 4934)]) #@137 Display a message if the current buffer is kill-locked. Return a value appropriate for `kill-buffer-query-functions' (which see). (fn) (defalias 'emacs-lock--kill-buffer-query-functions #[0 "\301\302!\204\f \303>\203 \304\207\305\306p\"\210\307\310\311 \"\210\312\207" [emacs-lock-mode emacs-lock--can-auto-unlock kill (nil exit) t run-hook-with-args emacs-lock-locked-buffer-functions message "Buffer %S is locked and cannot be killed" buffer-name nil] 3 (#$ . 5371)]) #@55 Setter function for `emacs-lock-mode'. (fn MODE ARG) (defalias 'emacs-lock--set-mode #[514 "\211\304>\203\n \211\2025 \211=\203&