[ESS] refTeX forgets information after visiting noweb chunks

Daniel Sabanés Bové daniel.sabanesbove at campus.lmu.de
Sun Dec 16 10:17:32 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Thank you very much Michael, this works for me indeed!

(However, it considerably slows down emacs when scrolling through an
Rnw file.
So we really need a proper bug-fix to this.)

regards,
Daniel

> 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)))))
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHZO0szHZ0x5+gF9kRCguRAKCNoW9+KfYEkBzZ4rIZPlccVAfsCgCdGSs7
x6X3bqn0j2fzTt1iSrCN2mU=
=Kpa0
-----END PGP SIGNATURE-----




More information about the ESS-help mailing list