2014年1月6日月曜日 14時19分44秒 UTC+9 Bram Moolenaar:
> Shougo wrote:
>
>
>
> > I created the patch for adding option to disable insert completion message
> > in
>
> > shortmess.
>
> > Because, the completion message is not useful for powered users.
>
> > But it clears previous command line messages and flicks command line.
>
> > So I think this message can be disabled like other messages by option.
>
>
>
> Thanks. I think the help for the flag needs some more explanation. An
>
> example would be best.
>
>
>
>
>
> --
>
> To be rich is not the end, but only a change of worries.
>
>
>
> /// 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 ///
Thank you for the reply.
I improved the documentation in the patch.
----------------------------------------------------------------------------------------
"Why your name is Dark?"
"Because, My Vim is not light powered(the light is not customized by plugins)."
"It is Dark power, fufufufu..."
Dark Vim Master(暗黒美夢王/Uncock Vim Awe) Shougo / My Vim is Dark(neo-plugins)
powered.
----------------------------------------------------------------------------------------
--
--
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/groups/opt_out.
diff -r 462a4499f9c6 runtime/doc/options.txt
--- a/runtime/doc/options.txt Fri Nov 29 14:24:42 2013 +0900
+++ b/runtime/doc/options.txt Fri Nov 29 18:07:09 2013 +0900
@@ -6259,6 +6259,8 @@
A don't give the "ATTENTION" message when an existing swap file
is found.
I don't give the intro message when starting Vim |:intro|.
+ c don't give the |ins-completion-menu| message. It clears the
+ previous command line messages and flicks the command line.
+ This flag may be useful for auto completion users.
This gives you the opportunity to avoid that a change between buffers
requires you to hit <Enter>, but still gives as useful a message as
diff -r 462a4499f9c6 src/edit.c
--- a/src/edit.c Fri Nov 29 14:24:42 2013 +0900
+++ b/src/edit.c Fri Nov 29 18:07:09 2013 +0900
@@ -3878,7 +3878,8 @@
ins_compl_free();
compl_started = FALSE;
compl_matches = 0;
- msg_clr_cmdline(); /* necessary for "noshowmode" */
+ if (!shortmess(SHM_COMPLETIONMENU))
+ msg_clr_cmdline(); /* necessary for "noshowmode" */
ctrl_x_mode = 0;
compl_enter_selects = FALSE;
if (edit_submode != NULL)
@@ -5333,7 +5334,8 @@
{
ctrl_x_mode = 0;
edit_submode = NULL;
- msg_clr_cmdline();
+ if (!shortmess(SHM_COMPLETIONMENU))
+ msg_clr_cmdline();
return FAIL;
}
@@ -5594,12 +5596,12 @@
showmode();
if (edit_submode_extra != NULL)
{
- if (!p_smd)
+ if (!p_smd && !shortmess(SHM_COMPLETIONMENU))
msg_attr(edit_submode_extra,
edit_submode_highl < HLF_COUNT
? hl_attr(edit_submode_highl) : 0);
}
- else
+ else if (!shortmess(SHM_COMPLETIONMENU))
msg_clr_cmdline(); /* necessary for "noshowmode" */
/* Show the popup menu, unless we got interrupted. */
diff -r 462a4499f9c6 src/option.h
--- a/src/option.h Fri Nov 29 14:24:42 2013 +0900
+++ b/src/option.h Fri Nov 29 18:07:09 2013 +0900
@@ -212,7 +212,8 @@
#define SHM_SEARCH 's' /* no search hit bottom messages */
#define SHM_ATTENTION 'A' /* no ATTENTION messages */
#define SHM_INTRO 'I' /* intro messages */
-#define SHM_ALL "rmfixlnwaWtToOsAI" /* all possible flags for 'shm' */
+#define SHM_COMPLETIONMENU 'c' /* completion menu messages */
+#define SHM_ALL "rmfixlnwaWtToOsAIc" /* all possible flags for 'shm' */
/* characters for p_go: */
#define GO_ASEL 'a' /* autoselect */
diff -r 462a4499f9c6 src/screen.c
--- a/src/screen.c Fri Nov 29 14:24:42 2013 +0900
+++ b/src/screen.c Fri Nov 29 18:07:09 2013 +0900
@@ -9704,7 +9704,8 @@
}
#endif
#ifdef FEAT_INS_EXPAND
- if (edit_submode != NULL) /* CTRL-X in Insert mode */
+ /* CTRL-X in Insert mode */
+ if (edit_submode != NULL && !shortmess(SHM_COMPLETIONMENU))
{
/* These messages can get long, avoid a wrap in a narrow
* window. Prefer showing edit_submode_extra. */