Yasuhiro Matsumoto wrote:

> I often want to clear :messages while debuging vim plugins. So added
> ":message clear" feature. And this can display last N messages like
> below.
> 
> :messages 5
> 
> How about this?

Hmm.  We usually have a count before the command to specify a number:

        :5messages

Then you can use eap->line2.

This is more important if we want to delete a number of messages:

        :5messages clear

However, I don't see a good reason for a user to type ":messages clear",
it would perhaps be useful for a plugin (if it can't use :silent for
some reason).  But then we might be better off with a function to
manipulate the list of messages.  Perhaps you want to change a message,
or delete one before the last one?

Perhaps msg_get() and msg_set()?

-- 
How To Keep A Healthy Level Of Insanity:
6. In the memo field of all your checks, write "for sexual favors".

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