Karsten Hopp dc52cd
To: vim_dev@googlegroups.com
Karsten Hopp dc52cd
Subject: Patch 7.4.470
Karsten Hopp dc52cd
Fcc: outbox
Karsten Hopp dc52cd
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp dc52cd
Mime-Version: 1.0
Karsten Hopp dc52cd
Content-Type: text/plain; charset=UTF-8
Karsten Hopp dc52cd
Content-Transfer-Encoding: 8bit
Karsten Hopp dc52cd
------------
Karsten Hopp dc52cd
Karsten Hopp dc52cd
Patch 7.4.470
Karsten Hopp dc52cd
Problem:    Test 11 and 100 do not work properly on Windows.
Karsten Hopp dc52cd
Solution:   Avoid using feedkeys(). (Ken Takata)
Karsten Hopp dc52cd
Files:	    src/testdir/Make_dos.mak, src/testdir/test11.in,
Karsten Hopp dc52cd
	    src/testdir/test100.in
Karsten Hopp dc52cd
Karsten Hopp dc52cd
Karsten Hopp dc52cd
*** ../vim-7.4.469/src/testdir/Make_dos.mak	2014-08-16 18:36:38.593993280 +0200
Karsten Hopp dc52cd
--- src/testdir/Make_dos.mak	2014-10-09 15:26:56.720903277 +0200
Karsten Hopp dc52cd
***************
Karsten Hopp dc52cd
*** 63,69 ****
Karsten Hopp dc52cd
  fixff:
Karsten Hopp dc52cd
  	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
Karsten Hopp dc52cd
  	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \
Karsten Hopp dc52cd
! 		dotest.in test60.ok test71.ok test74.ok
Karsten Hopp dc52cd
  
Karsten Hopp dc52cd
  report:
Karsten Hopp dc52cd
  	@echo ""
Karsten Hopp dc52cd
--- 63,69 ----
Karsten Hopp dc52cd
  fixff:
Karsten Hopp dc52cd
  	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
Karsten Hopp dc52cd
  	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \
Karsten Hopp dc52cd
! 		dotest.in test60.ok test71.ok test74.ok test100.ok
Karsten Hopp dc52cd
  
Karsten Hopp dc52cd
  report:
Karsten Hopp dc52cd
  	@echo ""
Karsten Hopp dc52cd
*** ../vim-7.4.469/src/testdir/test11.in	2010-08-08 13:16:36.000000000 +0200
Karsten Hopp dc52cd
--- src/testdir/test11.in	2014-10-09 15:34:19.588904244 +0200
Karsten Hopp dc52cd
***************
Karsten Hopp dc52cd
*** 46,58 ****
Karsten Hopp dc52cd
  :w>>test.out                    " Append it to the output file
Karsten Hopp dc52cd
  :set shelltemp                  " need temp files here
Karsten Hopp dc52cd
  :au FilterReadPre   *.out  call rename(expand("<afile>"), expand("<afile>") . ".t")
Karsten Hopp dc52cd
! :au FilterReadPre   *.out  exe '!sed s/e/E/ ' . shellescape(expand("<afile>")) . ".t >" . shellescape(expand("<afile>"))
Karsten Hopp dc52cd
! :au FilterReadPre   *.out  exe '!rm ' . shellescape(expand("<afile>")) . '.t'
Karsten Hopp dc52cd
  :au FilterReadPost  *.out  '[,']s/x/X/g
Karsten Hopp dc52cd
  :e! test.out                    " Edit the output file
Karsten Hopp dc52cd
  :23,$!cat
Karsten Hopp dc52cd
  :23,$s/\r$//                 " remove CR for when sed adds them
Karsten Hopp dc52cd
! :au! FileReadPre    *.gz   exe '!gzip -d ' . shellescape(expand("<afile>"))
Karsten Hopp dc52cd
  :au  FileReadPre    *.gz   call rename(expand("<afile>:r"), expand("<afile>"))
Karsten Hopp dc52cd
  :au! FileReadPost   *.gz   '[,']s/l/L/
Karsten Hopp dc52cd
  :$r Xtestfile.gz             " Read compressed file
Karsten Hopp dc52cd
--- 46,58 ----
Karsten Hopp dc52cd
  :w>>test.out                    " Append it to the output file
Karsten Hopp dc52cd
  :set shelltemp                  " need temp files here
Karsten Hopp dc52cd
  :au FilterReadPre   *.out  call rename(expand("<afile>"), expand("<afile>") . ".t")
Karsten Hopp dc52cd
! :au FilterReadPre   *.out  exe 'silent !sed s/e/E/ ' . shellescape(expand("<afile>")) . ".t >" . shellescape(expand("<afile>"))
Karsten Hopp dc52cd
! :au FilterReadPre   *.out  exe 'silent !rm ' . shellescape(expand("<afile>")) . '.t'
Karsten Hopp dc52cd
  :au FilterReadPost  *.out  '[,']s/x/X/g
Karsten Hopp dc52cd
  :e! test.out                    " Edit the output file
Karsten Hopp dc52cd
  :23,$!cat
Karsten Hopp dc52cd
  :23,$s/\r$//                 " remove CR for when sed adds them
Karsten Hopp dc52cd
! :au! FileReadPre    *.gz   exe 'silent !gzip -d ' . shellescape(expand("<afile>"))
Karsten Hopp dc52cd
  :au  FileReadPre    *.gz   call rename(expand("<afile>:r"), expand("<afile>"))
Karsten Hopp dc52cd
  :au! FileReadPost   *.gz   '[,']s/l/L/
Karsten Hopp dc52cd
  :$r Xtestfile.gz             " Read compressed file
Karsten Hopp dc52cd
*** ../vim-7.4.469/src/testdir/test100.in	2014-08-16 17:34:31.186128463 +0200
Karsten Hopp dc52cd
--- src/testdir/test100.in	2014-10-09 15:27:44.404903381 +0200
Karsten Hopp dc52cd
***************
Karsten Hopp dc52cd
*** 16,22 ****
Karsten Hopp dc52cd
  :new one
Karsten Hopp dc52cd
  :0put ='ONE: expecting global undolevels: 5, local undolevels: -123456 (default)'
Karsten Hopp dc52cd
  :call FillBuffer()
Karsten Hopp dc52cd
! :call feedkeys(":earlier 10\n", 't')
Karsten Hopp dc52cd
  :call UndoLevel()
Karsten Hopp dc52cd
  :set ff=unix
Karsten Hopp dc52cd
  :%w! test.out
Karsten Hopp dc52cd
--- 16,22 ----
Karsten Hopp dc52cd
  :new one
Karsten Hopp dc52cd
  :0put ='ONE: expecting global undolevels: 5, local undolevels: -123456 (default)'
Karsten Hopp dc52cd
  :call FillBuffer()
Karsten Hopp dc52cd
! :earlier 10
Karsten Hopp dc52cd
  :call UndoLevel()
Karsten Hopp dc52cd
  :set ff=unix
Karsten Hopp dc52cd
  :%w! test.out
Karsten Hopp dc52cd
***************
Karsten Hopp dc52cd
*** 24,30 ****
Karsten Hopp dc52cd
  :0put ='TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)'
Karsten Hopp dc52cd
  :setlocal ul=2
Karsten Hopp dc52cd
  :call FillBuffer()
Karsten Hopp dc52cd
! :call feedkeys(":earlier 10\n", 't')
Karsten Hopp dc52cd
  :call UndoLevel()
Karsten Hopp dc52cd
  :setlocal ul=10
Karsten Hopp dc52cd
  :call UndoLevel()
Karsten Hopp dc52cd
--- 24,30 ----
Karsten Hopp dc52cd
  :0put ='TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)'
Karsten Hopp dc52cd
  :setlocal ul=2
Karsten Hopp dc52cd
  :call FillBuffer()
Karsten Hopp dc52cd
! :earlier 10
Karsten Hopp dc52cd
  :call UndoLevel()
Karsten Hopp dc52cd
  :setlocal ul=10
Karsten Hopp dc52cd
  :call UndoLevel()
Karsten Hopp dc52cd
*** ../vim-7.4.469/src/version.c	2014-10-09 14:48:26.284898230 +0200
Karsten Hopp dc52cd
--- src/version.c	2014-10-09 15:34:43.088904296 +0200
Karsten Hopp dc52cd
***************
Karsten Hopp dc52cd
*** 743,744 ****
Karsten Hopp dc52cd
--- 743,746 ----
Karsten Hopp dc52cd
  {   /* Add new patch number below this line */
Karsten Hopp dc52cd
+ /**/
Karsten Hopp dc52cd
+     470,
Karsten Hopp dc52cd
  /**/
Karsten Hopp dc52cd
Karsten Hopp dc52cd
-- 
Karsten Hopp dc52cd
"Marriage is when a man and woman become as one; the trouble starts
Karsten Hopp dc52cd
when they try to decide which one"
Karsten Hopp dc52cd
Karsten Hopp dc52cd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp dc52cd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp dc52cd
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp dc52cd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///