Server IP : 111.118.215.189 / Your IP : 18.191.235.214 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:14 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/desktop.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@130 Version number of desktop file format. Written into the desktop file and used at desktop read to provide backward compatibility. (defvar desktop-file-version "206" (#$ . 551)) (byte-code "\302\303\304\305\306\307%\210\310\311\312\304#\210\313\304\211\2034 @\311N\203- \312N\204- \314\312\311N#\210 A\211\204 *\315\311\312\316#\210\317\312\304\320\321\322\323\324\306\303\325\326&\207" [prop --dolist-tail-- custom-declare-group desktop nil "Save status of Emacs when you exit." :group frames defvaralias desktop-enable desktop-save-mode (saved-value saved-variable-comment) put make-obsolete-variable "22.1" custom-declare-variable "Non-nil if Desktop-Save mode is enabled.\nSee the command `desktop-save-mode' for a description of this minor mode." :set custom-set-minor-mode :initialize custom-initialize-default :type boolean] 13) #@368 Toggle desktop saving (Desktop Save mode). With a prefix argument ARG, enable Desktop Save mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. If Desktop Save mode is enabled, the state of Emacs is saved from one session to another. See variable `desktop-save' and function `desktop-read' for details. (defalias 'desktop-save-mode #[(&optional arg) "\303 \304=\203 \n?\202 \305 !\306V\307\310\n\203 \311\202 \312\"\210\313\314!\203D \315\302!\210\303 \2037 \303 \232\203D \316\317\n\203A \320\202B \321\"\210)\322 \210\n\207" [#1=#:last-message arg desktop-save-mode current-message toggle prefix-numeric-value 0 run-hooks desktop-save-mode-hook desktop-save-mode-on-hook desktop-save-mode-off-hook called-interactively-p any customize-mark-as-set message "Desktop-Save mode %sabled" "en" "dis" force-mode-line-update] 3 (#$ . 1403) (list (or current-prefix-arg 'toggle))]) (byte-code "\301\302\303\304\300!\205\n \303\211%\207" [desktop-save-mode-map add-minor-mode desktop-save-mode nil boundp] 6) #@58 Disable `desktop-save-mode'. Provided for use in hooks. (defalias 'desktop-save-mode-off #[nil "\300\301!\207" [desktop-save-mode 0] 2 (#$ . 2483)]) (byte-code "\302\303\304\305\306\307\310\311\312\313& \210\302\314\315\316\306\317\310\311\312\320& \210\321\322\323\324#\210\325\324\211\203F @\322N\203? \323N\204? \326\323\322N#\210 A\211\204( *\327\322\323\313#\210\302\323\330\331\306\332\310\311&\210\302\333\334\335\306\332\310\311\312\320& \210\302\336\337\340\306\341\310\311\312\342& \210\302\343\324\344\306\345\310\311\312\313& \210\302\346\324\347\306\350\310\311\312\313& \210\302\351\324\352\306\350\310\311\353\354\312\320&\210\302\355\324\356\306\350\310\311\353\357\312\313&\210\302\360\324\361\306\350\310\311&\210\302\362\363\364\306\365\310\311&\210\302\366\367\370\306\371\310\311\312\313& \210\302\372\373\374\312\375\306\376\310\311& \210\302\377\201@ \201A \306\201B \310\311&\210\302\201C \324\201D \306\201E \312\342\310\311& \210\302\201F \201G \201H \306\201I \310\311&\210\302\201J \201K \201L \306\201M \310\311&\210\302\201N \201O \201P \306\201Q \310\311\312\313& \210\302\201R \201S \201T \306\201U \310\311\312\313& \210\302\201V \201S \201W \306\345\310\311\312\313& \210\302\201X \201Y \201Z \306\201[ \310\311\312\313& \207" [prop --dolist-tail-- custom-declare-variable desktop-save 'ask-if-new "Specifies whether the desktop should be saved when it is killed.\nA desktop is killed when the user changes desktop or quits Emacs.\nPossible values are:\n t -- always save.\n ask -- always ask.\n ask-if-new -- ask if no desktop file exists, otherwise just save.\n ask-if-exists -- ask if desktop file exists, otherwise don't save.\n if-exists -- save if desktop file exists, otherwise don't save.\n nil -- never save.\nThe desktop is never saved when `desktop-save-mode' is nil.\nThe variables `desktop-dirname' and `desktop-base-file-name'\ndetermine where the desktop is saved." :type (choice (const :tag "Always save" t) (const :tag "Always ask" ask) (const :tag "Ask if desktop file is new, else do save" ask-if-new) (const :tag "Ask if desktop file exists, else don't save" ask-if-exists) (const :tag "Save if desktop file exists, else don't" if-exists) (const :tag "Never save" nil)) :group desktop :version "22.1" desktop-load-locked-desktop 'ask "Specifies whether the desktop should be loaded if locked.\nPossible values are:\n t -- load anyway.\n nil -- don't load.\n ask -- ask the user.\nIf the value is nil, or `ask' and the user chooses not to load the desktop,\nthe normal hook `desktop-not-loaded-hook' is run." (choice (const :tag "Load anyway" t) (const :tag "Don't load" nil) (const :tag "Ask the user" ask)) "22.2" defvaralias desktop-basefilename desktop-base-file-name nil (saved-value saved-variable-comment) put make-obsolete-variable (convert-standard-filename ".emacs.desktop") "Name of file for Emacs desktop, excluding the directory part." file desktop-base-lock-name (convert-standard-filename ".emacs.desktop.lock") "Name of lock file for Emacs desktop, excluding the directory part." desktop-path (list user-emacs-directory "~") "List of directories to search for the desktop file.\nThe base name of the file is specified in `desktop-base-file-name'." (repeat directory) "23.2" desktop-missing-file-warning "If non-nil, offer to recreate the buffer of a deleted file.\nAlso pause for a moment to display message about errors signaled in\n`desktop-buffer-mode-handlers'.\n\nIf nil, just print error messages in the message buffer." boolean desktop-no-desktop-file-hook "Normal hook run when `desktop-read' can't find a desktop file.\nRun in the directory in which the desktop file was sought.\nMay be used to show a dired buffer." hook desktop-not-loaded-hook "Normal hook run when the user declines to re-use a desktop file.\nRun in the directory in which the desktop file was found.\nMay be used to deal with accidental multiple Emacs jobs." :options (desktop-save-mode-off save-buffers-kill-emacs) desktop-after-read-hook "Normal hook run after a successful `desktop-read'.\nMay be used to show a buffer list." (list-buffers) desktop-save-hook "Normal hook run before the desktop is saved in a desktop file.\nRun with the desktop buffer current with only the header present.\nMay be used to add to the desktop code or to truncate history lists,\nfor example." desktop-globals-to-save '(desktop-missing-file-warning tags-file-name tags-table-list search-ring regexp-search-ring register-alist file-name-history) "List of global variables saved by `desktop-save'.\nAn element may be variable name (a symbol) or a cons cell of the form\n(VAR . MAX-SIZE), which means to truncate VAR's value to at most\nMAX-SIZE elements (if the value is a list) before saving the value.\nFeature: Saving `kill-ring' implies saving `kill-ring-yank-pointer'." (repeat (restricted-sexp :match-alternatives (symbolp consp))) desktop-globals-to-clear '(kill-ring kill-ring-yank-pointer search-ring search-ring-yank-pointer regexp-search-ring regexp-search-ring-yank-pointer) "List of global variables that `desktop-clear' will clear.\nAn element may be variable name (a symbol) or a cons cell of the form\n(VAR . FORM). Symbols are set to nil and for cons cells VAR is set\nto the value obtained by evaluating FORM." (repeat (restricted-sexp :match-alternatives (symbolp consp))) desktop-clear-preserve-buffers '("\\*scratch\\*" "\\*Messages\\*" "\\*server\\*" "\\*tramp/.+\\*" "\\*Warnings\\*") "List of buffers that `desktop-clear' should not delete.\nEach element is a regular expression. Buffers with a name matched by any of\nthese won't be deleted." "23.3" (repeat string) desktop-locals-to-save '(desktop-locals-to-save truncate-lines case-fold-search case-replace fill-column overwrite-mode change-log-default-name line-number-mode column-number-mode size-indication-mode buffer-file-coding-system indent-tabs-mode tab-width indicate-buffer-boundaries indicate-empty-lines show-trailing-whitespace) "List of local variables to save for each buffer.\nThe variables are saved only when they really are local. Conventional minor\nmodes are restored automatically; they should not be listed here." (repeat symbol) desktop-buffers-not-to-save "Regexp identifying buffers that are to be excluded from saving." (choice (const :tag "None" nil) regexp) desktop-files-not-to-save "\\(^/[^/:]*:\\|(ftp)$\\)" "Regexp identifying files whose buffers are to be excluded from saving." (choice (const :tag "None" nil) regexp) desktop-modes-not-to-save '(tags-table-mode) "List of major modes whose buffers should not be saved." (repeat symbol) desktop-file-name-format 'absolute "Format in which desktop file names should be saved.\nPossible values are:\n absolute -- Absolute file name.\n tilde -- Relative to ~.\n local -- Relative to directory of desktop file." (choice (const absolute) (const tilde) (const local)) desktop-restore-eager t "Number of buffers to restore immediately.\nRemaining buffers are restored lazily (when Emacs is idle).\nIf value is t, all buffers are restored immediately." (choice (const t) integer) desktop-lazy-verbose "Verbose reporting of lazily created buffers." desktop-lazy-idle-delay 5 "Idle delay before starting to create buffers.\nSee `desktop-restore-eager'." integer] 13) #@598 When non-nil, save buffer status in desktop file. This variable becomes buffer local when set. If the value is a function, it is called by `desktop-save' with argument DESKTOP-DIRNAME to obtain auxiliary information to save in the desktop file along with the state of the buffer for which it was called. When file names are returned, they should be formatted using the call "(desktop-file-name FILE-NAME DESKTOP-DIRNAME)". Later, when `desktop-read' evaluates the desktop file, auxiliary information is passed as the argument DESKTOP-BUFFER-MISC to functions in `desktop-buffer-mode-handlers'. (defvar desktop-save-buffer nil (#$ . 9834)) (byte-code "\300\301!\210\302\303\301\304#\210\302\305\301\304#\207" [make-variable-buffer-local desktop-save-buffer make-obsolete-variable desktop-buffer-modes-to-save "22.1" desktop-buffer-misc-functions] 4) #@1122 Alist of major mode specific functions to restore a desktop buffer. Functions listed are called by `desktop-create-buffer' when `desktop-read' evaluates the desktop file. List elements must have the form (MAJOR-MODE . RESTORE-BUFFER-FUNCTION). Buffers with a major mode not specified here, are restored by the default handler `desktop-restore-file-buffer'. Handlers are called with argument list (DESKTOP-BUFFER-FILE-NAME DESKTOP-BUFFER-NAME DESKTOP-BUFFER-MISC) Furthermore, they may use the following variables: desktop-file-version desktop-buffer-major-mode desktop-buffer-minor-modes desktop-buffer-point desktop-buffer-mark desktop-buffer-read-only desktop-buffer-locals If a handler returns a buffer, then the saved mode settings and variable values for that buffer are copied into it. Modules that define a major mode that needs a special handler should contain code like (defun foo-restore-desktop-buffer ... (add-to-list 'desktop-buffer-mode-handlers '(foo-mode . foo-restore-desktop-buffer)) Furthermore the major mode function must be autoloaded. (defvar desktop-buffer-mode-handlers nil (#$ . 10694)) (byte-code "\300\301\302\303#\210\304\305\301\306#\210\307\310\311\312\313\314\315\316&\207" [put desktop-buffer-mode-handlers risky-local-variable t make-obsolete-variable desktop-buffer-handlers "22.1" custom-declare-variable desktop-minor-mode-table '((auto-fill-function auto-fill-mode) (vc-mode nil) (vc-dired-mode nil) (erc-track-minor-mode nil) (savehist-mode nil)) "Table mapping minor mode variables to minor mode functions.\nEach entry has the form (NAME RESTORE-FUNCTION).\nNAME is the name of the buffer-local variable indicating that the minor\nmode is active. RESTORE-FUNCTION is the function to activate the minor mode.\nRESTORE-FUNCTION nil means don't try to restore the minor mode.\nOnly minor modes for which the name of the buffer-local variable\nand the name of the minor mode function are different have to be added to\nthis table. See also `desktop-minor-mode-handlers'." :type sexp :group desktop] 8) #@1126 Alist of functions to restore non-standard minor modes. Functions are called by `desktop-create-buffer' to restore minor modes. List elements must have the form (MINOR-MODE . RESTORE-FUNCTION). Minor modes not specified here, are restored by the standard minor mode function. Handlers are called with argument list (DESKTOP-BUFFER-LOCALS) Furthermore, they may use the following variables: desktop-file-version desktop-buffer-file-name desktop-buffer-name desktop-buffer-major-mode desktop-buffer-minor-modes desktop-buffer-point desktop-buffer-mark desktop-buffer-read-only desktop-buffer-misc When a handler is called, the buffer has been created and the major mode has been set, but local variables listed in desktop-buffer-locals has not yet been created and set. Modules that define a minor mode that needs a special handler should contain code like (defun foo-desktop-restore ... (add-to-list 'desktop-minor-mode-handlers '(foo-mode . foo-desktop-restore)) Furthermore the minor mode function must be autoloaded. See also `desktop-minor-mode-table'. (defvar desktop-minor-mode-handlers nil (#$ . 12806)) (put 'desktop-minor-mode-handlers 'risky-local-variable t) #@58 The directory in which the desktop file should be saved. (defvar desktop-dirname nil (#$ . 14050)) #@106 Return the full name of the desktop file in DIRNAME. DIRNAME omitted or nil means use `desktop-dirname'. (defalias 'desktop-full-file-name #[(&optional dirname) "\303 \206 \n\"\207" [desktop-base-file-name dirname desktop-dirname expand-file-name] 3 (#$ . 14156)]) #@111 Return the full name of the desktop lock file in DIRNAME. DIRNAME omitted or nil means use `desktop-dirname'. (defalias 'desktop-full-lock-name #[(&optional dirname) "\303 \206 \n\"\207" [desktop-base-lock-name dirname desktop-dirname expand-file-name] 3 (#$ . 14430)]) #@35 *Header to place in Desktop file. (defconst desktop-header ";; --------------------------------------------------------------------------\n;; Desktop File for Emacs\n;; --------------------------------------------------------------------------\n" (#$ . -14708)) #@68 Hooks run after all buffers are loaded; intended for internal use. (defvar desktop-delay-hook nil (#$ . 14976)) #@112 When the desktop file was last modified to the knowledge of this Emacs. Used to detect desktop file conflicts. (defvar desktop-file-modtime nil (#$ . 15095)) #@197 Return the PID of the Emacs process that owns the desktop file in DIRNAME. Return nil if no desktop file found or no Emacs process is using it. DIRNAME omitted or nil means use `desktop-dirname'. (defalias 'desktop-owner #[(&optional dirname) "\302\303\304 !!\205 \302\305\306\217\205 )\207" [owner dirname nil file-exists-p desktop-full-lock-name (byte-code "\303\304!rq\210\305\216\306\307 !!\210eb\210\310p!\211+\250\207" [#1=#:temp-buffer dirname owner generate-new-buffer " *temp*" ((byte-code "\301!\203\n \302!\210\301\207" [#1# buffer-name kill-buffer] 2)) insert-file-contents-literally desktop-full-lock-name read] 4) ((error))] 3 (#$ . 15260)]) #@124 Record this Emacs process as the owner of the desktop file in DIRNAME. DIRNAME omitted or nil means use `desktop-dirname'. (defalias 'desktop-claim-lock #[(&optional dirname) "\301\302\303 !\304\305!#\207" [dirname write-region number-to-string emacs-pid nil desktop-full-lock-name] 5 (#$ . 15932)]) #@102 Remove the lock file for the desktop in DIRNAME. DIRNAME omitted or nil means use `desktop-dirname'. (defalias 'desktop-release-lock #[(&optional dirname) "\302!\303 !\205 \304 !)\207" [dirname file desktop-full-lock-name file-exists-p delete-file] 2 (#$ . 16240)]) #@52 Truncate LIST to at most N elements destructively. (defalias 'desktop-truncate #[(list n) "S \233\211:\205 \n\303\241)\207" [n list here nil] 3 (#$ . 16515)]) #@242 Empty the Desktop. This kills all buffers except for internal ones and those with names matched by a regular expression in the list `desktop-clear-preserve-buffers'. Furthermore, it clears the variables listed in `desktop-globals-to-clear'. (defalias 'desktop-clear #[nil "\306 \210\307\211\203. \n@\2119\203 \310\311 \312BB!\210\202'