aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-10-30 22:29:47 +0000
committerStefan Monnier2003-10-30 22:29:47 +0000
commite70ff1af7029feb8faa2cf2c8209e90cb9c504e2 (patch)
tree41b8b67ebca06d1557e7e90103118df9f5debaf9
parent8ba2808bb6fd49fea9db521aaab4b588a56a46dd (diff)
downloademacs-e70ff1af7029feb8faa2cf2c8209e90cb9c504e2.tar.gz
emacs-e70ff1af7029feb8faa2cf2c8209e90cb9c504e2.zip
(tex-compile-commands): Add `yap' and `ps2pdf'.
(tex-main-file): Don't add .tex if the extension is already present. (tex-uptodate-p): Don't recurse indefinitely in the presence of symlinks.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/textmodes/tex-mode.el9
2 files changed, 15 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index dde7d5366cc..3388bee1427 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,13 @@
12003-10-30 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * textmodes/tex-mode.el (tex-compile-commands): Add `yap' and `ps2pdf'.
4 (tex-main-file): Don't add .tex if the extension is already present.
5 (tex-uptodate-p): Don't recurse indefinitely with symlinks.
6
12003-10-29 Lute Kamstra <lute@gnu.org> 72003-10-29 Lute Kamstra <lute@gnu.org>
2 8
3 * progmodes/octave-inf.el (inferior-octave-prompt): Recognize 9 * progmodes/octave-inf.el (inferior-octave-prompt):
4 version number in prompt. 10 Recognize version number in prompt.
5 11
62003-10-28 Dave Love <fx@gnu.org> 122003-10-28 Dave Love <fx@gnu.org>
7 13
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)