Hi Tim!

-------- Original-Nachricht --------
> Datum: Tue, 18 Jan 2011 08:44:24 -0600
> Von: Tim Chase <[email protected]>
> An: [email protected]
> CC: Dennis Benzinger <[email protected]>
> Betreff: Re: Remove one call from nested function calls?

> On 01/18/2011 08:23 AM, Dennis Benzinger wrote:
> > How can I remove one call from nested function calls?
> >
> > For example if I want to remove the call to function b from
> > a(b(c(1), 2), 3) so that I get either a(3) (Deleting the call and the
> > parameters) or a(c(1), 2, 3) (Deleting only the call and keeping the
> > parameters).
> 
> Can the nested-call be at any parameter position such as
> 
>    a(1, b(c(2), 3))

Yes.
 
> and can the nested function calls appear multiple times:
> 
>    a(b(c(2), 3), b(c(4), 5))

Yes.

> and can the nested function calls be arbitrarily deep:
> 
>    a(b(c(d(e(f(42, 1), 2), 3), 4), 5)
> 
> (and in this case which/how-many should be removed?)
> [...]

Yes, the nesting can be arbitrarily deep.

I wasn't looking for an automated solution to remove the call in a whole
file. I want to put the cursor on one call (e.g. b) and press some magic
key to remove the call and possibly its parameters.


Thanks for your help,
Dennis Benzinger

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to