comparison lisp/textmodes/tex-mode.el @ 92459:edefaec61bcf

(tex-cmd-bibtex-args): Add :version and :group.
author Glenn Morris <rgm@gnu.org>
date Tue, 04 Mar 2008 03:48:53 +0000
parents 3db1228ead22
children 55f5bb0c4d4e
comparison
equal deleted inserted replaced
92458:5f5f07a5c076 92459:edefaec61bcf
1973 (when (and (eq in t) (stringp out)) 1973 (when (and (eq in t) (stringp out))
1974 (not (tex-uptodate-p (format-spec out fspec))))))) 1974 (not (tex-uptodate-p (format-spec out fspec)))))))
1975 1975
1976 (defcustom tex-cmd-bibtex-args "--min-crossref=100" 1976 (defcustom tex-cmd-bibtex-args "--min-crossref=100"
1977 "Extra args to pass to `bibtex' by default." 1977 "Extra args to pass to `bibtex' by default."
1978 :type 'string) 1978 :type 'string
1979 :version "23.1"
1980 :group 'tex-run)
1979 1981
1980 (defun tex-format-cmd (format fspec) 1982 (defun tex-format-cmd (format fspec)
1981 "Like `format-spec' but adds user-specified args to the command. 1983 "Like `format-spec' but adds user-specified args to the command.
1982 Only applies the FSPEC to the args part of FORMAT." 1984 Only applies the FSPEC to the args part of FORMAT."
1983 (if (not (string-match "\\([^ /\\]+\\) " format)) 1985 (if (not (string-match "\\([^ /\\]+\\) " format))
1988 (sym (intern-soft (format "tex-cmd-%s-args" cmd))) 1990 (sym (intern-soft (format "tex-cmd-%s-args" cmd)))
1989 (extra-args (and sym (symbol-value sym)))) 1991 (extra-args (and sym (symbol-value sym))))
1990 (concat prefix cmd 1992 (concat prefix cmd
1991 (if extra-args (concat " " extra-args)) 1993 (if extra-args (concat " " extra-args))
1992 " " (format-spec args fspec))))) 1994 " " (format-spec args fspec)))))
1993 1995
1994 (defun tex-compile-default (fspec) 1996 (defun tex-compile-default (fspec)
1995 "Guess a default command given the `format-spec' FSPEC." 1997 "Guess a default command given the `format-spec' FSPEC."
1996 ;; TODO: Learn to do latex+dvips! 1998 ;; TODO: Learn to do latex+dvips!
1997 (let ((cmds nil) 1999 (let ((cmds nil)
1998 (unchanged-in nil)) 2000 (unchanged-in nil))