[ESS] r-mode name]

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


> Stephen Eglen wrote:
...
>> 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

Argh, I should use folding-... instead of fold-...
                       ^^^
But anyway, ess-mode-hook and inferior-ess-mode do not work - the same
error "Folding error: ..." as above. Though, ess-mode works. Code I used is:

(load "folding" 'nomessage 'noerror)
(folding-mode-add-find-file-hook)

;; Specific modes
(folding-add-to-marks-list 'ess-mode "### {{{" "### }}}" " ")

I also tried with SAS file and with the above setup ### {{{ and ### }}}
work also for SAS files. However, that is not usefull there. Something like

(folding-add-to-marks-list '??? "* {{{" "* }}}" " ")

or

(folding-add-to-marks-list '??? "/* {{{" "*/ }}}" " ")

should be used, but how does one distinguish if there is a R or SAS or
anything else in the buffer under ess-mode? Not that I use SAS a lot
these days, but ...

-- 
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.
----------------------------------------------------------------------


-- 
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