Re: [Patch] Add option to disable insert completion message in shortmess

2015-02-05 Fir de Conversatie Daniel Hahler
Am Montag, 26. Januar 2015 19:34:55 UTC+1 schrieb Christian Brabandt:
> Hi James!
> 
> On Mo, 26 Jan 2015, James Brown wrote:
> 
> [patch from December 2013]
> > +1
> 
> If  I am not mistaken this patch has already been merged...

Yes, it has been merged in / as 7.4.314 (on Wed May 28 21:40:52 2014 +0200).


Regards,
Daniel.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Patch] Add option to disable insert completion message in shortmess

2015-01-26 Fir de Conversatie Christian Brabandt
Hi James!

On Mo, 26 Jan 2015, James Brown wrote:

[patch from December 2013]
> +1

If  I am not mistaken this patch has already been merged...

Best,
Christian
-- 
Wie der stille See seinen dunklen Grund in der tiefen Quelle hat, so
hat die Liebe eines Menschen ihren rätselhaften Grund in Gottes Licht.
-- Søren Kierkegaard

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Patch] Add option to disable insert completion message in shortmess

2015-01-26 Fir de Conversatie James Brown
On Tuesday, December 31, 2013 at 6:01:55 AM UTC-6, Shougo wrote:
> Hi, Bram.
> 
> 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.
> 
> 
> "Why do you use Vim?"
> "Because, Vim is avalable."
> 
> Dark Vim Master(暗黒美夢王/Uncock Vim Awe) Shougo / My Vim is Dark(neo-plugins) 
> powered.
> 

+1

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-05-25 Fir de Conversatie Pedro Ferrari
On Friday, May 2, 2014 11:31:24 AM UTC-3, Tyler Brock wrote:
> On Wednesday, April 2, 2014 11:07:34 AM UTC-4, skeept wrote:
> > I would like to see this patch merge as well.
> 
> Yep, YouCompleteMe would work much better with this.

+1

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-05-02 Fir de Conversatie Tyler Brock
On Wednesday, April 2, 2014 11:07:34 AM UTC-4, skeept wrote:
> I would like to see this patch merge as well.

Yep, YouCompleteMe would work much better with this.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-04-02 Fir de Conversatie skeept
I would like to see this patch merge as well.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-04-01 Fir de Conversatie Fhoxh
+1

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-03-27 Fir de Conversatie Philipp Fehre
Hope this is moving along, would be really nice to get this into master. 

On Saturday, January 11, 2014 5:00:55 PM UTC+1, Shougo wrote:
> 2014年1月12日日曜日 0時25分42秒 UTC+9 mattn:
> 
> > > Thank you for Mr.Bram.
> 
> > > I fixed my patch. Because, I had mistake line number in patch...
> 
> > > This is minor fix.
> 
> > 
> 
> > Probably, you forgot to attach the patch.
> 
> 
> 
> Thanks. I forgot it...

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-03-07 Fir de Conversatie Karl Yngve Lervåg
On Saturday, January 11, 2014 5:00:55 PM UTC+1, Shougo wrote:
> 2014年1月12日日曜日 0時25分42秒 UTC+9 mattn:
> 
> > > Thank you for Mr.Bram.
> 
> > > I fixed my patch. Because, I had mistake line number in patch...
> 
> > > This is minor fix.
> 
> > 
> 
> > Probably, you forgot to attach the patch.
> 
> 
> 
> Thanks. I forgot it...

+1

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-02-24 Fir de Conversatie Eliseo Martínez
+1 to this. 

On Tuesday, December 31, 2013 1:01:55 PM UTC+1, Shougo wrote:
> Hi, Bram.
> 
> 
> 
> 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.
> 
> 
> 
> 
> 
> "Why do you use Vim?"
> 
> "Because, Vim is avalable."
> 
> 
> 
> 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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-02-16 Fir de Conversatie Holger Rapp
+1 - this would be really useful to have.

On Wednesday, February 12, 2014 10:43:22 PM UTC+1, Tyler Brock wrote:
> BUMP! This would be great to have for you complete me.
> 
> 
> 
> On Saturday, January 11, 2014 11:00:55 AM UTC-5, Shougo wrote:
> 
> > 2014年1月12日日曜日 0時25分42秒 UTC+9 mattn:
> 
> > 
> 
> > > > Thank you for Mr.Bram.
> 
> > 
> 
> > > > I fixed my patch. Because, I had mistake line number in patch...
> 
> > 
> 
> > > > This is minor fix.
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Probably, you forgot to attach the patch.
> 
> > 
> 
> > 
> 
> > 
> 
> > Thanks. I forgot it...

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-02-12 Fir de Conversatie Tyler Brock
BUMP! This would be great to have for you complete me.

On Saturday, January 11, 2014 11:00:55 AM UTC-5, Shougo wrote:
> 2014年1月12日日曜日 0時25分42秒 UTC+9 mattn:
> 
> > > Thank you for Mr.Bram.
> 
> > > I fixed my patch. Because, I had mistake line number in patch...
> 
> > > This is minor fix.
> 
> > 
> 
> > Probably, you forgot to attach the patch.
> 
> 
> 
> Thanks. I forgot it...

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-01-11 Fir de Conversatie Shougo
2014年1月12日日曜日 0時25分42秒 UTC+9 mattn:
> > Thank you for Mr.Bram.
> > I fixed my patch. Because, I had mistake line number in patch...
> > This is minor fix.
> 
> Probably, you forgot to attach the patch.

Thanks. I forgot it...

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
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,9 @@
 	  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.  For example,
+		"-- XXX completion (YYY)", "match 1 of 2", "The only match",
+		"Pattern not found", "Back at original", etc.
 
 	This gives you the opportunity to avoid that a change between buffers
 	requires you to hit , 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. */


Re: [Patch] Add option to disable insert completion message in shortmess

2014-01-11 Fir de Conversatie mattn
> Thank you for Mr.Bram.
> I fixed my patch. Because, I had mistake line number in patch...
> This is minor fix.

Probably, you forgot to attach the patch.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-01-10 Fir de Conversatie Shougo
2014年1月7日火曜日 14時21分26秒 UTC+9 Bram Moolenaar:
> Shougo Matsu wrote:
> 
> 
> 
> > Sorry, I get it. I fixed the description.
> 
> 
> 
> Thanks!
> 
> 
> 
> -- 
> 
> hundred-and-one symptoms of being an internet addict:
> 
> 117. You are more comfortable typing in html.
> 
> 
> 
>  /// Bram Moolenaar -- b...@moolenaar.net -- 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 Mr.Bram.
I fixed my patch. Because, I had mistake line number in patch...
This is minor fix.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-01-06 Fir de Conversatie Bram Moolenaar

Shougo Matsu wrote:

> Sorry, I get it. I fixed the description.

Thanks!

-- 
hundred-and-one symptoms of being an internet addict:
117. You are more comfortable typing in html.

 /// Bram Moolenaar -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-01-06 Fir de Conversatie Shougo
2014年1月6日月曜日 22時52分34秒 UTC+9 Bram Moolenaar:
> Shougo wrote:
> 
> 
> 
> > Thank you for the reply.
> 
> > I improved the documentation in the patch.
> 
> 
> 
> [...]
> 
> 
> 
> > 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.
> 
> 
> 
> I think most users don't know what message that is. It's something like
> 
> "Keyword completion, match 1 of N", right?  I think giving a literal
> 
> example is beter than trying to describe it.
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> hundred-and-one symptoms of being an internet addict:
> 
> 111. You and your friends get together regularly on IRC, even though
> 
>  all of you live in the same city.
> 
> 
> 
>  /// Bram Moolenaar -- b...@moolenaar.net -- 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///

Sorry, I get it. I fixed the description.


"My turn, load. Fufufufu..., it is victory time!"
"I install neo-complete plugin to Vim. And I enable installed plugin's features!
It increases Vim's battle power by half."
"neo-complete-flash!"

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 vim_dev+unsubscr...@googlegroups.com.
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.  For example,
+		"-- XXX completion (YYY)", "match 1 of 2", "The only match",
+		"Pattern not found", "Back at original", etc.
 
 	This gives you the opportunity to avoid that a change between buffers
 	requires you to hit , 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 nar

Re: [Patch] Add option to disable insert completion message in shortmess

2014-01-06 Fir de Conversatie Bram Moolenaar

Shougo wrote:

> Thank you for the reply.
> I improved the documentation in the patch.

[...]

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

I think most users don't know what message that is. It's something like
"Keyword completion, match 1 of N", right?  I think giving a literal
example is beter than trying to describe it.



-- 
hundred-and-one symptoms of being an internet addict:
111. You and your friends get together regularly on IRC, even though
 all of you live in the same city.

 /// Bram Moolenaar -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-01-06 Fir de Conversatie Shougo
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 -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com.
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 , 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. */


Re: [Patch] Add option to disable insert completion message in shortmess

2014-01-05 Fir de Conversatie 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 -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Patch] Add option to disable insert completion message in shortmess

2014-01-05 Fir de Conversatie Amadeus Demarzi
I would love to see this added.  I find those messages to be quite irritating 
when using a lot of autocomplete.

On Tuesday, December 31, 2013 4:01:55 AM UTC-8, Shougo wrote:
> Hi, Bram.
> 
> 
> 
> 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.
> 
> 
> 
> 
> 
> "Why do you use Vim?"
> 
> "Because, Vim is avalable."
> 
> 
> 
> 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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Patch] Add option to disable insert completion message in shortmess

2013-12-31 Fir de Conversatie Shougo
Hi, Bram.

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.


"Why do you use Vim?"
"Because, Vim is avalable."

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 vim_dev+unsubscr...@googlegroups.com.
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 completion menu message (See
+		|ins-completion-menu|).
 
 	This gives you the opportunity to avoid that a change between buffers
 	requires you to hit , 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. */