Function: cookie-check-file

cookie-check-file is a byte-compiled function defined in cookie1.el.gz.

Signature

(cookie-check-file FILE)

Documentation

Return either FILE or cookie-file.

Signal an error if the result is nil or not readable.

Source Code

;; Defined in /usr/src/emacs/lisp/play/cookie1.el.gz
(defun cookie-check-file (file)
  "Return either FILE or `cookie-file'.
Signal an error if the result is nil or not readable."
  (or (setq file (or file cookie-file)) (user-error "No phrase file specified"))
  (or (file-readable-p file) (user-error "Cannot read file `%s'" file))
  file)