Jakson Alves de Aquino wrote:

> With the following in my vimrc
> 
> set debug=msg,throw
> 
> the function bufwinnr() generates E94 if the buffer does not
> exist. Example:
> 
> :echo bufwinnr("nothing")
> 
> Is it correct to raise an error in this case? I think that there
> should be no error because when the buffer does not exist the
> function returns a predefined value (-1) that can be checked in
> scripts.

This happens because you have put "msg" in 'debug'.  Docs:

        msg     Error messages that would otherwise be omitted will be given
                anyway.



-- 
A salesperson says:            Translation:
"backward compatible"          Old technology
"Premium"                      Overpriced
"Can't keep it on the shelf"   Unavailable
"Stands alone"                 Piece of shit
"Proprietary"                  Incompatible
                                (Scott Adams - The Dilbert principle)

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