[ESS] R code folding with hideshow-org.el

Short, Tom TShort at epri.com
Thu Apr 2 18:43:02 CEST 2009


> -----Original Message-----
> From: Stephen Eglen [mailto:S.J.Eglen at damtp.cam.ac.uk] 
> Sent: Thursday, April 02, 2009 11:55 AM
> To: Short, Tom
> Cc: ess-help at stat.math.ethz.ch; shane at gnufoo.org
> Subject: Re: [ESS] R code folding with hideshow-org.el
>  
...
> If I hit TAB, it works only if my cursor is near {, rather than at the
> start of the line.

I get the same results upon collapse. Luckily unfold works okay
anywhere on the line. It's a bit easier to initiate the fold on 
the 2nd line of the function.
  
> Also, in the following, should the comment regexp be a hash, rather
than
> C's standard /*  ... */ notation?
>  
> (add-to-list 'hs-special-modes-alist
>              '(ess-mode "{" "}" "/[*/]" nil
>                hs-c-like-adjust-block-beginning))
>  

Probably, but I don't know regex or hideshow well enough to mess
with it.

- Tom




More information about the ESS-help mailing list