Nick Dokos <nicholas.do...@hp.com> writes: Hi Nick,
> Christopher Schmidt <christop...@ch.ristopher.com> wrote: > >> Nick Dokos <nicholas.do...@hp.com> writes: >> > What missing variable definition? By the time the export is >> > finished, the let-bind is gone. There is no definition of >> > TeX-master anywhere, just as if you never had org loaded: why >> > should auctex object to that? >> > >> > So I don't understand why it would break: all the common scenarios >> > that I have tried work with no problem for me. I can load an org >> > file, export to latex, open the latex file (which loads auctex) and >> > do auctex things to it. I don't get any error. What exactly do I >> > have to do in order to break it? >> >> In org-latex.el, within the binding: >> >> (if to-buffer >> (unless (eq major-mode 'latex-mode) (latex-mode)) >> (save-buffer)) >> > > You mean that's where you get the error? No, this is where AUCTeX is loaded. >> Recipe: >> >> emacs -q # + AUCTeX >> C-x b rms RET >> M-x org-mode RET >> M-: (insert "a") RET >> C-x h Are you sure that (featurep 'tex) is nil at this point? >> M-x org-export-region-as-latex RET ... if it is nil, (latex-mode) should load AUCTeX, which ultimately breaks AUCTeX due to the ignored defvar. >> # In buffer *Org LaTeX Export* >> C-c C-c ... this is where I actually get this error: >> TeX-command-master: Symbol's value as variable is void: TeX-master > I get latex errors saying it cannot find <none>.tex but no emacs > errors: [...] > Org-mode version 7.9.2 (release_7.9.2-533-g07c889 @ > /home/nick/elisp/org-mode/lisp/) > GNU Emacs 24.2.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4) of > 2012-09-21 on alphaville Org-mode version 7.9.2 (release_7.9.2-497-g8866f8) GNU Emacs 24.2.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-10-29 Thank you for your help. Regards, Christopher