all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.