Karsten Hopp 34ba67
To: vim_dev@googlegroups.com
Karsten Hopp 34ba67
Subject: Patch 7.4.075
Karsten Hopp 34ba67
Fcc: outbox
Karsten Hopp 34ba67
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 34ba67
Mime-Version: 1.0
Karsten Hopp 34ba67
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 34ba67
Content-Transfer-Encoding: 8bit
Karsten Hopp 34ba67
------------
Karsten Hopp 34ba67
Karsten Hopp 34ba67
Patch 7.4.075
Karsten Hopp 34ba67
Problem:    Locally setting 'undolevels' is not tested.
Karsten Hopp 34ba67
Solution:   Add a test. (Christian Brabandt)
Karsten Hopp 34ba67
Files:      src/testdir/test100.in, src/testdir/test100.ok,
Karsten Hopp 34ba67
            src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
Karsten Hopp 34ba67
            src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
Karsten Hopp 34ba67
            src/testdir/Make_vms.mms, src/testdir/Makefile, src/Makefile
Karsten Hopp 34ba67
Karsten Hopp 34ba67
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/testdir/test100.in	2013-11-07 03:24:56.000000000 +0100
Karsten Hopp 34ba67
--- src/testdir/test100.in	2013-11-07 03:20:32.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 0 ****
Karsten Hopp 34ba67
--- 1,42 ----
Karsten Hopp 34ba67
+ Tests for 'undolevel' setting being global-local
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
+ STARTTEST
Karsten Hopp 34ba67
+ :so small.vim
Karsten Hopp 34ba67
+ :set nocompatible viminfo+=nviminfo ul=5
Karsten Hopp 34ba67
+ :fu! FillBuffer()
Karsten Hopp 34ba67
+   :for i in range(1,13)
Karsten Hopp 34ba67
+     :put=i
Karsten Hopp 34ba67
+     :exe "setg ul=" . &g:ul
Karsten Hopp 34ba67
+   :endfor
Karsten Hopp 34ba67
+ :endfu
Karsten Hopp 34ba67
+ :fu! UndoLevel()
Karsten Hopp 34ba67
+   :redir @a | setglobal undolevels? | echon ' global' | setlocal undolevels? | echon ' local' |redir end
Karsten Hopp 34ba67
+   :$put a
Karsten Hopp 34ba67
+ :endfu
Karsten Hopp 34ba67
+ :new one
Karsten Hopp 34ba67
+ :0put ='ONE: expecting global undolevels: 5, local undolevels: -123456 (default)'
Karsten Hopp 34ba67
+ :call FillBuffer()
Karsten Hopp 34ba67
+ :call feedkeys(":earlier 10\n", 't')
Karsten Hopp 34ba67
+ :call UndoLevel()
Karsten Hopp 34ba67
+ :%w! test.out
Karsten Hopp 34ba67
+ :new two
Karsten Hopp 34ba67
+ :0put ='TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)'
Karsten Hopp 34ba67
+ :setlocal ul=2
Karsten Hopp 34ba67
+ :call FillBuffer()
Karsten Hopp 34ba67
+ :call feedkeys(":earlier 10\n", 't')
Karsten Hopp 34ba67
+ :call UndoLevel()
Karsten Hopp 34ba67
+ :setlocal ul=10
Karsten Hopp 34ba67
+ :call UndoLevel()
Karsten Hopp 34ba67
+ :%w >> test.out
Karsten Hopp 34ba67
+ :wincmd p
Karsten Hopp 34ba67
+ :redir >>test.out | echo "global value shouldn't be changed and still be 5!" | echo 'ONE: expecting global undolevels: 5, local undolevels: -123456 (default)'|:setglobal undolevels? | echon ' global' | setlocal undolevels? | echon ' local' |echo "" |redir end
Karsten Hopp 34ba67
+ :new three
Karsten Hopp 34ba67
+ :setglobal ul=50
Karsten Hopp 34ba67
+ :1put ='global value should be changed to 50'
Karsten Hopp 34ba67
+ :2put ='THREE: expecting global undolevels: 50, local undolevels: -123456 (default)'
Karsten Hopp 34ba67
+ :call UndoLevel()
Karsten Hopp 34ba67
+ :%w >> test.out
Karsten Hopp 34ba67
+ :"sleep 10
Karsten Hopp 34ba67
+ :qa!
Karsten Hopp 34ba67
+ ENDTEST
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/testdir/test100.ok	2013-11-07 03:24:56.000000000 +0100
Karsten Hopp 34ba67
--- src/testdir/test100.ok	2013-11-07 03:11:51.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 0 ****
Karsten Hopp 34ba67
--- 1,41 ----
Karsten Hopp 34ba67
+ ONE: expecting global undolevels: 5, local undolevels: -123456 (default)
Karsten Hopp 34ba67
+ 1
Karsten Hopp 34ba67
+ 2
Karsten Hopp 34ba67
+ 3
Karsten Hopp 34ba67
+ 4
Karsten Hopp 34ba67
+ 5
Karsten Hopp 34ba67
+ 6
Karsten Hopp 34ba67
+ 7
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
+   undolevels=5 global
Karsten Hopp 34ba67
+   undolevels=-123456 local
Karsten Hopp 34ba67
+ TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)
Karsten Hopp 34ba67
+ 1
Karsten Hopp 34ba67
+ 2
Karsten Hopp 34ba67
+ 3
Karsten Hopp 34ba67
+ 4
Karsten Hopp 34ba67
+ 5
Karsten Hopp 34ba67
+ 6
Karsten Hopp 34ba67
+ 7
Karsten Hopp 34ba67
+ 8
Karsten Hopp 34ba67
+ 9
Karsten Hopp 34ba67
+ 10
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
+   undolevels=5 global
Karsten Hopp 34ba67
+   undolevels=2 local
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
+   undolevels=5 global
Karsten Hopp 34ba67
+   undolevels=10 local
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
+ global value shouldn't be changed and still be 5!
Karsten Hopp 34ba67
+ ONE: expecting global undolevels: 5, local undolevels: -123456 (default)
Karsten Hopp 34ba67
+   undolevels=5 global
Karsten Hopp 34ba67
+   undolevels=-123456 local
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
+ global value should be changed to 50
Karsten Hopp 34ba67
+ THREE: expecting global undolevels: 50, local undolevels: -123456 (default)
Karsten Hopp 34ba67
+ 
Karsten Hopp 34ba67
+   undolevels=50 global
Karsten Hopp 34ba67
+   undolevels=-123456 local
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/testdir/Make_amiga.mak	2013-09-19 17:00:14.000000000 +0200
Karsten Hopp 34ba67
--- src/testdir/Make_amiga.mak	2013-11-07 03:07:57.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 34,40 ****
Karsten Hopp 34ba67
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 34ba67
! 		test99.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  .SUFFIXES: .in .out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
--- 34,40 ----
Karsten Hopp 34ba67
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 34ba67
! 		test99.out test100.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  .SUFFIXES: .in .out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 150,152 ****
Karsten Hopp 34ba67
--- 150,153 ----
Karsten Hopp 34ba67
  test97.out: test97.in
Karsten Hopp 34ba67
  test98.out: test98.in
Karsten Hopp 34ba67
  test99.out: test99.in
Karsten Hopp 34ba67
+ test100.out: test100.in
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/testdir/Make_dos.mak	2013-09-19 17:00:14.000000000 +0200
Karsten Hopp 34ba67
--- src/testdir/Make_dos.mak	2013-11-07 03:08:05.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 32,38 ****
Karsten Hopp 34ba67
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 34ba67
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
! 		test94.out test95.out test96.out test98.out test99.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
--- 32,39 ----
Karsten Hopp 34ba67
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 34ba67
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
! 		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 34ba67
! 		test100.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/testdir/Make_ming.mak	2013-09-19 17:00:14.000000000 +0200
Karsten Hopp 34ba67
--- src/testdir/Make_ming.mak	2013-11-07 03:08:12.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 52,58 ****
Karsten Hopp 34ba67
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 34ba67
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
! 		test94.out test95.out test96.out test98.out test99.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
--- 52,59 ----
Karsten Hopp 34ba67
  		test79.out test80.out test81.out test82.out test83.out \
Karsten Hopp 34ba67
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
! 		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 34ba67
! 		test100out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/testdir/Make_os2.mak	2013-09-19 17:00:14.000000000 +0200
Karsten Hopp 34ba67
--- src/testdir/Make_os2.mak	2013-11-07 03:08:18.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 34,40 ****
Karsten Hopp 34ba67
  		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp 34ba67
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
! 		test94.out test95.out test96.out test98.out test99.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  .SUFFIXES: .in .out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
--- 34,41 ----
Karsten Hopp 34ba67
  		test76.out test77.out test78.out test79.out test80.out \
Karsten Hopp 34ba67
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
! 		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 34ba67
! 		test100.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  .SUFFIXES: .in .out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/testdir/Make_vms.mms	2013-09-19 17:00:14.000000000 +0200
Karsten Hopp 34ba67
--- src/testdir/Make_vms.mms	2013-11-07 03:08:24.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 4,10 ****
Karsten Hopp 34ba67
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp 34ba67
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp 34ba67
  #
Karsten Hopp 34ba67
! # Last change:  2013 Sep 19
Karsten Hopp 34ba67
  #
Karsten Hopp 34ba67
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp 34ba67
  # Edit the lines in the Configuration section below to select.
Karsten Hopp 34ba67
--- 4,10 ----
Karsten Hopp 34ba67
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp 34ba67
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp 34ba67
  #
Karsten Hopp 34ba67
! # Last change:  2013 Nov 07
Karsten Hopp 34ba67
  #
Karsten Hopp 34ba67
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp 34ba67
  # Edit the lines in the Configuration section below to select.
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 78,84 ****
Karsten Hopp 34ba67
  	 test77.out test78.out test79.out test80.out test81.out \
Karsten Hopp 34ba67
  	 test82.out test83.out test84.out test88.out test89.out \
Karsten Hopp 34ba67
  	 test90.out test91.out test92.out test93.out test94.out \
Karsten Hopp 34ba67
! 	 test95.out test96.out test97.out test98.out test99.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  # Known problems:
Karsten Hopp 34ba67
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp 34ba67
--- 78,85 ----
Karsten Hopp 34ba67
  	 test77.out test78.out test79.out test80.out test81.out \
Karsten Hopp 34ba67
  	 test82.out test83.out test84.out test88.out test89.out \
Karsten Hopp 34ba67
  	 test90.out test91.out test92.out test93.out test94.out \
Karsten Hopp 34ba67
! 	 test95.out test96.out test97.out test98.out test99.out \
Karsten Hopp 34ba67
! 	 test100.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  # Known problems:
Karsten Hopp 34ba67
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/testdir/Makefile	2013-09-22 15:03:34.000000000 +0200
Karsten Hopp 34ba67
--- src/testdir/Makefile	2013-11-07 03:08:31.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 30,36 ****
Karsten Hopp 34ba67
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 34ba67
! 		test99.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  SCRIPTS_GUI = test16.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
--- 30,36 ----
Karsten Hopp 34ba67
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 34ba67
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 34ba67
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 34ba67
! 		test99.out test100.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  SCRIPTS_GUI = test16.out
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/Makefile	2013-08-10 14:21:15.000000000 +0200
Karsten Hopp 34ba67
--- src/Makefile	2013-11-07 03:10:40.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 1882,1888 ****
Karsten Hopp 34ba67
  	test60 test61 test62 test63 test64 test65 test66 test67 test68 test69 \
Karsten Hopp 34ba67
  	test70 test71 test72 test73 test74 test75 test76 test77 test78 test79 \
Karsten Hopp 34ba67
  	test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
Karsten Hopp 34ba67
! 	test90 test91 test92 test93 test94 test95 test96 test97 test98 test99:
Karsten Hopp 34ba67
  	cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET)
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  testclean:
Karsten Hopp 34ba67
--- 1883,1890 ----
Karsten Hopp 34ba67
  	test60 test61 test62 test63 test64 test65 test66 test67 test68 test69 \
Karsten Hopp 34ba67
  	test70 test71 test72 test73 test74 test75 test76 test77 test78 test79 \
Karsten Hopp 34ba67
  	test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
Karsten Hopp 34ba67
! 	test90 test91 test92 test93 test94 test95 test96 test97 test98 test99 \
Karsten Hopp 34ba67
! 	test100 test101 test102 test103 test104 test105 test106 test107:
Karsten Hopp 34ba67
  	cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET)
Karsten Hopp 34ba67
  
Karsten Hopp 34ba67
  testclean:
Karsten Hopp 34ba67
*** ../vim-7.4.074/src/version.c	2013-11-07 03:04:06.000000000 +0100
Karsten Hopp 34ba67
--- src/version.c	2013-11-07 03:10:10.000000000 +0100
Karsten Hopp 34ba67
***************
Karsten Hopp 34ba67
*** 740,741 ****
Karsten Hopp 34ba67
--- 740,743 ----
Karsten Hopp 34ba67
  {   /* Add new patch number below this line */
Karsten Hopp 34ba67
+ /**/
Karsten Hopp 34ba67
+     75,
Karsten Hopp 34ba67
  /**/
Karsten Hopp 34ba67
Karsten Hopp 34ba67
-- 
Karsten Hopp 34ba67
Why is "abbreviation" such a long word?
Karsten Hopp 34ba67
Karsten Hopp 34ba67
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 34ba67
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 34ba67
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 34ba67
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///