Function: TeX-run-discard-or-function

TeX-run-discard-or-function is a byte-compiled function defined in tex.el.

Signature

(TeX-run-discard-or-function NAME COMMAND FILE)

Documentation

Start COMMAND as process or execute it as a Lisp function.

If run as a process, the output is discarded. COMMAND is expected to be a string. NAME and FILE are ignored.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-run-discard-or-function (name command file)
  "Start COMMAND as process or execute it as a Lisp function.
If run as a process, the output is discarded.  COMMAND is
expected to be a string.  NAME and FILE are ignored."
  (if (functionp (car (read-from-string command)))
      (TeX-run-function name command file)
    (TeX-run-discard name command file)))