Marcin Szamotulski wrote:

> On 20:02 Thu 21 Aug     , Christian Brabandt wrote:
> > 
> > On Do, 21 Aug 2014, 'Andy Wokula' via vim_dev wrote:
> > 
> > > Am 21.08.2014 um 07:49 schrieb Christian Brabandt:
> > > >Am 2014-08-20 19:03, schrieb 'Andy Wokula' via vim_dev:
> > > >>Some people expect  :1,$bd  or :%bd  to delete all buffers.
> > > >
> > > >That only works by accident, because your current buffer has more
> > > >lines than you have open buffers.
> > > >
> > > >Or saying it differently, this does not work in an empty buffer.
> > > >
> > > >So this expectation is not really valid.
> > > 
> > > Er, what you cited implies that it doesn't work at the moment
> > > (as expected (by some people (for a long time))).
> > >
> > > The idea is to make it become valid ...
> > > 
> > > >Marcin Szamotulski wrote:
> > > >>There are probably a few other commands that could benefit with a
> > > >>similar approach.
> > > 
> > > Got it?
> > 
> > Ah, I thought you wanted to keep the current behaviour, that currently 
> > %bd already does delete all buffers (but only, if your buffer has enough 
> > lines).
> 
> Hi,
> 
> So here are updated patches:
> count.patch - the counts
> argadd.patch - :argadd to be a valid command without and argument (:argadd%)

I had a look at the count patch.  I don't like the solution much.

I think it would work better to add a flag similar to NOTADD that
specifies the kind of count: window number, buffer number, etc.  That
way there is no need to pass information from where the counts are
parsed to where there is a switch on the command.  Can use
compute_count() directly.  First computing counts based on line numbers
and then redoing that for something else doesn't seem right.

The code that computes the counts looks much too complicated.

Please give the tests a name, we stopped using numbers recently.

-- 
You're as much use as a condom machine at the Vatican.
                  -- Rimmer to Holly in Red Dwarf 'Queeg'

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui