Function: tex-send-tex-command

tex-send-tex-command is a byte-compiled function defined in tex-mode.el.gz.

Signature

(tex-send-tex-command CMD &optional DIR)

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/tex-mode.el.gz
(defun tex-send-tex-command (cmd &optional dir)
  (unless (or (equal dir (let ((buf (tex-shell-buf-no-error)))
                           (and buf (with-current-buffer buf
                                      default-directory))))
	      (not dir))
    (let (shell-dirtrack-verbose)
      (tex-send-command tex-shell-cd-command dir)))
  (with-current-buffer (process-buffer (tex-send-command cmd))
    (setq next-error-last-buffer (current-buffer))
    (compilation-forget-errors))
  (tex-display-shell)
  (setq tex-last-buffer-texed (current-buffer)))