Matt Wozniski wrote:

> On Wed, Jul 1, 2009 at 12:55 PM, Bram Moolenaar wrote:
> >
> > Any comments on adding the ":unsilent" command modifier?
> 
> It seems like a good idea, if only for the symmetry.  Any chance for
> another change to how :silent works, though, while we're at it?  I'd
> find it very useful in my own scripts if
> 
>     :silent echomsg "hello"
> 
> could be used to write a message to the :messages log without
> displaying it to the screen.  I was surprised when I found out that
> this didn't work, but of course in retrospect that would have required
> that :echomsg have been special-cased in the code.  Maybe we could add
> a :msgonly modifier that behaves like :silent but does add to the
> message history?

The message history is to store displayed messages.  If a message isn't
displayed then it should not be in the history.

If you want to log some things to see what your plugin is doing you can
use a global List and append to that.

-- 
The real
trick is
this: to
keep the
lines as
short as
possible
and keep
the size
the same
yet free
from the
need for
hyphena-
Dammit!!  (Matthew Winn)

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui