[ESS] Delete region between parens or braces

Charles C. Berry cberry at tajo.ucsd.edu
Mon Dec 3 19:30:18 CET 2007


On Wed, 28 Nov 2007, Kevin Wright wrote:

> Anybody have a function to delete everything between matching parens / braces?

Kevin,

I think this is close to what you want


13.3 Other Kill Commands
========================

[snip]

`C-M-k'
      Kill the following balanced expression (`kill-sexp').  *Note
      Expressions::.

Put point before the '{' or '(' and this will kill everthing to (and 
including) the matching '}' or ')'

If things are unbalanced, you may run into problems in _some_ modes 
killing things that you might not want to have killed. It looks like 
inferior-ess-mode handles unbalanced setups gracefully.

HTH,

Chuck


>
> Thought I would ask before trying to hack something up myself using match-paren.
>
> K Wright
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901




More information about the ESS-help mailing list