Karsten Hopp 3ad654
To: vim_dev@googlegroups.com
Karsten Hopp 3ad654
Subject: Patch 7.3.818
Karsten Hopp 3ad654
Fcc: outbox
Karsten Hopp 3ad654
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 3ad654
Mime-Version: 1.0
Karsten Hopp 3ad654
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 3ad654
Content-Transfer-Encoding: 8bit
Karsten Hopp 3ad654
------------
Karsten Hopp 3ad654
Karsten Hopp 3ad654
Patch 7.3.818
Karsten Hopp 3ad654
Problem:    When test 40 fails because of a bad build it may leave files
Karsten Hopp 3ad654
	    behind that cause it to fail later.
Karsten Hopp 3ad654
Solution:   Let the file names start with "X".
Karsten Hopp 3ad654
Files:	    src/testdir/test40.in
Karsten Hopp 3ad654
Karsten Hopp 3ad654
Karsten Hopp 3ad654
*** ../vim-7.3.817/src/testdir/test40.in	2010-08-15 21:57:29.000000000 +0200
Karsten Hopp 3ad654
--- src/testdir/test40.in	2013-02-14 20:56:45.000000000 +0100
Karsten Hopp 3ad654
***************
Karsten Hopp 3ad654
*** 3,20 ****
Karsten Hopp 3ad654
  STARTTEST
Karsten Hopp 3ad654
  :so small.vim
Karsten Hopp 3ad654
  :/^start/,$w! Xxx		" write lines below to Xxx
Karsten Hopp 3ad654
! :au BufReadCmd testA 0r Xxx|$del
Karsten Hopp 3ad654
! :e testA			" will read text of Xxd instead
Karsten Hopp 3ad654
! :au BufWriteCmd testA call append(line("$"), "write")
Karsten Hopp 3ad654
  :w				" will append a line to the file
Karsten Hopp 3ad654
! :r testA			" should not read anything
Karsten Hopp 3ad654
  :				" now we have:
Karsten Hopp 3ad654
  :				" 1	start of Xxx
Karsten Hopp 3ad654
  :				" 2		test40
Karsten Hopp 3ad654
  :				" 3	end of Xxx
Karsten Hopp 3ad654
  :				" 4	write
Karsten Hopp 3ad654
! :au FileReadCmd testB '[r Xxx
Karsten Hopp 3ad654
! :2r testB			" will read Xxx below line 2 instead
Karsten Hopp 3ad654
  :				" 1	start of Xxx
Karsten Hopp 3ad654
  :				" 2		test40
Karsten Hopp 3ad654
  :				" 3	start of Xxx
Karsten Hopp 3ad654
--- 3,20 ----
Karsten Hopp 3ad654
  STARTTEST
Karsten Hopp 3ad654
  :so small.vim
Karsten Hopp 3ad654
  :/^start/,$w! Xxx		" write lines below to Xxx
Karsten Hopp 3ad654
! :au BufReadCmd XtestA 0r Xxx|$del
Karsten Hopp 3ad654
! :e XtestA			" will read text of Xxd instead
Karsten Hopp 3ad654
! :au BufWriteCmd XtestA call append(line("$"), "write")
Karsten Hopp 3ad654
  :w				" will append a line to the file
Karsten Hopp 3ad654
! :r XtestA			" should not read anything
Karsten Hopp 3ad654
  :				" now we have:
Karsten Hopp 3ad654
  :				" 1	start of Xxx
Karsten Hopp 3ad654
  :				" 2		test40
Karsten Hopp 3ad654
  :				" 3	end of Xxx
Karsten Hopp 3ad654
  :				" 4	write
Karsten Hopp 3ad654
! :au FileReadCmd XtestB '[r Xxx
Karsten Hopp 3ad654
! :2r XtestB			" will read Xxx below line 2 instead
Karsten Hopp 3ad654
  :				" 1	start of Xxx
Karsten Hopp 3ad654
  :				" 2		test40
Karsten Hopp 3ad654
  :				" 3	start of Xxx
Karsten Hopp 3ad654
***************
Karsten Hopp 3ad654
*** 22,31 ****
Karsten Hopp 3ad654
  :				" 5	end of Xxx
Karsten Hopp 3ad654
  :				" 6	end of Xxx
Karsten Hopp 3ad654
  :				" 7	write
Karsten Hopp 3ad654
! :au FileWriteCmd testC '[,']copy $
Karsten Hopp 3ad654
  4GA1?
Karsten Hopp 3ad654
! :4,5w testC			" will copy lines 4 and 5 to the end
Karsten Hopp 3ad654
! :r testC			" should not read anything
Karsten Hopp 3ad654
  :				" 1	start of Xxx
Karsten Hopp 3ad654
  :				" 2		test40
Karsten Hopp 3ad654
  :				" 3	start of Xxx
Karsten Hopp 3ad654
--- 22,31 ----
Karsten Hopp 3ad654
  :				" 5	end of Xxx
Karsten Hopp 3ad654
  :				" 6	end of Xxx
Karsten Hopp 3ad654
  :				" 7	write
Karsten Hopp 3ad654
! :au FileWriteCmd XtestC '[,']copy $
Karsten Hopp 3ad654
  4GA1?
Karsten Hopp 3ad654
! :4,5w XtestC			" will copy lines 4 and 5 to the end
Karsten Hopp 3ad654
! :r XtestC			" should not read anything
Karsten Hopp 3ad654
  :				" 1	start of Xxx
Karsten Hopp 3ad654
  :				" 2		test40
Karsten Hopp 3ad654
  :				" 3	start of Xxx
Karsten Hopp 3ad654
***************
Karsten Hopp 3ad654
*** 35,48 ****
Karsten Hopp 3ad654
  :				" 7	write
Karsten Hopp 3ad654
  :				" 8		test401
Karsten Hopp 3ad654
  :				" 9	end of Xxx
Karsten Hopp 3ad654
! :au FILEAppendCmd testD '[,']w! test.out
Karsten Hopp 3ad654
! :w >>testD			" will write all lines to test.out
Karsten Hopp 3ad654
! :$r testD			" should not read anything
Karsten Hopp 3ad654
  :$w >>test.out			" append "end of Xxx" to test.out
Karsten Hopp 3ad654
! :au BufReadCmd testE 0r test.out|$del
Karsten Hopp 3ad654
! :sp testE			" split window with test.out
Karsten Hopp 3ad654
  5Goasdf???:"
Karsten Hopp 3ad654
! :au BufWriteCmd testE w! test.out
Karsten Hopp 3ad654
  :wall				" will write other window to test.out
Karsten Hopp 3ad654
  :				" 1	start of Xxx
Karsten Hopp 3ad654
  :				" 2		test40
Karsten Hopp 3ad654
--- 35,48 ----
Karsten Hopp 3ad654
  :				" 7	write
Karsten Hopp 3ad654
  :				" 8		test401
Karsten Hopp 3ad654
  :				" 9	end of Xxx
Karsten Hopp 3ad654
! :au FILEAppendCmd XtestD '[,']w! test.out
Karsten Hopp 3ad654
! :w >>XtestD			" will write all lines to test.out
Karsten Hopp 3ad654
! :$r XtestD			" should not read anything
Karsten Hopp 3ad654
  :$w >>test.out			" append "end of Xxx" to test.out
Karsten Hopp 3ad654
! :au BufReadCmd XtestE 0r test.out|$del
Karsten Hopp 3ad654
! :sp XtestE			" split window with test.out
Karsten Hopp 3ad654
  5Goasdf???:"
Karsten Hopp 3ad654
! :au BufWriteCmd XtestE w! test.out
Karsten Hopp 3ad654
  :wall				" will write other window to test.out
Karsten Hopp 3ad654
  :				" 1	start of Xxx
Karsten Hopp 3ad654
  :				" 2		test40
Karsten Hopp 3ad654
*** ../vim-7.3.817/src/version.c	2013-02-14 20:10:28.000000000 +0100
Karsten Hopp 3ad654
--- src/version.c	2013-02-14 20:57:44.000000000 +0100
Karsten Hopp 3ad654
***************
Karsten Hopp 3ad654
*** 727,728 ****
Karsten Hopp 3ad654
--- 727,730 ----
Karsten Hopp 3ad654
  {   /* Add new patch number below this line */
Karsten Hopp 3ad654
+ /**/
Karsten Hopp 3ad654
+     818,
Karsten Hopp 3ad654
  /**/
Karsten Hopp 3ad654
Karsten Hopp 3ad654
-- 
Karsten Hopp 3ad654
JOHN CLEESE PLAYED: SECOND SOLDIER WITH A KEEN INTEREST IN BIRDS, LARGE MAN
Karsten Hopp 3ad654
                    WITH DEAD BODY, BLACK KNIGHT, MR NEWT (A VILLAGE
Karsten Hopp 3ad654
                    BLACKSMITH INTERESTED IN BURNING WITCHES), A QUITE
Karsten Hopp 3ad654
                    EXTRAORDINARILY RUDE FRENCHMAN, TIM THE WIZARD, SIR
Karsten Hopp 3ad654
                    LAUNCELOT
Karsten Hopp 3ad654
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 3ad654
Karsten Hopp 3ad654
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 3ad654
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 3ad654
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 3ad654
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///