aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/tex-mode.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index cbf2f1cdef8..c6eeed16a20 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1584,6 +1584,7 @@ If NOT-ALL is non-nil, save the `.dvi' file."
1584 " " (if (< 0 (length tex-start-commands)) 1584 " " (if (< 0 (length tex-start-commands))
1585 (shell-quote-argument tex-start-commands)) " %f") 1585 (shell-quote-argument tex-start-commands)) " %f")
1586 t "%r.dvi") 1586 t "%r.dvi")
1587 ("yap %r &" "%r.dvi")
1587 ("xdvi %r &" "%r.dvi") 1588 ("xdvi %r &" "%r.dvi")
1588 ("advi %r &" "%r.dvi") 1589 ("advi %r &" "%r.dvi")
1589 ("bibtex %r" "%r.aux" "%r.bbl") 1590 ("bibtex %r" "%r.aux" "%r.bbl")
@@ -1592,6 +1593,7 @@ If NOT-ALL is non-nil, save the `.dvi' file."
1592 ("dvipdfm %r" "%r.dvi" "%r.pdf") 1593 ("dvipdfm %r" "%r.dvi" "%r.pdf")
1593 ("dvipdf %r" "%r.dvi" "%r.pdf") 1594 ("dvipdf %r" "%r.dvi" "%r.pdf")
1594 ("dvips %r" "%r.dvi" "%r.ps") 1595 ("dvips %r" "%r.dvi" "%r.ps")
1596 ("ps2pdf %r.ps" "%r.ps" "%r.pdf")
1595 ("gv %r.ps &" "%r.ps") 1597 ("gv %r.ps &" "%r.ps")
1596 ("gv %r.pdf &" "%r.pdf") 1598 ("gv %r.pdf &" "%r.pdf")
1597 ("xpdf %r.pdf &" "%r.pdf") 1599 ("xpdf %r.pdf &" "%r.pdf")
@@ -1670,7 +1672,8 @@ of the current buffer."
1670 (tex-guess-main-file 'sub) 1672 (tex-guess-main-file 'sub)
1671 ;; (tex-guess-main-file t) 1673 ;; (tex-guess-main-file t)
1672 buffer-file-name))))))) 1674 buffer-file-name)))))))
1673 (if (file-exists-p file) file (concat file ".tex")))) 1675 (if (or (file-exists-p file) (string-match "\\.tex\\'" file))
1676 file (concat file ".tex"))))
1674 1677
1675(defun tex-summarize-command (cmd) 1678(defun tex-summarize-command (cmd)
1676 (if (not (stringp cmd)) "" 1679 (if (not (stringp cmd)) ""
@@ -1717,7 +1720,9 @@ FILE is typically the output DVI or PDF file."
1717 (uptodate t)) 1720 (uptodate t))
1718 (while (and files uptodate) 1721 (while (and files uptodate)
1719 (let ((f (pop files))) 1722 (let ((f (pop files)))
1720 (if (file-directory-p f) 1723 (if (and (file-directory-p f)
1724 ;; Avoid infinite loops.
1725 (not (file-symlink-p f)))
1721 (unless (string-match ignored-dirs-re f) 1726 (unless (string-match ignored-dirs-re f)
1722 (setq files (nconc 1727 (setq files (nconc
1723 (directory-files f t tex-input-files-re) 1728 (directory-files f t tex-input-files-re)