Function: files--force

files--force is a byte-compiled function defined in files.el.gz.

Signature

(files--force NO-SUCH FN &rest ARGS)

Documentation

Use NO-SUCH to affect behavior of function FN applied to list ARGS.

This acts like (apply FN ARGS) except it returns NO-SUCH if it is non-nil and if FN fails due to a missing file or directory.

Source Code

;; Defined in /usr/src/emacs/lisp/files.el.gz
(defun files--force (no-such fn &rest args)
  "Use NO-SUCH to affect behavior of function FN applied to list ARGS.
This acts like (apply FN ARGS) except it returns NO-SUCH if it is
non-nil and if FN fails due to a missing file or directory."
  (condition-case err
      (apply fn args)
    (file-missing (or no-such (signal (car err) (cdr err))))))