On Friday, March 11, 2016 at 12:32:15 PM UTC-6, Bram Moolenaar wrote:
> 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()?
> 

I think the purpose is simply that you want to be able to start with a "clean 
slate" when you're debugging some problem, or doing some editing, etc. so that 
you know exactly what messages are related to your current task. Similar to 
clearing the screen in a terminal window so you don't have a lot of visual 
clutter.

Plus, if you have a lot of messages, you need to page through a bunch of cruft 
before you get to what you're interested in.

I don't see much use for editing message history. I just want to reset it, so 
that I can focus on my task at hand without sorting through a bunch of 
unrelated stuff.

But maybe I just lack imagination.

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