[ESS] disabling C-c h bound to ess-handy-commands

Rodney Sparapani rsparapa at mcw.edu
Tue Oct 9 20:46:10 CEST 2012


On 10/09/2012 01:38 PM, Vitalie Spinu wrote:
> Sure, but would be good to free C-c C-d and C-c C-t in the next release;
> ess-dump-object-into-edit-buffer (aka edit) will move to C-c C-e C-e
> with a very similar positioning, so not a big deal. And we really need
> to put dev map on C-c C-t to free user level C-c d key.
>
>
> It occurred to me today that it might be good to make C-c C-c and C-M-x
> not to evaluate function but a complete syntactic block. For example
>
> out<- {
>    a<- 23
>
>    b<- 2*a
>
>    b^2
> }
>
>
> If the cursor is on line "b", currently C-c C-c sends only the line "b
> <- 2*a", which is most likely not what is needed.
>
> Having empty lines in code is often a good style.  So I propose to make
> C-c C-c to try to evaluate paragraph or a complete syntactic block at
> level 0, whichever is maximal. This way C-c C-p and C-c C-f are not
> anymore redundant with C-c C-c.
>
> This also nicely treat nested functions. For example C-c C-c currently
> evaluates wrong pieces in the following cases (with the cursor indicated
> by "|"):
>
> sapply(X, function(el) ... | ... )
>
> foo<- function(...){
>      local<- function(...){
>          ... | ...
>      }
> }
>
> Blockwise evaluation doesn't have this problem.
>
> Blocks also generalizes nicely to other languages, whereas
> function/defun might not.
>
>      Vitalie

Hi Vitalie:

This sounds good to me.  But, I hope we are talking about the
next release in 2013 rather than the bug-fix release which I
believe is imminent.  Thanks

PS. I am investigating GNUs; thanks for the suggestion!  But, getting
Emacs setup to send mail with eSMTP appears to be a challenge that mere
mortals are unworthy of.

-- 
Rodney Sparapani, PhD  Center for Patient Care and Outcomes Research
Sr. Biostatistician               http://www.mcw.edu/pcor
4 wheels good, 2 wheels better!   Medical College of Wisconsin (MCW)
WWLD?:  What Would Lombardi Do?   Milwaukee, WI, USA



More information about the ESS-help mailing list