[ESS] r-mode name

Gregor Gorjanc gregor.gorjanc at bfro.uni-lj.si
Tue Jul 25 13:15:21 CEST 2006

Stephen Eglen wrote:
>  > I would like to set the folding characters for R code and the
>  > corresponding lisp code for sh-mode is
>  > 
>  > (fold-add-to-marks-list 'sh-mode "# {{{" "# }}}" " ")
>  > 
>  > This is very very similar to R (I would just use ## or ###). Anyway, I
>  > need to know the mode name that is used for R. When I launch C-h m
>  > (describe modes) I only see EES[S], but I can not put that into above
>  > lisp code. So there are two modes i.e. inferior-ess-mode and ess-mode.
>  > Can you please point to the differences or relevant documentation on
>  > this. I would like to know (without trial and error method ;)) which
>  > mode should I use for above customization?
> Try ess-mode-hook and let us know what happens!

I did and when I tried to visit R file with

## Local variables:
## folded-file: t
## end:

I got the following error in the modeline

Folding error: mode is not in `folding-mode-marks-alist'

If I used ess-mode or inferior-ess-mode I got the following error in
Messages buffer after reloading the .emacs file

Symbol's function definition is void: fold-add-to-marks-list

Lep pozdrav / With regards,
    Gregor Gorjanc

University of Ljubljana     PhD student
Biotechnical Faculty
Zootechnical Department     URI: http://www.bfro.uni-lj.si/MR/ggorjan
Groblje 3                   mail: gregor.gorjanc <at> bfro.uni-lj.si

SI-1230 Domzale             tel: +386 (0)1 72 17 861
Slovenia, Europe            fax: +386 (0)1 72 17 888

"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.

More information about the ESS-help mailing list