Short, Tom | 2 Apr 2009 18:43

Re: R code folding with hideshow-org.el


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

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


Gmane