auctex
[Top][All Lists]
Advanced

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

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


From: David Kastrup
Subject: Re: [AUCTeX] Re: Customize TeX-command-list via .emacs?
Date: Sat, 10 Mar 2007 19:46:02 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

Alan Ristow <address@hidden> writes:

> 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

Overquoting.  Just remove the ' from before TeX-run-command.  I forgot
to remove it when turning the list into a constant.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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