Function: hfy-text-p
hfy-text-p is a byte-compiled function defined in htmlfontify.el.gz.
Signature
(hfy-text-p SRCDIR FILE)
Documentation
Is SRCDIR/FILE text? Use hfy-istext-command to determine this.
Source Code
;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
(defun hfy-text-p (srcdir file)
"Is SRCDIR/FILE text? Use `hfy-istext-command' to determine this."
(let* ((cmd (format hfy-istext-command
(shell-quote-argument (expand-file-name file srcdir))))
(rsp (shell-command-to-string cmd)))
(string-match "text" rsp)))