Hi Nick, On Wed, Mar 7, 2012 at 16:39, Nick Dokos <nicholas.do...@hp.com> wrote: >> In org-latex.el Tex-master is set to t to suppress auctex from asking for >> that variable while exporting with org-latex..(IIRC there was a discussion >> and >> Carsten made that change) >> >> Some how org leaving that to void at the end of org-latex export (I coundn't >> figure out how?). >> > > That sounds far-fetched to me: once TeX-master is bound, one has to go > to some lengths to unbind it (see makunbound - but I'm pretty sure > that's not used anywhere in org code - there are a few instances of the > function analog, fmakunbound). > > It seems much more likely that in these cases, it never got bound in the > first place, possibly because of dependency problems in the loading of > packages. But I cannot reproduce the problem, so I'm speaking > theoretically only and my imagination may be failing me.
I think Yagnesh is talking about this thread: <http://thread.gmane.org/gmane.emacs.orgmode/48512/focus=48526> I took a quick look at the commit (ca49e89) and the source (org-latex.el line 888), but everything looks good to me. To add more information, while exporting to latex I get the following warning when auctex site files are present. Export buffer: Exporting to LaTeX... Warning: defvar ignored because TeX-master is let-bound Making TeX-master buffer-local while let-bound! Hope this clearly explains the problem I am facing. PS: BTW, why is AUCTeX not part of Emacs? -- Suvayu Open source is the future. It sets us free.