Function: majutsu--process-file-supported-p
majutsu--process-file-supported-p is a natively compiled function
defined in majutsu-process.el.
Signature
(majutsu--process-file-supported-p INFILE DESTINATION)
Documentation
Return non-nil when the responsive runner supports INFILE and DESTINATION.
The runner only handles the call shapes Majutsu actually uses: no input file, a single stdout destination, or a (STDOUT STDERR) pair whose stderr is discarded (nil), mixed with stdout (t), or written to a file (string).
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-process.el
(defun majutsu--process-file-supported-p (infile destination)
"Return non-nil when the responsive runner supports INFILE and DESTINATION.
The runner only handles the call shapes Majutsu actually uses: no input
file, a single stdout destination, or a (STDOUT STDERR) pair whose stderr
is discarded (nil), mixed with stdout (t), or written to a file (string)."
(and (null infile)
(let ((stdout (if (consp destination) (car destination) destination))
(stderr (and (consp destination) (cadr destination))))
(and (or (null stdout) (eq stdout t)
(bufferp stdout) (stringp stdout))
(or (null stderr) (eq stderr t) (stringp stderr))))))