I have a TeX file containing these few lines at the end:
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
The TeX document only consists of that file, so I want it to be the master file. When I compile it with errors, trying to debug with C-c ` opens an empty buffer on top of the compilation log buffer. I think that the top buffer should be the current file.
A dired on the top buffer however shows that it is in the non-existent folder /folder/of/my/tex/Tex Live 2012/.
I have tried changing the Tex-Master variable to the absolute path of the TeX file, but the problem stays the same.
How can I have my TeX file as the top buffer in the debugging window?
C-c `will just to the file that is having the error according to the log which may not be your main document (in case you did something in the preamble which is causing an internal error in some other package loaded later on, you are not showing code, so we will never know) – daleif Jul 17 '14 at 09:05