Function: file-cache--read-list
file-cache--read-list is a byte-compiled function defined in
filecache.el.gz.
Signature
(file-cache--read-list FILE OP-PROMPT)
Source Code
;; Defined in /usr/src/emacs/lisp/filecache.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Functions to add files to the cache
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun file-cache--read-list (file op-prompt)
(let* ((fun (if file 'read-file-name 'read-directory-name))
(type (if file "file" "directory"))
(prompt-1 (concat op-prompt " " type ": "))
(prompt-2 (concat op-prompt " another " type "?"))
(continue t)
result)
(while continue
(push (funcall fun prompt-1 nil nil t) result)
(setq continue (y-or-n-p prompt-2)))
(nreverse result)))