[ESS] Problems in Editing Sweave Files

Martin Maechler maechler at stat.math.ethz.ch
Tue Sep 20 13:42:28 CEST 2005


>>>>> "MM" == Martin Maechler <maechler at stat.math.ethz.ch>
>>>>>     on Tue, 20 Sep 2005 13:37:25 +0200 writes:

>>>>> "David" == David Meyer <david.meyer at wu-wien.ac.at>
>>>>>     on Mon, 19 Sep 2005 15:33:40 +0200 writes:

    MM> 	  ..............

    David> I am using GNU Emacs 21.4.1 and ESS 5.2.2. on gentoo
    David> linux.

    MM> 5.2.2, really?

    MM> Can you try to get 5.2.10 instead; it could well change
    MM> some of the problems; though probably not all.



    David> I am using the following in my .emacs-file:

    MM> Hmm, I think with ESS 5.2.10
... oops!
pressed the "Send" key-sequence too quickly.

I wanted to say that I wondered about the need for Rnw-mode
at least for ESS 5.2.10. 

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

    David> (add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
    David> (add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode))

    David> (setq reftex-file-extensions
    David>    '(("Snw" "Rnw" "nw" "tex" ".tex" ".ltx") ("bib" ".bib")))
    David> (setq TeX-file-extensions
    David>    '("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))

    David> Can anybody help me?

    David> Thanks!




More information about the ESS-help mailing list