?
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/filecache.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:17 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/filecache.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\304\306\307\310& \210\311\312\313\314\315\316\304\301&\210\311\317\320\321\315\322\304\301&\210\311\323\324\325\315\326\304\301&\210\311\327\330\331\315\322\304\301&\210\311\332\333\334\315\322\304\301&\210\311\335\336\337\315\322\304\301&\210\311\340\341\342\315\322\304\301&\210\311\343\344\345\315\346\304\301&\210\311\347\350\351\315\346\304\301&\210\311\352\353\354\315\346\304\301&\207" [custom-declare-group file-cache nil "Find files using a pre-loaded cache." :group files convenience :prefix "file-cache-" custom-declare-variable file-cache-filter-regexps (list "~$" "\\.o$" "\\.exe$" "\\.a$" "\\.elc$" ",v$" "\\.output$" "\\.$" "#$" "\\.class$") "List of regular expressions used as filters by the file cache.\nFile names which match these expressions will not be added to the cache.\nNote that the functions `file-cache-add-file' and `file-cache-add-file-list'\ndo not use this variable." :type (repeat regexp) file-cache-find-command "find" "External program used by `file-cache-add-directory-using-find'." string file-cache-find-command-posix-flag 'not-defined "Set to t, if `file-cache-find-command' handles wildcards POSIX style.\nThis variable is automatically set to nil or non-nil\nif it has the initial value `not-defined' whenever you first\ncall the `file-cache-add-directory-using-find'.\n\nUnder Windows operating system where Cygwin is available, this value\nshould be t." (choice (const :tag "Yes" t) (const :tag "No" nil) (const :tag "Unknown" not-defined)) file-cache-locate-command "locate" "External program used by `file-cache-add-directory-using-locate'." file-cache-no-match-message " [File Cache: No match]" "Message to display when there is no completion." file-cache-sole-match-message " [File Cache: sole completion]" "Message to display when there is only one completion." file-cache-non-unique-message " [File Cache: complete but not unique]" "Message to display when there is a non-unique completion." file-cache-completion-ignore-case (if (memq system-type '(ms-dos windows-nt cygwin)) t completion-ignore-case) "If non-nil, file-cache completion should ignore case.\nDefaults to the value of `completion-ignore-case'." boolean file-cache-case-fold-search (if (memq system-type '(ms-dos windows-nt cygwin)) t case-fold-search) "If non-nil, file-cache completion should ignore case.\nDefaults to the value of `case-fold-search'." file-cache-ignore-case (memq system-type '(ms-dos windows-nt cygwin)) "Non-nil means ignore case when checking completions in the file cache.\nDefaults to nil on DOS and Windows, and t on other systems."] 10) (defvar file-cache-multiple-directory-message nil) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\306\307&\210\300\313\314\315\304\316\306\307&\207" [custom-declare-variable file-cache-completions-buffer "*Completions*" "Buffer to display completions when using the file cache." :type string :group file-cache file-cache-buffer "*File Cache*" "Buffer to hold the cache of file names." file-cache-buffer-default-regexp "^.+$" "Regexp to match files in `file-cache-buffer'." regexp] 8) (defvar file-cache-last-completion nil) #@247 Internal data structure to hold cache of file names. It is a list of entries of the form (FILENAME DIRNAME1 DIRNAME2 ...) where FILENAME is a file name component and the entry represents N files of names DIRNAME1/FILENAME, DIRNAME2/FILENAME, ... (defvar file-cache-alist nil (#$ . 3733)) #@43 Keymap for file cache completions buffer. (defvar file-cache-completions-keymap (byte-code "\302 \303 \"\210\304\305\306#\210\304\307\306#\210)\207" [map completion-list-mode-map make-sparse-keymap set-keymap-parent define-key [mouse-2] file-cache-choose-completion " "] 4) (#$ . 4027)) #@132 Add DIRECTORY to the file cache. If the optional REGEXP argument is non-nil, only files which match it will be added to the cache. (defalias 'file-cache-add-directory #[(directory &optional regexp) "\306!\204 \307\310\"\207\311!\312 \313\n#\211\314\211\203U @\315\f!\203. \316\f\"\202N \314\211\203M @\317\n\f\"\203F \316\f\" A\211\2047 * A\211\204 *\320!*\207" [directory dir regexp dir-files file --dolist-tail-- file-accessible-directory-p message "Directory %s does not exist" expand-file-name directory-files t nil file-directory-p delq string-match file-cache-add-file-list file-cache-filter-regexps] 5 (#$ . 4326) "DAdd files from directory: "]) #@264 Add DIRECTORY-LIST (a list of directory names) to the file cache. If the optional REGEXP argument is non-nil, only files which match it will be added to the cache. Note that the REGEXP is applied to the files in each directory, not to the directory list itself. (defalias 'file-cache-add-directory-list #[(directory-list &optional regexp) "\301\302\"\207" [directory-list mapcar #[(dir) "\302 \"\207" [dir regexp file-cache-add-directory] 3]] 3 (#$ . 5010) "XAdd files from directory list: "]) #@169 Add FILE-LIST (a list of file names) to the file cache. Interactively, FILE-LIST is read as a Lisp expression, which should evaluate to the desired list of file names. (defalias 'file-cache-add-file-list #[(file-list) "\301\302\"\207" [file-list mapcar file-cache-add-file] 3 (#$ . 5514) "XFile List: "]) #@29 Add FILE to the file cache. (defalias 'file-cache-add-file #[(file) "\306!\204 \307\310\"\207\311!\312!\313 \f#\211\203A A;\203* \n A\230\2064 A<\2054 \n A\235?\205H \n AB\241\202H \nDB\211+\207" [file file-name dir-name file-cache-alist file-cache-ignore-case the-entry file-exists-p message "Filecache: file %s does not exist" file-name-nondirectory file-name-directory assoc-string] 5 (#$ . 5826) "fAdd File: "]) #@82 Use the `find' command to add files to the file cache. Find is run in DIRECTORY. (defalias 'file-cache-add-directory-using-find #[(directory) "\306!\n\307>\203 \310=\203 \311\f!\312 !q\210\313 \210\314\f\315\316 !\315 \317\n\320>\2037 \2033 \321\2028 \322\2028 \323\324&\210\325 )\207" [directory dir system-type file-cache-find-command-posix-flag file-cache-find-command file-cache-buffer expand-file-name (windows-nt cygwin) not-defined executable-command-find-posix-p get-buffer-create erase-buffer call-process nil get-buffer "-name" (windows-nt cygwin) "\\*" "'*'" "*" "-print" file-cache-add-from-file-cache-buffer] 9 (#$ . 6263) "DAdd files under directory: "]) #@113 Use the `locate' command to add files to the file cache. STRING is passed as an argument to the locate command. (defalias 'file-cache-add-directory-using-locate #[(string) "\303!q\210\304 \210\305 \306\307!\306\n%\210\310 \207" [file-cache-buffer file-cache-locate-command string get-buffer-create erase-buffer call-process nil get-buffer file-cache-add-from-file-cache-buffer] 6 (#$ . 6947) "sAdd files using locate string: "]) #@299 Adds DIR and any subdirectories to the file-cache. This function does not use any external programs. If the optional REGEXP argument is non-nil, only files which match it will be added to the cache. Note that the REGEXP is applied to the files in each directory, not to the directory list itself. (defalias 'file-cache-add-directory-recursively #[(dir &optional regexp) "\302\303!\210\304\305\306 \203 \202 \307\"\"\207" [dir regexp require find-lisp mapcar #[(file) "\305!\206, \306\n\306\211\203# \f@\307\"\203 \310\fA\211\204 * )\206, \311!\207" [file filtered file-cache-filter-regexps regexp --dolist-tail-- file-directory-p nil string-match t file-cache-add-file] 4] find-lisp-find-files "^"] 5 (#$ . 7385) "DAdd directory: "]) #@159 Add any entries found in the file cache buffer. Each entry matches the regular expression `file-cache-buffer-default-regexp' or the optional REGEXP argument. (defalias 'file-cache-add-from-file-cache-buffer #[(&optional regexp) "q\210 \306\211\203 @eb\210\307\n!\210A\211\204 *eb\210\306\310 \206) d\311#\205= \312\313\224\313\225\"\314\f!\210\202\"