unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Adding command to TeX-command-list
@ 2010-10-11 14:57 henry atting
  2010-10-11 15:37 ` David Kastrup
  0 siblings, 1 reply; 2+ messages in thread
From: henry atting @ 2010-10-11 14:57 UTC (permalink / raw)
  To: help-gnu-emacs

What's wrong with this:

(eval-after-load "tex"
	'(add-to-list 'TeX-command-list
	 '("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil t))

When adding it to ~/.emacs Emacs starts with an error message.
Then again I can evaluate it with `C-x C-e' when Emacs is up easily.

henry

-- 
http://literaturlatenight.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Adding command to TeX-command-list
  2010-10-11 14:57 Adding command to TeX-command-list henry atting
@ 2010-10-11 15:37 ` David Kastrup
  0 siblings, 0 replies; 2+ messages in thread
From: David Kastrup @ 2010-10-11 15:37 UTC (permalink / raw)
  To: help-gnu-emacs

henry atting <nsmp_02@online.de> writes:

> What's wrong with this:
>
> (eval-after-load "tex"
> 	'(add-to-list 'TeX-command-list
> 	 '("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil t))
>
> When adding it to ~/.emacs Emacs starts with an error message.
> Then again I can evaluate it with `C-x C-e' when Emacs is up easily.

That is because C-x C-e matches to the corresponding opening brace (that
for add-to-list) and never gets to see eval-after-load, whereas when
reading ~/.emacs, Emacs reads all of the above and does not find a
matching brace for eval-after-load.

-- 
David Kastrup


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-11 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 14:57 Adding command to TeX-command-list henry atting
2010-10-11 15:37 ` David Kastrup

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).