jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.450
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.450
073263
Problem:    Not all commands that edit another buffer support the +cmd
073263
	    argument.
073263
Solution:   Add the +cmd argument to relevant commands. (Marcin Szamotulski)
073263
Files:	    runtime/doc/windows.txt, src/ex_cmds.h, src/ex_docmd.c
073263
073263
073263
*** ../vim-7.4.449/runtime/doc/windows.txt	2014-03-25 13:03:44.929793765 +0100
073263
--- runtime/doc/windows.txt	2014-09-19 19:53:55.618447914 +0200
073263
***************
073263
*** 1042,1077 ****
073263
  		a number).  Insert a backslash before a space in a buffer
073263
  		name.
073263
  
073263
! :[N]b[uffer][!] [N]			*:b* *:bu* *:buf* *:buffer* *E86*
073263
  		Edit buffer [N] from the buffer list.  If [N] is not given,
073263
  		the current buffer remains being edited.  See |:buffer-!| for
073263
  		[!].  This will also edit a buffer that is not in the buffer
073263
  		list, without setting the 'buflisted' flag.
073263
  
073263
! :[N]b[uffer][!] {bufname}
073263
  		Edit buffer for {bufname} from the buffer list.  See
073263
  		|:buffer-!| for [!].  This will also edit a buffer that is not
073263
  		in the buffer list, without setting the 'buflisted' flag.
073263
  
073263
! :[N]sb[uffer] [N]					*:sb* *:sbuffer*
073263
  		Split window and edit buffer [N] from the buffer list.  If [N]
073263
  		is not given, the current buffer is edited.  Respects the
073263
  		"useopen" setting of 'switchbuf' when splitting.  This will
073263
  		also edit a buffer that is not in the buffer list, without
073263
  		setting the 'buflisted' flag.
073263
  
073263
! :[N]sb[uffer] {bufname}
073263
  		Split window and edit buffer for {bufname} from the buffer
073263
  		list.  This will also edit a buffer that is not in the buffer
073263
  		list, without setting the 'buflisted' flag.
073263
  		Note: If what you want to do is split the buffer, make a copy
073263
  		under another name, you can do it this way: >
073263
  			:w foobar | sp #
073263
  
073263
! :[N]bn[ext][!] [N]					*:bn* *:bnext* *E87*
073263
  		Go to [N]th next buffer in buffer list.  [N] defaults to one.
073263
  		Wraps around the end of the buffer list.
073263
  		See |:buffer-!| for [!].
073263
  		If you are in a help buffer, this takes you to the next help
073263
  		buffer (if there is one).  Similarly, if you are in a normal
073263
  		(non-help) buffer, this takes you to the next normal buffer.
073263
--- 1042,1082 ----
073263
  		a number).  Insert a backslash before a space in a buffer
073263
  		name.
073263
  
073263
! :[N]b[uffer][!] [+cmd] [N]		*:b* *:bu* *:buf* *:buffer* *E86*
073263
  		Edit buffer [N] from the buffer list.  If [N] is not given,
073263
  		the current buffer remains being edited.  See |:buffer-!| for
073263
  		[!].  This will also edit a buffer that is not in the buffer
073263
  		list, without setting the 'buflisted' flag.
073263
+ 		Also see ||+cmd|.
073263
  
073263
! :[N]b[uffer][!] [+cmd] {bufname}
073263
  		Edit buffer for {bufname} from the buffer list.  See
073263
  		|:buffer-!| for [!].  This will also edit a buffer that is not
073263
  		in the buffer list, without setting the 'buflisted' flag.
073263
+ 		Also see ||+cmd|.
073263
  
073263
! :[N]sb[uffer] [+cmd] [N]				*:sb* *:sbuffer*
073263
  		Split window and edit buffer [N] from the buffer list.  If [N]
073263
  		is not given, the current buffer is edited.  Respects the
073263
  		"useopen" setting of 'switchbuf' when splitting.  This will
073263
  		also edit a buffer that is not in the buffer list, without
073263
  		setting the 'buflisted' flag.
073263
+ 		Also see ||+cmd|.
073263
  
073263
! :[N]sb[uffer] [+cmd] {bufname}
073263
  		Split window and edit buffer for {bufname} from the buffer
073263
  		list.  This will also edit a buffer that is not in the buffer
073263
  		list, without setting the 'buflisted' flag.
073263
  		Note: If what you want to do is split the buffer, make a copy
073263
  		under another name, you can do it this way: >
073263
  			:w foobar | sp #
073263
+ <		Also see ||+cmd|.
073263
  
073263
! :[N]bn[ext][!] [+cmd] [N]				*:bn* *:bnext* *E87*
073263
  		Go to [N]th next buffer in buffer list.  [N] defaults to one.
073263
  		Wraps around the end of the buffer list.
073263
  		See |:buffer-!| for [!].
073263
+ 		Also see ||+cmd|.
073263
  		If you are in a help buffer, this takes you to the next help
073263
  		buffer (if there is one).  Similarly, if you are in a normal
073263
  		(non-help) buffer, this takes you to the next normal buffer.
073263
***************
073263
*** 1079,1133 ****
073263
  		the way when you're browsing code/text buffers.  The next three
073263
  		commands also work like this.
073263
  
073263
  							*:sbn* *:sbnext*
073263
! :[N]sbn[ext] [N]
073263
  		Split window and go to [N]th next buffer in buffer list.
073263
  		Wraps around the end of the buffer list.  Uses 'switchbuf'
073263
  
073263
! :[N]bN[ext][!] [N]			*:bN* *:bNext* *:bp* *:bprevious* *E88*
073263
! :[N]bp[revious][!] [N]
073263
  		Go to [N]th previous buffer in buffer list.  [N] defaults to
073263
  		one.  Wraps around the start of the buffer list.
073263
  		See |:buffer-!| for [!] and 'switchbuf'.
073263
  
073263
! :[N]sbN[ext] [N]			*:sbN* *:sbNext* *:sbp* *:sbprevious*
073263
! :[N]sbp[revious] [N]
073263
  		Split window and go to [N]th previous buffer in buffer list.
073263
  		Wraps around the start of the buffer list.
073263
  		Uses 'switchbuf'.
073263
  
073263
! 							*:br* *:brewind*
073263
! :br[ewind][!]	Go to first buffer in buffer list.  If the buffer list is
073263
  		empty, go to the first unlisted buffer.
073263
  		See |:buffer-!| for [!].
073263
  
073263
! 							*:bf* *:bfirst*
073263
! :bf[irst]	Same as ":brewind".
073263
  
073263
! 							*:sbr* *:sbrewind*
073263
! :sbr[ewind]	Split window and go to first buffer in buffer list.  If the
073263
  		buffer list is empty, go to the first unlisted buffer.
073263
  		Respects the 'switchbuf' option.
073263
  
073263
! 							*:sbf* *:sbfirst*
073263
! :sbf[irst]	Same as ":sbrewind".
073263
  
073263
! 							*:bl* *:blast*
073263
! :bl[ast][!]	Go to last buffer in buffer list.  If the buffer list is
073263
  		empty, go to the last unlisted buffer.
073263
  		See |:buffer-!| for [!].
073263
  
073263
! 							*:sbl* *:sblast*
073263
! :sbl[ast]	Split window and go to last buffer in buffer list.  If the
073263
  		buffer list is empty, go to the last unlisted buffer.
073263
  		Respects 'switchbuf' option.
073263
  
073263
! :[N]bm[odified][!] [N]				*:bm* *:bmodified* *E84*
073263
  		Go to [N]th next modified buffer.  Note: this command also
073263
  		finds unlisted buffers.  If there is no modified buffer the
073263
  		command fails.
073263
  
073263
! :[N]sbm[odified] [N]					*:sbm* *:sbmodified*
073263
  		Split window and go to [N]th next modified buffer.
073263
  		Respects 'switchbuf' option.
073263
  		Note: this command also finds buffers not in the buffer list.
073263
--- 1084,1144 ----
073263
  		the way when you're browsing code/text buffers.  The next three
073263
  		commands also work like this.
073263
  
073263
+ 
073263
  							*:sbn* *:sbnext*
073263
! :[N]sbn[ext] [+cmd] [N]
073263
  		Split window and go to [N]th next buffer in buffer list.
073263
  		Wraps around the end of the buffer list.  Uses 'switchbuf'
073263
+ 		Also see ||+cmd|.
073263
  
073263
! :[N]bN[ext][!] [+cmd] [N]		*:bN* *:bNext* *:bp* *:bprevious* *E88*
073263
! :[N]bp[revious][!] [+cmd] [N]
073263
  		Go to [N]th previous buffer in buffer list.  [N] defaults to
073263
  		one.  Wraps around the start of the buffer list.
073263
  		See |:buffer-!| for [!] and 'switchbuf'.
073263
+ 		Also see ||+cmd|.
073263
  
073263
! :[N]sbN[ext] [+cmd] [N]			*:sbN* *:sbNext* *:sbp* *:sbprevious*
073263
! :[N]sbp[revious] [+cmd] [N]
073263
  		Split window and go to [N]th previous buffer in buffer list.
073263
  		Wraps around the start of the buffer list.
073263
  		Uses 'switchbuf'.
073263
+ 		Also see ||+cmd|.
073263
  
073263
! :br[ewind][!] [+cmd]					*:br* *:brewind*
073263
! 		Go to first buffer in buffer list.  If the buffer list is
073263
  		empty, go to the first unlisted buffer.
073263
  		See |:buffer-!| for [!].
073263
  
073263
! :bf[irst] [+cmd]					*:bf* *:bfirst*
073263
! 		Same as |:brewind|.
073263
! 		Also see |+cmd|.
073263
  
073263
! :sbr[ewind] [+cmd]					*:sbr* *:sbrewind*
073263
! 		Split window and go to first buffer in buffer list.  If the
073263
  		buffer list is empty, go to the first unlisted buffer.
073263
  		Respects the 'switchbuf' option.
073263
+ 		Also see |+cmd|.
073263
  
073263
! :sbf[irst] [+cmd]					*:sbf* *:sbfirst*
073263
! 		Same as ":sbrewind".
073263
  
073263
! :bl[ast][!] [+cmd]					*:bl* *:blast*
073263
! 		Go to last buffer in buffer list.  If the buffer list is
073263
  		empty, go to the last unlisted buffer.
073263
  		See |:buffer-!| for [!].
073263
  
073263
! :sbl[ast] [+cmd]					*:sbl* *:sblast*
073263
! 		Split window and go to last buffer in buffer list.  If the
073263
  		buffer list is empty, go to the last unlisted buffer.
073263
  		Respects 'switchbuf' option.
073263
  
073263
! :[N]bm[odified][!] [+cmd] [N]			*:bm* *:bmodified* *E84*
073263
  		Go to [N]th next modified buffer.  Note: this command also
073263
  		finds unlisted buffers.  If there is no modified buffer the
073263
  		command fails.
073263
  
073263
! :[N]sbm[odified] [+cmd] [N]				*:sbm* *:sbmodified*
073263
  		Split window and go to [N]th next modified buffer.
073263
  		Respects 'switchbuf' option.
073263
  		Note: this command also finds buffers not in the buffer list.
073263
*** ../vim-7.4.449/src/ex_cmds.h	2014-09-19 19:39:30.766446025 +0200
073263
--- src/ex_cmds.h	2014-09-19 19:53:55.618447914 +0200
073263
***************
073263
*** 132,140 ****
073263
  EX(CMD_aunmenu,		"aunmenu",	ex_menu,
073263
  			EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
073263
  EX(CMD_buffer,		"buffer",	ex_buffer,
073263
! 			BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|TRLBAR),
073263
  EX(CMD_bNext,		"bNext",	ex_bprevious,
073263
! 			BANG|RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_ball,		"ball",		ex_buffer_all,
073263
  			RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_badd,		"badd",		ex_edit,
073263
--- 132,140 ----
073263
  EX(CMD_aunmenu,		"aunmenu",	ex_menu,
073263
  			EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
073263
  EX(CMD_buffer,		"buffer",	ex_buffer,
073263
! 			BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|EDITCMD|TRLBAR),
073263
  EX(CMD_bNext,		"bNext",	ex_bprevious,
073263
! 			BANG|RANGE|NOTADR|COUNT|EDITCMD|TRLBAR),
073263
  EX(CMD_ball,		"ball",		ex_buffer_all,
073263
  			RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_badd,		"badd",		ex_edit,
073263
***************
073263
*** 146,164 ****
073263
  EX(CMD_belowright,	"belowright",	ex_wrongmodifier,
073263
  			NEEDARG|EXTRA|NOTRLCOM),
073263
  EX(CMD_bfirst,		"bfirst",	ex_brewind,
073263
! 			BANG|RANGE|NOTADR|TRLBAR),
073263
  EX(CMD_blast,		"blast",	ex_blast,
073263
! 			BANG|RANGE|NOTADR|TRLBAR),
073263
  EX(CMD_bmodified,	"bmodified",	ex_bmodified,
073263
! 			BANG|RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_bnext,		"bnext",	ex_bnext,
073263
! 			BANG|RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_botright,	"botright",	ex_wrongmodifier,
073263
  			NEEDARG|EXTRA|NOTRLCOM),
073263
  EX(CMD_bprevious,	"bprevious",	ex_bprevious,
073263
! 			BANG|RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_brewind,		"brewind",	ex_brewind,
073263
! 			BANG|RANGE|NOTADR|TRLBAR),
073263
  EX(CMD_break,		"break",	ex_break,
073263
  			TRLBAR|SBOXOK|CMDWIN),
073263
  EX(CMD_breakadd,	"breakadd",	ex_breakadd,
073263
--- 146,164 ----
073263
  EX(CMD_belowright,	"belowright",	ex_wrongmodifier,
073263
  			NEEDARG|EXTRA|NOTRLCOM),
073263
  EX(CMD_bfirst,		"bfirst",	ex_brewind,
073263
! 			BANG|RANGE|NOTADR|EDITCMD|TRLBAR),
073263
  EX(CMD_blast,		"blast",	ex_blast,
073263
! 			BANG|RANGE|NOTADR|EDITCMD|TRLBAR),
073263
  EX(CMD_bmodified,	"bmodified",	ex_bmodified,
073263
! 			BANG|RANGE|NOTADR|COUNT|EDITCMD|TRLBAR),
073263
  EX(CMD_bnext,		"bnext",	ex_bnext,
073263
! 			BANG|RANGE|NOTADR|COUNT|EDITCMD|TRLBAR),
073263
  EX(CMD_botright,	"botright",	ex_wrongmodifier,
073263
  			NEEDARG|EXTRA|NOTRLCOM),
073263
  EX(CMD_bprevious,	"bprevious",	ex_bprevious,
073263
! 			BANG|RANGE|NOTADR|COUNT|EDITCMD|TRLBAR),
073263
  EX(CMD_brewind,		"brewind",	ex_brewind,
073263
! 			BANG|RANGE|NOTADR|EDITCMD|TRLBAR),
073263
  EX(CMD_break,		"break",	ex_break,
073263
  			TRLBAR|SBOXOK|CMDWIN),
073263
  EX(CMD_breakadd,	"breakadd",	ex_breakadd,
073263
***************
073263
*** 814,836 ****
073263
  EX(CMD_saveas,		"saveas",	ex_write,
073263
  			BANG|DFLALL|FILE1|ARGOPT|CMDWIN|TRLBAR),
073263
  EX(CMD_sbuffer,		"sbuffer",	ex_buffer,
073263
! 			BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|TRLBAR),
073263
  EX(CMD_sbNext,		"sbNext",	ex_bprevious,
073263
! 			RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_sball,		"sball",	ex_buffer_all,
073263
! 			RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_sbfirst,		"sbfirst",	ex_brewind,
073263
! 			TRLBAR),
073263
  EX(CMD_sblast,		"sblast",	ex_blast,
073263
! 			TRLBAR),
073263
  EX(CMD_sbmodified,	"sbmodified",	ex_bmodified,
073263
! 			RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_sbnext,		"sbnext",	ex_bnext,
073263
! 			RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_sbprevious,	"sbprevious",	ex_bprevious,
073263
! 			RANGE|NOTADR|COUNT|TRLBAR),
073263
  EX(CMD_sbrewind,	"sbrewind",	ex_brewind,
073263
! 			TRLBAR),
073263
  EX(CMD_scriptnames,	"scriptnames",	ex_scriptnames,
073263
  			TRLBAR|CMDWIN),
073263
  EX(CMD_scriptencoding,	"scriptencoding", ex_scriptencoding,
073263
--- 814,836 ----
073263
  EX(CMD_saveas,		"saveas",	ex_write,
073263
  			BANG|DFLALL|FILE1|ARGOPT|CMDWIN|TRLBAR),
073263
  EX(CMD_sbuffer,		"sbuffer",	ex_buffer,
073263
! 			BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|EDITCMD|TRLBAR),
073263
  EX(CMD_sbNext,		"sbNext",	ex_bprevious,
073263
! 			RANGE|NOTADR|COUNT|EDITCMD|TRLBAR),
073263
  EX(CMD_sball,		"sball",	ex_buffer_all,
073263
! 			RANGE|NOTADR|COUNT|EDITCMD|TRLBAR),
073263
  EX(CMD_sbfirst,		"sbfirst",	ex_brewind,
073263
! 			EDITCMD|TRLBAR),
073263
  EX(CMD_sblast,		"sblast",	ex_blast,
073263
! 			EDITCMD|TRLBAR),
073263
  EX(CMD_sbmodified,	"sbmodified",	ex_bmodified,
073263
! 			RANGE|NOTADR|COUNT|EDITCMD|TRLBAR),
073263
  EX(CMD_sbnext,		"sbnext",	ex_bnext,
073263
! 			RANGE|NOTADR|COUNT|EDITCMD|TRLBAR),
073263
  EX(CMD_sbprevious,	"sbprevious",	ex_bprevious,
073263
! 			RANGE|NOTADR|COUNT|EDITCMD|TRLBAR),
073263
  EX(CMD_sbrewind,	"sbrewind",	ex_brewind,
073263
! 			EDITCMD|TRLBAR),
073263
  EX(CMD_scriptnames,	"scriptnames",	ex_scriptnames,
073263
  			TRLBAR|CMDWIN),
073263
  EX(CMD_scriptencoding,	"scriptencoding", ex_scriptencoding,
073263
*** ../vim-7.4.449/src/ex_docmd.c	2014-09-09 12:21:57.716501404 +0200
073263
--- src/ex_docmd.c	2014-09-19 19:53:55.622447914 +0200
073263
***************
073263
*** 5135,5140 ****
073263
--- 5135,5142 ----
073263
  	    goto_buffer(eap, DOBUF_CURRENT, FORWARD, 0);
073263
  	else
073263
  	    goto_buffer(eap, DOBUF_FIRST, FORWARD, (int)eap->line2);
073263
+ 	if (eap->do_ecmd_cmd != NULL)
073263
+ 	    do_cmdline_cmd(eap->do_ecmd_cmd);
073263
      }
073263
  }
073263
  
073263
***************
073263
*** 5147,5152 ****
073263
--- 5149,5156 ----
073263
      exarg_T	*eap;
073263
  {
073263
      goto_buffer(eap, DOBUF_MOD, FORWARD, (int)eap->line2);
073263
+     if (eap->do_ecmd_cmd != NULL)
073263
+ 	do_cmdline_cmd(eap->do_ecmd_cmd);
073263
  }
073263
  
073263
  /*
073263
***************
073263
*** 5158,5163 ****
073263
--- 5162,5169 ----
073263
      exarg_T	*eap;
073263
  {
073263
      goto_buffer(eap, DOBUF_CURRENT, FORWARD, (int)eap->line2);
073263
+     if (eap->do_ecmd_cmd != NULL)
073263
+ 	do_cmdline_cmd(eap->do_ecmd_cmd);
073263
  }
073263
  
073263
  /*
073263
***************
073263
*** 5171,5176 ****
073263
--- 5177,5184 ----
073263
      exarg_T	*eap;
073263
  {
073263
      goto_buffer(eap, DOBUF_CURRENT, BACKWARD, (int)eap->line2);
073263
+     if (eap->do_ecmd_cmd != NULL)
073263
+ 	do_cmdline_cmd(eap->do_ecmd_cmd);
073263
  }
073263
  
073263
  /*
073263
***************
073263
*** 5184,5189 ****
073263
--- 5192,5199 ----
073263
      exarg_T	*eap;
073263
  {
073263
      goto_buffer(eap, DOBUF_FIRST, FORWARD, 0);
073263
+     if (eap->do_ecmd_cmd != NULL)
073263
+ 	do_cmdline_cmd(eap->do_ecmd_cmd);
073263
  }
073263
  
073263
  /*
073263
***************
073263
*** 5195,5200 ****
073263
--- 5205,5212 ----
073263
      exarg_T	*eap;
073263
  {
073263
      goto_buffer(eap, DOBUF_LAST, BACKWARD, 0);
073263
+     if (eap->do_ecmd_cmd != NULL)
073263
+ 	do_cmdline_cmd(eap->do_ecmd_cmd);
073263
  }
073263
  #endif
073263
  
073263
*** ../vim-7.4.449/src/version.c	2014-09-19 19:39:30.766446025 +0200
073263
--- src/version.c	2014-09-19 19:54:39.442448010 +0200
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     450,
073263
  /**/
073263
073263
-- 
073263
hundred-and-one symptoms of being an internet addict:
073263
166. You have been on your computer soo long that you didn't realize
073263
     you had grandchildren.
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///