[ESS] refTeX forgets information after visiting noweb chunks

Michael Hoffman b3i4old02 at sneakemail.com
Sat Dec 8 20:29:04 CET 2007


Michael Hoffman wrote:
> Daniel Sabanés Bové wrote:
> 
>> When I visit the Rnw-file, everything is fine in the beginning, i.e.
>> refTeX knows the master file and shows me a correct table of contents (toc)
>> with all chapters in all files.
>>
>> If I then navigate to a noweb chunk with R code in ESS mode and come back
>> to the LaTeX (or Rnw) mode, refTeX has forgotten the master file.
> 
> This is a symptom of the issue I have reported here:
> 
> https://stat.ethz.ch/pipermail/ess-bugs/2007q4/000428.html
> 
>> This can be resolved by resetting AUCTeX via the menu
>> LaTeX - Multifile/Parsing - Reset AUCTeX (or C-u C-c C-n).

I think you might be able to automate this workaround with:

   (add-hook 'noweb-select-doc-mode-hook
             '(lambda ()
                (unless (boundp 'in-noweb-select-doc-mode-hook)
                  (let* ((in-noweb-select-doc-mode-hook t))
                    (TeX-normal-mode t)))))




More information about the ESS-help mailing list