Function: file-cache-delete-file

file-cache-delete-file is an interactive and byte-compiled function defined in filecache.el.gz.

Signature

(file-cache-delete-file FILE)

Documentation

Delete FILE (a relative file name) from the file cache.

Return nil if FILE was not in the file cache, non-nil otherwise.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/filecache.el.gz
;; This clears *all* files with the given name
(defun file-cache-delete-file (file)
  "Delete FILE (a relative file name) from the file cache.
Return nil if FILE was not in the file cache, non-nil otherwise."
  (interactive
   (list (completing-read "Delete file from cache: " file-cache-alist)))
  (let ((elt (assoc-string file file-cache-alist file-cache-ignore-case)))
    (setq file-cache-alist (delq elt file-cache-alist))
    elt))