[ESS] FW: Setting LaTeX mode in Rnw files

Gorjanc Gregor Gregor.Gorjanc at bfro.uni-lj.si
Sun Jul 10 13:44:14 CEST 2005


> On 10/07/05, Gorjanc Gregor <Gregor.Gorjanc at bfro.uni-lj.si> wrote:
>> Hello!
>> 
>> I use Emacs (21.3.1) and ESS (5.2.6) for editing Rnw files and I really
>> like it. However, sometimes mode assignments fail to follow me. To be more
>> specific Emacs sometimes fails to change to LaTeX mode, when I swicth
>> from R code. Therefore, font-locking does not work properly anymore.
>> It's really not a big deal and I do not know what I do in details that
>> this happens. Does anybody have an idea?
>> 
>> Is it possible to assign which mode one wants to use if one finds itself
>> in a situation like this?

> Dave wrote:
> Do you mean that as you move through a Rnw file (e.g. with downarrow)
> you are sometimes in an R code chunk but you have LaTeX mode? I used
> to see this occasionally and I think I usually resolved it by M-n C-l
> which runs noweb-update-chunk-vector. I am now running ESS 5.2.8 and I
> don't recall seeing this recently.

Dave, yes usually this happens when I move downwards, but since font-locking
is not done right a way, I usually notice this later and as I said it is hard
to tell what was the sequence that caused this behaviour. I will try with
'noweb-update-chunk-vector' and will report if this solves my problem.

Thanks, Gregor




More information about the ESS-help mailing list