Re: Patch to try out: ":unsilent"
- Matt Wozniski wrote:
> Oops, accidentally sent this to Bram off-list.Look at the stuff that Charles Campbell made.
> Bram Moolenaar wrote:
> > Matt Wozniski wrote:
> >> Bram Moolenaar wrote:
> >> >
> >> > Any comments on adding the ":unsilent" command modifier?
> >> 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.
> It just seems that it would be nicer if each plugin didn't need to
> roll its own ad-hoc logging solution. Â When something goes wrong, a
> lot of experienced vim users will instinctively check :messages to see
> if an error managed to slip by them unnoticed, so the message history
> seems like an intuitive place to do logging. Â It not only would save
> plugin authors the need to roll their own logging solution, but would
> save plugin users from having to learn which plugins do provide their
> own logging, and learning how to view the log for each.
> It's not something I feel terribly strongly about one way or the
> other, but I definitely think that extending the message history from
> it's current definition to "A list of messages that can give you
> insight about what happened recently" would be more useful.
I don't think that "uniform logging" will help, really. I mean, what's
let g:mylog = 
call add(g:mylog, "I did something!")
hundred-and-one symptoms of being an internet addict:
53. To find out what time it is, you send yourself an e-mail and check the
/// Bram Moolenaar -- Bram@... -- 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