[ESS-bugs] new bug: Sweave not connecting to R correctly: value of `ess-dialect' is nil

Vitalie Spinu spinuvit at gmail.com
Tue Oct 2 19:23:56 CEST 2012


  >> Martin Maechler <maechler at stat.math.ethz.ch>
  >> on Tue, 2 Oct 2012 18:43:55 +0200 wrote:


  MM> If you try  'M-n s'  again you get the infamous 
  MM> error message 
  MM>       "Local value of `ess-dialect' is nil"

  MM> and that's why this bug is related to the other bug I reported
  MM> on Sunday.


[...]


  MM> I'm sure this is not hard to fix.. 

Yes, patched in trunk by most straightforward (setq ess-dialect "R") in
ess-noweb-mode. 

[...]

  MM> This means that we should still fix small bugs, add small
  MM> features, but *not* start a major rewrite (eg. of noweb)
  MM> in the SVN trunk, till then. If you want to, either create an
  MM> svn branch, or a git one, or restrain till after release of 12.09-1.


I have renamed only the main noweb-mode and noweb-font-lock variables
into ess-* counterparts in 12.09. Now I realized that it was a half
measure and it would be good to rename all noweb-* variables into
ess-noweb-*. If people don't mind I will do that for the bug fix
release.

Also, there is a variable:

   noweb-font-lock-max-initial-chunks is a variable defined in `ess-noweb-font-lock-mode.el'.
   Its value is 2
   
   Documentation:
   Maximum number of chunks to fontify initially.
   If nil, will fontify the entire buffer when
   noweb-font-lock-initial-fontify-buffer is called
   

I suggest setting it to a larger number (30?). With current computers
it's a fraction of a second anyways. Otherwise most of the Rnw buffer is
unfontified at the beginning, which is pretty annoying.

    Vitalie



More information about the ESS-bugs mailing list