* Erik Frisk (2009-01-17) writes: > I have turned on source-correlation using source specials by default. My > problem is that when I load a tex-file it tries to use synctex instead > of source specials. > > That is, the first time I run LaTeX I get > > Running `LaTeX' on `test' with ``latex --synctex=1 > -interaction=nonstopmode "\input" test.tex'' > > If I turn on and off source correlation by pressing > C-c C-t C-s twice, I get the correct result > > Running `LaTeX' on `test' with ``latex -src-specials > -interaction=nonstopmode "\input" test.tex'' > > > Relevant lines in custom-set-variables are > '(TeX-source-correlate-method (quote source-specials)) > '(TeX-source-correlate-mode t)
The minor mode function will not be executed when the mode is to be activated through a customized mode variable unless the file where the minor mode is defined is :require'ed. The file would be tex.el. But loading tex.el so early will lead to other problems, e.g. AUCTeX not being activated for LaTeX files. So we should probably refrain from making TeX Source Correlate mode a global minor mode and advise the user to use something like (add-hook 'LaTeX-mode-hook (lambda () (TeX-source-correlate-mode 1))) instead of setting the mode variable. -- Ralf _______________________________________________ bug-auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-auctex
