• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/emacs-93/emacs/lisp/textmodes/

Lines Matching +refs:compile +refs:command

34 (eval-when-compile
43 (require 'compile)
89 The command `tex-file' runs TeX on the file specified by `tex-main-file'
102 (defcustom tex-run-command "tex"
104 TeX Mode sets `tex-command' to this string.
110 (defcustom latex-run-command "latex"
112 LaTeX Mode sets `tex-command' to this string.
118 (defcustom slitex-run-command "slitex"
120 SliTeX Mode sets `tex-command' to this string.
130 If nil, TeX runs with no options. See the documentation of `tex-command'."
139 If nil, no commands are used. See the documentation of `tex-command'."
167 (defcustom tex-bibtex-command "bibtex"
175 (defcustom tex-dvi-print-command "lpr -d"
183 (defcustom tex-alt-dvi-print-command "lpr -d"
189 `tex-alt-dvi-print-command' to an expression that asks what you want;
192 (setq tex-alt-dvi-print-command
202 (defcustom tex-dvi-view-command
208 If it is a string, that specifies the command directly.
212 If the value is a form, it is evaluated to get the command to use."
217 (defcustom tex-show-queue-command "lpq"
251 (defvar tex-command "tex"
271 (defvar tex-shell-cd-command "cd"
448 (eval-when-compile
502 (list (concat slash "\\(?:provide\\|\\(?:re\\)?new\\)command\\** *\\(\\\\[A-Za-z@]+\\)")
520 (eval-when-compile
759 (define-key map "\C-c\C-c" 'tex-compile)
828 (eval-when-compile
838 (tex-executable-exists-p slitex-run-command))
907 tex-run-command
912 tex-dvi-print-command
914 tex-alt-dvi-print-command
915 Alternative command string used by \\[tex-print] (when given a prefix
917 tex-dvi-view-command
919 tex-show-queue-command
926 (set (make-local-variable 'tex-command) tex-run-command)
953 latex-run-command
958 tex-dvi-print-command
960 tex-alt-dvi-print-command
961 Alternative command string used by \\[tex-print] (when given a prefix
963 tex-dvi-view-command
965 tex-show-queue-command
972 (set (make-local-variable 'tex-command) latex-run-command)
1035 slitex-run-command
1040 tex-dvi-print-command
1042 tex-alt-dvi-print-command
1043 Alternative command string used by \\[tex-print] (when given a prefix
1045 tex-dvi-view-command
1047 tex-show-queue-command
1055 (setq tex-command slitex-run-command)
1097 (make-local-variable 'tex-command)
1146 (self-insert-command (prefix-numeric-value arg))
1558 In the tex shell buffer this command behaves like `comint-send-input'."
1586 (defvar tex-send-command-modified-tick 0)
1587 (make-variable-buffer-local 'tex-send-command-modified-tick)
1597 (defun tex-send-command (command &optional file background)
1602 evaluates to a command string.
1606 (let* ((cmd (eval command))
1623 ;; If text is unchanged since previous tex-send-command,
1625 (if (= (buffer-modified-tick buf) tex-send-command-modified-tick)
1630 (setq tex-send-command-modified-tick (buffer-modified-tick buf))
1655 ;; Machinery to guess the command that the user wants to execute.
1658 (defvar tex-compile-history nil)
1661 (eval-when-compile
1668 "If non-nil, use RefTeX's list of files to determine what command to use."
1672 (defvar tex-compile-commands
1673 '(((concat "pdf" tex-command
1677 ((concat tex-command
1695 "List of commands for `tex-compile'.
1775 (defun tex-summarize-command (cmd)
1847 (defun tex-command-executable (cmd)
1851 (defun tex-command-active-p (cmd fspec)
1864 (defun tex-compile-default (fspec)
1865 "Guess a default command given the `format-spec' FSPEC."
1870 (dolist (cmd tex-compile-commands)
1871 (when (tex-executable-exists-p (tex-command-executable cmd))
1872 (if (tex-command-active-p cmd fspec)
1875 ;; If no command seems to be applicable, arbitrarily pick the first one.
1876 (setq cmds (if cmds (nreverse cmds) (list (car tex-compile-commands))))
1878 ;; some other command (typically if (t . "%.pdf") is inactive
1908 ;; Expand the command spec into the actual text.
1911 ;; Select the favorite command from the history.
1912 (let ((hist tex-compile-history)
1917 (regexp-quote (tex-command-executable hist-cmd))
1920 ;; If the hist entry uses the same command and applies to a file
1931 ;; The history command was already applied to the same file,
1936 (defun tex-compile (dir cmd)
1937 "Run a command CMD on current TeX buffer's file in DIR."
1947 (default (tex-compile-default fspec)))
1950 (format "Command [%s]: " (tex-summarize-command default))
1953 tex-compile-commands)
1954 nil nil nil 'tex-compile-history default))))
1959 (tex-send-tex-command cmd dir))
1961 (defun tex-start-tex (command file &optional dir)
1963 (let* ((star (string-match "\\*" command))
1964 (compile-command
1966 (concat (substring command 0 star)
1968 (substring command (1+ star)))
1969 (concat command " "
1975 (tex-send-tex-command compile-command dir)))
1977 (defun tex-send-tex-command (cmd &optional dir)
1983 (tex-send-command tex-shell-cd-command dir)))
1984 (with-current-buffer (process-buffer (tex-send-command cmd))
2099 The value of `tex-command' specifies the command to use to run TeX."
2170 (tex-start-tex tex-command (concat tex-zap-file ".tex") zap-directory)
2192 (tex-start-tex tex-command source-file file-dir)
2260 Runs the shell command defined by `tex-dvi-print-command'. If prefix argument
2261 is provided, use the alternative command, `tex-alt-dvi-print-command'."
2277 (tex-send-command
2278 (if alt tex-alt-dvi-print-command tex-dvi-print-command)
2284 Runs the shell command defined by `tex-alt-dvi-print-command'."
2291 The variable `tex-dvi-view-command' specifies the shell command for preview.
2292 You must set that variable yourself before using this command,
2295 (or tex-dvi-view-command
2296 (error "You must set `tex-dvi-view-command'"))
2300 (let ((tex-dvi-print-command (eval tex-dvi-view-command)))
2332 Runs the shell command defined by `tex-show-queue-command'."
2337 (tex-send-command tex-show-queue-command)
2350 (tex-send-command tex-shell-cd-command file-dir)
2351 (tex-send-command tex-bibtex-command tex-out-file))
2493 (eval-when-compile (string-to-syntax "< b"))
2494 (eval-when-compile (string-to-syntax ">"))))
2500 (eval-when-compile (string-to-syntax "> b")))))
2501 (eval-when-compile (string-to-syntax "< b")))))