auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: Customize TeX-command-list via .emacs?


From: Alan Ristow
Subject: [AUCTeX] Re: Customize TeX-command-list via .emacs?
Date: Sat, 10 Mar 2007 13:38:01 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0

Ralf Angeli wrote:
* Alan Ristow (2007-03-09) writes:

David Kastrup wrote:
... (setcdr (assoc "BibTeX" TeX-command-list)
            '("bibtex --min-crossrefs=100 %s"
            'TeX-run-command nil t :help "Run BibTeXt with ..."))

Thanks for the quick response! However, when I add it to my .emacs file I get the following error upon starting Emacs:

Symbol's value as variable is void: TeX-command-list

This occurs whether I place the command inside or outside eval-after-load "tex".

You have to quote the command if you use it in `eval-after-load':

(eval-after-load "tex"
  '(setcdr (assoc "BibTeX" TeX-command-list)
          '("bibtex --min-crossrefs=100 %s"
            'TeX-run-command nil t :help "Run BibTeXt with ...")))


Thanks. However, now when I run BibTeX the debugger reports the following in the backtrace window:

Debugger entered--Lisp error: (invalid-function (quote TeX-run-command))
  (quote TeX-run-command)("BibTeX" "bibtex --min-crossrefs=100" "test")
  TeX-command("BibTeX" TeX-master-file nil)
  TeX-command-master(nil)
  call-interactively(TeX-command-master)

I can't really tell what Emacs is complaining about here -- despite the fact that it seems to be saying TeX-run-command is invalid, it's finding the correct command line string. Is the problem that TeX-command-master is nil?

I have a second issue as well, but I seem to be making progress with it on my own so I'll wait before posting it.

Thanks again for your help!

Alan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]