tags:

views:

93

answers:

1

Hello,

When editing an Rnw file in Emacs, I often want to make the region cover a chunk of text that contains an R chunk. For a simple example,

ewr
<<>>=
@ 
wer

I use transient-mark-mode such that the region is highlighted. But, if I put the point on the first line and hit C-SPC, then use C-n to move the point down, the highlighting disappears when I try to advance the point past the <<. The region I want is still selected, but highlighting seems to fail when crossing the <<. How can I fix this?

Thanks and best regards

A: 

I find that your problem shows up when I do what you describe, but it goes away if you scroll down using C- or C-M-n instead. I think you can even use C- to get past the R chunk and then C-n to step past lines afterward.

Fojtasek