Karsten Hopp ee1396
To: vim_dev@googlegroups.com
Karsten Hopp ee1396
Subject: Patch 7.4.090
Karsten Hopp ee1396
Fcc: outbox
Karsten Hopp ee1396
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ee1396
Mime-Version: 1.0
Karsten Hopp ee1396
Content-Type: text/plain; charset=UTF-8
Karsten Hopp ee1396
Content-Transfer-Encoding: 8bit
Karsten Hopp ee1396
------------
Karsten Hopp ee1396
Karsten Hopp ee1396
Patch 7.4.090
Karsten Hopp ee1396
Problem:    Win32: When a directory name contains an exclamation mark,
Karsten Hopp ee1396
            completion doesn't complete the contents of the directory.
Karsten Hopp ee1396
Solution:   Escape the exclamation mark. (Jan Stocker)
Karsten Hopp ee1396
Files:      src/ex_getln.c, src/testdir/test102.in, src/testdir/test102.ok
Karsten Hopp ee1396
            src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
Karsten Hopp ee1396
            src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
Karsten Hopp ee1396
            src/testdir/Make_vms.mms, src/testdir/Makefile
Karsten Hopp ee1396
Karsten Hopp ee1396
Karsten Hopp ee1396
*** ../vim-7.4.089/src/ex_getln.c	2013-11-09 05:30:18.000000000 +0100
Karsten Hopp ee1396
--- src/ex_getln.c	2013-11-12 05:23:15.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 3852,3860 ****
Karsten Hopp ee1396
      char_u	buf[20];
Karsten Hopp ee1396
      int		j = 0;
Karsten Hopp ee1396
  
Karsten Hopp ee1396
!     /* Don't escape '[' and '{' if they are in 'isfname'. */
Karsten Hopp ee1396
      for (p = PATH_ESC_CHARS; *p != NUL; ++p)
Karsten Hopp ee1396
! 	if ((*p != '[' && *p != '{') || !vim_isfilec(*p))
Karsten Hopp ee1396
  	    buf[j++] = *p;
Karsten Hopp ee1396
      buf[j] = NUL;
Karsten Hopp ee1396
      p = vim_strsave_escaped(fname, buf);
Karsten Hopp ee1396
--- 3852,3860 ----
Karsten Hopp ee1396
      char_u	buf[20];
Karsten Hopp ee1396
      int		j = 0;
Karsten Hopp ee1396
  
Karsten Hopp ee1396
!     /* Don't escape '[', '{' and '!' if they are in 'isfname'. */
Karsten Hopp ee1396
      for (p = PATH_ESC_CHARS; *p != NUL; ++p)
Karsten Hopp ee1396
! 	if ((*p != '[' && *p != '{' && *p != '!') || !vim_isfilec(*p))
Karsten Hopp ee1396
  	    buf[j++] = *p;
Karsten Hopp ee1396
      buf[j] = NUL;
Karsten Hopp ee1396
      p = vim_strsave_escaped(fname, buf);
Karsten Hopp ee1396
*** ../vim-7.4.089/src/testdir/test102.in	2013-11-12 05:27:48.000000000 +0100
Karsten Hopp ee1396
--- src/testdir/test102.in	2013-11-12 05:21:26.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 0 ****
Karsten Hopp ee1396
--- 1,12 ----
Karsten Hopp ee1396
+ Test if fnameescape is correct for special chars like !
Karsten Hopp ee1396
+ 
Karsten Hopp ee1396
+ STARTTEST
Karsten Hopp ee1396
+ :%d
Karsten Hopp ee1396
+ :let fname = 'Xspa ce'
Karsten Hopp ee1396
+ :try | exe "w! " . fnameescape(fname) | put='Space' | endtry 
Karsten Hopp ee1396
+ :let fname = 'Xemark!'
Karsten Hopp ee1396
+ :try | exe "w! " . fnameescape(fname) | put='ExclamationMark' | endtry
Karsten Hopp ee1396
+ :w! test.out
Karsten Hopp ee1396
+ :qa!
Karsten Hopp ee1396
+ ENDTEST
Karsten Hopp ee1396
+ 
Karsten Hopp ee1396
*** ../vim-7.4.089/src/testdir/test102.ok	2013-11-12 05:27:48.000000000 +0100
Karsten Hopp ee1396
--- src/testdir/test102.ok	2013-11-12 05:21:19.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 0 ****
Karsten Hopp ee1396
--- 1,3 ----
Karsten Hopp ee1396
+ 
Karsten Hopp ee1396
+ Space
Karsten Hopp ee1396
+ ExclamationMark
Karsten Hopp ee1396
*** ../vim-7.4.089/src/testdir/Make_amiga.mak	2013-11-08 04:30:06.000000000 +0100
Karsten Hopp ee1396
--- src/testdir/Make_amiga.mak	2013-11-12 05:20:03.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 34,40 ****
Karsten Hopp ee1396
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp ee1396
! 		test99.out test100.out test101.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  .SUFFIXES: .in .out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
--- 34,40 ----
Karsten Hopp ee1396
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp ee1396
! 		test99.out test100.out test101.out test102.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  .SUFFIXES: .in .out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 152,154 ****
Karsten Hopp ee1396
--- 152,155 ----
Karsten Hopp ee1396
  test99.out: test99.in
Karsten Hopp ee1396
  test100.out: test100.in
Karsten Hopp ee1396
  test101.out: test101.in
Karsten Hopp ee1396
+ test102.out: test102.in
Karsten Hopp ee1396
*** ../vim-7.4.089/src/testdir/Make_dos.mak	2013-11-08 04:30:06.000000000 +0100
Karsten Hopp ee1396
--- src/testdir/Make_dos.mak	2013-11-12 05:20:10.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 33,39 ****
Karsten Hopp ee1396
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp ee1396
! 		test100.out test101.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
--- 33,39 ----
Karsten Hopp ee1396
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp ee1396
! 		test100.out test101.out test102.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
*** ../vim-7.4.089/src/testdir/Make_ming.mak	2013-11-08 04:30:06.000000000 +0100
Karsten Hopp ee1396
--- src/testdir/Make_ming.mak	2013-11-12 05:20:14.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 53,59 ****
Karsten Hopp ee1396
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp ee1396
! 		test100out test101.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
--- 53,59 ----
Karsten Hopp ee1396
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp ee1396
! 		test100out test101.out test102.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
*** ../vim-7.4.089/src/testdir/Make_os2.mak	2013-11-08 04:30:06.000000000 +0100
Karsten Hopp ee1396
--- src/testdir/Make_os2.mak	2013-11-12 05:20:18.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 35,41 ****
Karsten Hopp ee1396
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp ee1396
! 		test100.out test101.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  .SUFFIXES: .in .out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
--- 35,41 ----
Karsten Hopp ee1396
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp ee1396
! 		test100.out test101.out test102.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  .SUFFIXES: .in .out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
*** ../vim-7.4.089/src/testdir/Make_vms.mms	2013-11-08 04:30:06.000000000 +0100
Karsten Hopp ee1396
--- src/testdir/Make_vms.mms	2013-11-12 05:20:21.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 4,10 ****
Karsten Hopp ee1396
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp ee1396
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp ee1396
  #
Karsten Hopp ee1396
! # Last change:  2013 Nov 08
Karsten Hopp ee1396
  #
Karsten Hopp ee1396
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp ee1396
  # Edit the lines in the Configuration section below to select.
Karsten Hopp ee1396
--- 4,10 ----
Karsten Hopp ee1396
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp ee1396
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp ee1396
  #
Karsten Hopp ee1396
! # Last change:  2013 Nov 12
Karsten Hopp ee1396
  #
Karsten Hopp ee1396
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp ee1396
  # Edit the lines in the Configuration section below to select.
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 79,85 ****
Karsten Hopp ee1396
  	 test82.out test83.out test84.out test88.out test89.out \
Karsten Hopp ee1396
  	 test90.out test91.out test92.out test93.out test94.out \
Karsten Hopp ee1396
  	 test95.out test96.out test97.out test98.out test99.out \
Karsten Hopp ee1396
! 	 test100.out test101.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  # Known problems:
Karsten Hopp ee1396
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp ee1396
--- 79,85 ----
Karsten Hopp ee1396
  	 test82.out test83.out test84.out test88.out test89.out \
Karsten Hopp ee1396
  	 test90.out test91.out test92.out test93.out test94.out \
Karsten Hopp ee1396
  	 test95.out test96.out test97.out test98.out test99.out \
Karsten Hopp ee1396
! 	 test100.out test101.out test102.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  # Known problems:
Karsten Hopp ee1396
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp ee1396
*** ../vim-7.4.089/src/testdir/Makefile	2013-11-08 04:30:06.000000000 +0100
Karsten Hopp ee1396
--- src/testdir/Makefile	2013-11-12 05:20:32.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 30,36 ****
Karsten Hopp ee1396
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp ee1396
! 		test99.out test100.out test101.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  SCRIPTS_GUI = test16.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
--- 30,36 ----
Karsten Hopp ee1396
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp ee1396
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp ee1396
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp ee1396
! 		test99.out test100.out test101.out test102.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
  SCRIPTS_GUI = test16.out
Karsten Hopp ee1396
  
Karsten Hopp ee1396
*** ../vim-7.4.089/src/version.c	2013-11-12 05:11:58.000000000 +0100
Karsten Hopp ee1396
--- src/version.c	2013-11-12 05:24:24.000000000 +0100
Karsten Hopp ee1396
***************
Karsten Hopp ee1396
*** 740,741 ****
Karsten Hopp ee1396
--- 740,743 ----
Karsten Hopp ee1396
  {   /* Add new patch number below this line */
Karsten Hopp ee1396
+ /**/
Karsten Hopp ee1396
+     90,
Karsten Hopp ee1396
  /**/
Karsten Hopp ee1396
Karsten Hopp ee1396
-- 
Karsten Hopp ee1396
If you don't get everything you want, think of
Karsten Hopp ee1396
everything you didn't get and don't want.
Karsten Hopp ee1396
Karsten Hopp ee1396
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ee1396
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ee1396
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp ee1396
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///