Karsten Hopp d7e0d2
To: vim-dev@vim.org
Karsten Hopp d7e0d2
Subject: Patch 7.0.049
Karsten Hopp d7e0d2
Fcc: outbox
Karsten Hopp d7e0d2
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d7e0d2
Mime-Version: 1.0
Karsten Hopp d7e0d2
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp d7e0d2
Content-Transfer-Encoding: 8bit
Karsten Hopp d7e0d2
------------
Karsten Hopp d7e0d2
Karsten Hopp d7e0d2
Patch 7.0.049
Karsten Hopp d7e0d2
Problem:    Some TCL scripts are not recognized. (Steven Atkinson)
Karsten Hopp d7e0d2
Solution:   Check for "exec wish" in the file.
Karsten Hopp d7e0d2
Files:	    runtime/scripts.vim
Karsten Hopp d7e0d2
Karsten Hopp d7e0d2
Karsten Hopp d7e0d2
*** ../vim-7.0.048/runtime/scripts.vim	Tue Mar 28 23:07:11 2006
Karsten Hopp d7e0d2
--- runtime/scripts.vim	Sat Jul  8 22:20:51 2006
Karsten Hopp d7e0d2
***************
Karsten Hopp d7e0d2
*** 1,7 ****
Karsten Hopp d7e0d2
  " Vim support file to detect file types in scripts
Karsten Hopp d7e0d2
  "
Karsten Hopp d7e0d2
  " Maintainer:	Bram Moolenaar <Bram@vim.org>
Karsten Hopp d7e0d2
! " Last change:	2006 Mar 28
Karsten Hopp d7e0d2
  
Karsten Hopp d7e0d2
  " This file is called by an autocommand for every file that has just been
Karsten Hopp d7e0d2
  " loaded into a buffer.  It checks if the type of file can be recognized by
Karsten Hopp d7e0d2
--- 1,7 ----
Karsten Hopp d7e0d2
  " Vim support file to detect file types in scripts
Karsten Hopp d7e0d2
  "
Karsten Hopp d7e0d2
  " Maintainer:	Bram Moolenaar <Bram@vim.org>
Karsten Hopp d7e0d2
! " Last change:	2006 Jul 08
Karsten Hopp d7e0d2
  
Karsten Hopp d7e0d2
  " This file is called by an autocommand for every file that has just been
Karsten Hopp d7e0d2
  " loaded into a buffer.  It checks if the type of file can be recognized by
Karsten Hopp d7e0d2
***************
Karsten Hopp d7e0d2
*** 52,57 ****
Karsten Hopp d7e0d2
--- 52,63 ----
Karsten Hopp d7e0d2
      let s:name = substitute(s:line1, '^#!\s*\([^/\\ ]*\>\).*', '\1', '')
Karsten Hopp d7e0d2
    else
Karsten Hopp d7e0d2
      let s:name = substitute(s:line1, '^#!\s*\S*[/\\]\(\i\+\).*', '\1', '')
Karsten Hopp d7e0d2
+   endif
Karsten Hopp d7e0d2
+ 
Karsten Hopp d7e0d2
+   " tcl scripts may have #!/bin/sh in the first line and "exec wish" in the
Karsten Hopp d7e0d2
+   " third line.  Suggested by Steven Atkinson.
Karsten Hopp d7e0d2
+   if getline(3) =~ '^exec wish'
Karsten Hopp d7e0d2
+     let s:name = 'wish'
Karsten Hopp d7e0d2
    endif
Karsten Hopp d7e0d2
  
Karsten Hopp d7e0d2
    " Bourne-like shell scripts: bash bash2 ksh ksh93 sh
Karsten Hopp d7e0d2
*** ../vim-7.0.048/src/version.c	Tue Aug  8 19:55:06 2006
Karsten Hopp d7e0d2
--- src/version.c	Tue Aug  8 20:53:58 2006
Karsten Hopp d7e0d2
***************
Karsten Hopp d7e0d2
*** 668,669 ****
Karsten Hopp d7e0d2
--- 668,671 ----
Karsten Hopp d7e0d2
  {   /* Add new patch number below this line */
Karsten Hopp d7e0d2
+ /**/
Karsten Hopp d7e0d2
+     49,
Karsten Hopp d7e0d2
  /**/
Karsten Hopp d7e0d2
Karsten Hopp d7e0d2
-- 
Karsten Hopp d7e0d2
I AM THANKFUL...
Karsten Hopp d7e0d2
...for the piles of laundry and ironing because it means I
Karsten Hopp d7e0d2
have plenty of clothes to wear.
Karsten Hopp d7e0d2
Karsten Hopp d7e0d2
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d7e0d2
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d7e0d2
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp d7e0d2
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///