[ESS] Problems in Editing Sweave Files

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

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


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

5.2.2, really?

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

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

Hmm, I think with ESS 5.2.10 

(defun Rnw-mode ()
  (require 'ess-noweb)
  (if (fboundp 'R-mode)
      (setq noweb-default-code-mode 'R-mode)))
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode))

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

    David> (defun Rnw-mode () (require 'ess-noweb) (noweb-mode)
    David> (if (fboundp 'R-mode) (setq noweb-default-code-mode
    David> 'R-mode))) (add-to-list 'auto-mode-alist
    David> '("\\.Rnw\\'" . Rnw-mode)) (add-to-list
    David> 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode))

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

    David> Can anybody help me?

    David> Thanks!

    David> David.

    David> ______________________________________________
    David> ESS-help at stat.math.ethz.ch mailing list
    David> https://stat.ethz.ch/mailman/listinfo/ess-help

More information about the ESS-help mailing list