diff options
author | Andreas Schwab <schwab@suse.de> | 1998-01-07 10:31:09 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 1998-01-07 10:31:09 +0000 |
commit | 33933d45beb4ab3b66b421a970fc9d3ab18e9acc (patch) | |
tree | 2794bb910287b8a044651317863a89538d2251a3 /lisp/filecache.el | |
parent | 92631216919566dd1bfc6a880fc35c2ef0611457 (diff) | |
download | emacs-33933d45beb4ab3b66b421a970fc9d3ab18e9acc.tar.gz |
Customized.
Diffstat (limited to 'lisp/filecache.el')
-rw-r--r-- | lisp/filecache.el | 68 |
1 files changed, 46 insertions, 22 deletions
diff --git a/lisp/filecache.el b/lisp/filecache.el index 08ae14c7395..7c8fe96b946 100644 --- a/lisp/filecache.el +++ b/lisp/filecache.el @@ -142,48 +142,72 @@ ;;; Code: +(defgroup file-cache nil + "Find files using a pre-loaded cache." + :group 'files + :prefix "file-cache-") + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Variables ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; User-modifiable variables -(defvar file-cache-filter-regexps +(defcustom file-cache-filter-regexps (list "~$" "\\.o$" "\\.exe$" "\\.a$" "\\.elc$" ",v$" "\\.output$" "\\.$" "#$") "*List of regular expressions used as filters by the file cache. File names which match these expressions will not be added to the cache. Note that the functions `file-cache-add-file' and `file-cache-add-file-list' -do not use this variable.") +do not use this variable." + :type '(repeat regexp) + :group 'file-cache) -(defvar file-cache-find-command "find" - "*External program used by `file-cache-add-directory-using-find'.") +(defcustom file-cache-find-command "find" + "*External program used by `file-cache-add-directory-using-find'." + :type 'string + :group 'file-cache) -(defvar file-cache-locate-command "locate" - "*External program used by `file-cache-add-directory-using-locate'.") +(defcustom file-cache-locate-command "locate" + "*External program used by `file-cache-add-directory-using-locate'." + :type 'string + :group 'file-cache) ;; Minibuffer messages -(defvar file-cache-no-match-message " [File Cache: No match]" - "Message to display when there is no completion.") - -(defvar file-cache-sole-match-message " [File Cache: sole completion]" - "Message to display when there is only one completion.") - -(defvar file-cache-non-unique-message " [File Cache: complete but not unique]" - "Message to display when there is a non-unique completion.") +(defcustom file-cache-no-match-message " [File Cache: No match]" + "Message to display when there is no completion." + :type 'string + :group 'file-cache) + +(defcustom file-cache-sole-match-message " [File Cache: sole completion]" + "Message to display when there is only one completion." + :type 'string + :group 'file-cache) + +(defcustom file-cache-non-unique-message + " [File Cache: complete but not unique]" + "Message to display when there is a non-unique completion." + :type 'string + :group 'file-cache) (defvar file-cache-multiple-directory-message nil) ;; Internal variables ;; This should be named *Completions* because that's what the function ;; switch-to-completions in simple.el expects -(defvar file-cache-completions-buffer "*Completions*" - "Buffer to display completions when using the file cache.") - -(defvar file-cache-buffer "*File Cache*" - "Buffer to hold the cache of file names.") - -(defvar file-cache-buffer-default-regexp "^.+$" - "Regexp to match files in `file-cache-buffer'.") +(defcustom file-cache-completions-buffer "*Completions*" + "Buffer to display completions when using the file cache." + :type 'string + :group 'file-cache) + +(defcustom file-cache-buffer "*File Cache*" + "Buffer to hold the cache of file names." + :type 'string + :group 'file-cache) + +(defcustom file-cache-buffer-default-regexp "^.+$" + "Regexp to match files in `file-cache-buffer'." + :type 'regexp + :group 'file-cache) (defvar file-cache-last-completion nil) |