Just typed

:call execute("throw 1")
[error appear]

:call execute("throw 1")
[not appear]

I'm thinking, if it's executed from command-line not script or mappings, the 
errors should be displayed, I think.

On Tuesday, June 13, 2017 at 3:07:49 AM UTC+9, Bram Moolenaar wrote:
> Yasuhiro Matsumoto wrote:
> 
> > :call execute("throw 1")
> > :call execute("throw 1")
> > 
> > Exception doesn't appear after twice in screen since msg_col is always 
> > reset.
> > 
> > Maybe, something wrong in f_execute.
> > 
> >     /* "silent reg" or "silent echo x" leaves msg_col somewhere in the
> >      * line.  Put it back in the first column. */
> >     msg_col = 0;
> 
> How do you execute this?  The first throw would normally cause Vim to
> stop executing commands, thus it never gets to the second one.
> At least when this is in a script file that is sourced.
> 
> -- 
> "Space is big.  Really big.  You just won't believe how vastly hugely mind-
> bogglingly big it is.  I mean, you may think it's a long way down the
> road to the chemist, but that's just peanuts to space."
>               -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
> 
>  /// 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