Function: image-dired--check-executable-exists

image-dired--check-executable-exists is a byte-compiled function defined in image-dired-external.el.gz.

Signature

(image-dired--check-executable-exists EXECUTABLE &optional FUNC)

Documentation

If program EXECUTABLE does not exist or cannot be used, signal an error.

But if optional argument FUNC (which must be a symbol) names a known function, consider that function to be an alternative to running EXECUTABLE.

Source Code

;; Defined in /usr/src/emacs/lisp/image/image-dired-external.el.gz
(defun image-dired--check-executable-exists (executable &optional func)
  "If program EXECUTABLE does not exist or cannot be used, signal an error.
But if optional argument FUNC (which must be a symbol) names a known
function, consider that function to be an alternative to running EXECUTABLE."
  (let ((cmd (symbol-value executable)))
    (or (and (executable-find cmd)
             (image-dired--probe-thumbnail-cmd cmd))
        (and func (fboundp func) 'function)
        (error "Executable named by `%S' (%s) not found or not pertinent"
               executable (symbol-value executable)))))