From 4eabd4307d9431b8c01c0696c3e062da00084c1b Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Thu, 10 Nov 2005 01:26:15 +0000 Subject: [PATCH] Call pdflatex a reasonable number of times. * lisp/muse-latex.el (muse-latex-pdf-generate): Call pdflatex up to 3 times, depending on what return value we get. Thanks to John Wiegley for the heads up. git-archimport-id: mwolson@gnu.org--2005/muse--main--1.0--patch-266 --- ChangeLog | 16 ++++++++++++++++ Makefile.defs | 4 ++-- debian/changelog | 7 +++++++ debian/rules | 2 +- lisp/muse-latex.el | 12 +++++++++--- 5 files changed, 35 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index ede85cd..3be065c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,22 @@ # arch-tag: automatic-ChangeLog--mwolson@gnu.org--2005/muse--main--1.0 # +2005-11-10 01:26:15 GMT Michael Olson patch-266 + + Summary: + Call pdflatex a reasonable number of times. + Revision: + muse--main--1.0--patch-266 + + * lisp/muse-latex.el (muse-latex-pdf-generate): Call pdflatex up to 3 + times, depending on what return value we get. Thanks to John Wiegley + for the heads up. + + modified files: + ChangeLog Makefile.defs debian/changelog debian/rules + lisp/muse-latex.el + + 2005-11-02 03:56:03 GMT Michael Olson patch-265 Summary: diff --git a/Makefile.defs b/Makefile.defs index cc5ce4f..7ede7cc 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -20,6 +20,6 @@ INSTALLINFO = install-info --info-dir=$(INFODIR) #INSTALLINFO = install-info --section "Emacs" "emacs" --info-dir=$(INFODIR) # Useful only for the maintainer -VERSION = 3.02.01 -LASTUPLOAD = 3.02-1 +VERSION = 3.02.01.arch.265 +LASTUPLOAD = 3.02.01-1 BUILDOPTS = diff --git a/debian/changelog b/debian/changelog index 8b90910..640b250 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +muse-el (3.02.01.arch.265-1) unstable; urgency=low + + * New Arch snapshot. + * debian/rules: Update dh_compat to v5. + + -- Michael W. Olson (GNU address) Sun, 6 Nov 2005 19:08:38 -0500 + muse-el (3.02.01-1) unstable; urgency=low * New upstream release. diff --git a/debian/rules b/debian/rules index cb355d7..5eef1d7 100755 --- a/debian/rules +++ b/debian/rules @@ -13,7 +13,7 @@ DOCDIR = /usr/share/doc/${PACKAGE} LISPDIR = /usr/share/emacs/site-lisp/${PACKAGE} # This is the debhelper compatibility version to use. -export DH_COMPAT=3 +export DH_COMPAT=5 configure: configure-stamp configure-stamp: diff --git a/lisp/muse-latex.el b/lisp/muse-latex.el index 51865e5..1eb5c24 100644 --- a/lisp/muse-latex.el +++ b/lisp/muse-latex.el @@ -339,9 +339,15 @@ anything else that uses \\texttt{...}." file output-path final-target "PDF" (function (lambda (file output-path) - (let ((command (format "cd \"%s\"; pdflatex \"%s\"; pdflatex \"%s\"" - (file-name-directory output-path) file file))) - (shell-command command)))) + (let ((command (format "cd \"%s\"; pdflatex \"%s\"" + (file-name-directory output-path) file)) + (times 0) + result) + (while (and (< times 3) + (or (not (numberp result)) + (not (eq result 0)))) + (setq result (shell-command command) + times (1+ times)))))) ".aux" ".toc" ".out" ".log")) (unless (assoc "latex" muse-publishing-styles) -- 2.11.4.GIT