aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/textmodes/tex-mode.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 1b91afeac8d..66dc7b83507 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1633,11 +1633,11 @@ If NOT-ALL is non-nil, save the `.dvi' file."
1633(defvar tex-compile-commands 1633(defvar tex-compile-commands
1634 '(((concat "pdf" tex-command 1634 '(((concat "pdf" tex-command
1635 " " (if (< 0 (length tex-start-commands)) 1635 " " (if (< 0 (length tex-start-commands))
1636 tex-start-commands) " %f") 1636 (shell-quote-argument tex-start-commands)) " %f")
1637 t "%r.pdf") 1637 t "%r.pdf")
1638 ((concat tex-command 1638 ((concat tex-command
1639 " " (if (< 0 (length tex-start-commands)) 1639 " " (if (< 0 (length tex-start-commands))
1640 tex-start-commands) " %f") 1640 (shell-quote-argument tex-start-commands)) " %f")
1641 t "%r.dvi") 1641 t "%r.dvi")
1642 ("yap %r &" "%r.dvi") 1642 ("yap %r &" "%r.dvi")
1643 ("xdvi %r &" "%r.dvi") 1643 ("xdvi %r &" "%r.dvi")
@@ -1900,8 +1900,8 @@ FILE is typically the output DVI or PDF file."
1900 (prog1 (file-name-directory (expand-file-name file)) 1900 (prog1 (file-name-directory (expand-file-name file))
1901 (setq file (file-name-nondirectory file)))) 1901 (setq file (file-name-nondirectory file))))
1902 (root (file-name-sans-extension file)) 1902 (root (file-name-sans-extension file))
1903 (fspec (list (cons ?r root) 1903 (fspec (list (cons ?r (shell-quote-argument root))
1904 (cons ?f file))) 1904 (cons ?f (shell-quote-argument file))))
1905 (default (tex-compile-default fspec))) 1905 (default (tex-compile-default fspec)))
1906 (list default-directory 1906 (list default-directory
1907 (completing-read 1907 (completing-read
@@ -1922,13 +1922,14 @@ FILE is typically the output DVI or PDF file."
1922 (compile-command 1922 (compile-command
1923 (if star 1923 (if star
1924 (concat (substring command 0 star) 1924 (concat (substring command 0 star)
1925 file 1925 (shell-quote-argument file)
1926 (substring command (1+ star))) 1926 (substring command (1+ star)))
1927 (concat command " " 1927 (concat command " "
1928 tex-start-options 1928 tex-start-options
1929 (if (< 0 (length tex-start-commands)) 1929 (if (< 0 (length tex-start-commands))
1930 (concat tex-start-commands " ")) 1930 (concat
1931 file)))) 1931 (shell-quote-argument tex-start-commands) " "))
1932 (shell-quote-argument file)))))
1932 (tex-send-tex-command compile-command dir))) 1933 (tex-send-tex-command compile-command dir)))
1933 1934
1934(defun tex-send-tex-command (cmd &optional dir) 1935(defun tex-send-tex-command (cmd &optional dir)