[ESS] Noweb problem after upgrade to ESS 12.09

Vitalie Spinu spinuvit at gmail.com
Fri Oct 12 12:38:00 CEST 2012


  >> ottorino <ottorino-luca.pantani at unifi.it>
  >> on Fri, 12 Oct 2012 12:09:52 +0200 wrote:

  >> 
  >> Our noweb was renamed into ess-noweb-mode to avoid conflicts with the
  >> real noweb-mode (see new features in the announcement). Remove all the
  >> occurrences of noweb-mode in your .emacs and it should be ok.
  >> 
  >> Vitalie

Moreover all other noweb-* functions and variables will be renamed into
ess-noweb-* counterparts int he next patch release 12.09.1. So keep in
mind to rename all of noweb-* occurrences in your .emacs. 

  > Here are the lines in my .emacs file in which is written "noweb"

  >  (defun Rnw-mode ()
  >    (require 'ess-noweb)
  >    (noweb-mode)
  >    (if (fboundp 'R-mode)
  >        (setq noweb-default-code-mode 'R-mode)))

This lines are not necessary. Rnw-mode is defined in ESS and you better
not redefine it. Where did you get this idea from? If it's some public
wiki place, then it should be deleted.

  > I can see the 'M-x noweb-describe-mode' but there's no 
  > 'M-x noweb-font-lock-describe-mode'. 
  > The only modes are:

This command was not there before, why would you need it?

  > On 'M-n-s' 
  > (that is "process this file with Sweave")
  > in the buffer 'messages' I get:

It's not M-n-s it's "M-n s".  And what do you mean, that you cannot make
it work?

Do C-h k M-n s  and see what M-n s is bound to. It should be
ess-swv-weave.

Try M-x ess-swv-weave and see if it work. 


  > Finally I tried to comment out all the lines in my .emacs like this
  >> ;;  (defun Rnw-mode ()
  >> ;;   (require 'ess-noweb)
  >> ;;   (ess-noweb-mode)
  >> ;;   (if (fboundp 'R-mode)
  >> ;;       (setq noweb-default-code-mode 'R-mode)))

This is the way to go. 

    Vitalie



More information about the ESS-help mailing list