Karsten Hopp 90c42f
To: vim-dev@vim.org
Karsten Hopp 90c42f
Subject: Patch 7.1.263
Karsten Hopp 90c42f
Fcc: outbox
Karsten Hopp 90c42f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 90c42f
Mime-Version: 1.0
Karsten Hopp 90c42f
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 90c42f
Content-Transfer-Encoding: 8bit
Karsten Hopp 90c42f
------------
Karsten Hopp 90c42f
Karsten Hopp 90c42f
Patch 7.1.263
Karsten Hopp 90c42f
Problem:    The filetype can consist of two dot separated names.  This works
Karsten Hopp 90c42f
	    for syntax and ftplugin, but not for indent. (Brett Stahlman)
Karsten Hopp 90c42f
Solution:   Use split() and loop over each dot separated name.
Karsten Hopp 90c42f
Files:	    runtime/indent.vim
Karsten Hopp 90c42f
Karsten Hopp 90c42f
Karsten Hopp 90c42f
*** ../vim-7.1.262/runtime/indent.vim	Mon Mar 28 22:56:55 2005
Karsten Hopp 90c42f
--- runtime/indent.vim	Fri Feb 22 21:05:39 2008
Karsten Hopp 90c42f
***************
Karsten Hopp 90c42f
*** 1,7 ****
Karsten Hopp 90c42f
  " Vim support file to switch on loading indent files for file types
Karsten Hopp 90c42f
  "
Karsten Hopp 90c42f
  " Maintainer:	Bram Moolenaar <Bram@vim.org>
Karsten Hopp 90c42f
! " Last Change:	2005 Mar 28
Karsten Hopp 90c42f
  
Karsten Hopp 90c42f
  if exists("did_indent_on")
Karsten Hopp 90c42f
    finish
Karsten Hopp 90c42f
--- 1,7 ----
Karsten Hopp 90c42f
  " Vim support file to switch on loading indent files for file types
Karsten Hopp 90c42f
  "
Karsten Hopp 90c42f
  " Maintainer:	Bram Moolenaar <Bram@vim.org>
Karsten Hopp 90c42f
! " Last Change:	2008 Feb 22
Karsten Hopp 90c42f
  
Karsten Hopp 90c42f
  if exists("did_indent_on")
Karsten Hopp 90c42f
    finish
Karsten Hopp 90c42f
***************
Karsten Hopp 90c42f
*** 15,25 ****
Karsten Hopp 90c42f
        exe b:undo_indent
Karsten Hopp 90c42f
        unlet! b:undo_indent b:did_indent
Karsten Hopp 90c42f
      endif
Karsten Hopp 90c42f
!     if expand("<amatch>") != ""
Karsten Hopp 90c42f
        if exists("b:did_indent")
Karsten Hopp 90c42f
  	unlet b:did_indent
Karsten Hopp 90c42f
        endif
Karsten Hopp 90c42f
!       runtime! indent/<amatch>.vim
Karsten Hopp 90c42f
      endif
Karsten Hopp 90c42f
    endfunc
Karsten Hopp 90c42f
  augroup END
Karsten Hopp 90c42f
--- 15,31 ----
Karsten Hopp 90c42f
        exe b:undo_indent
Karsten Hopp 90c42f
        unlet! b:undo_indent b:did_indent
Karsten Hopp 90c42f
      endif
Karsten Hopp 90c42f
!     let s = expand("<amatch>")
Karsten Hopp 90c42f
!     if s != ""
Karsten Hopp 90c42f
        if exists("b:did_indent")
Karsten Hopp 90c42f
  	unlet b:did_indent
Karsten Hopp 90c42f
        endif
Karsten Hopp 90c42f
! 
Karsten Hopp 90c42f
!       " When there is a dot it is used to separate filetype names.  Thus for
Karsten Hopp 90c42f
!       " "aaa.bbb" load "indent/aaa.vim" and then "indent/bbb.vim".
Karsten Hopp 90c42f
!       for name in split(s, '\.')
Karsten Hopp 90c42f
! 	exe 'runtime! indent/' . name . '.vim'
Karsten Hopp 90c42f
!       endfor
Karsten Hopp 90c42f
      endif
Karsten Hopp 90c42f
    endfunc
Karsten Hopp 90c42f
  augroup END
Karsten Hopp 90c42f
*** ../vim-7.1.262/src/version.c	Wed Feb 20 20:09:44 2008
Karsten Hopp 90c42f
--- src/version.c	Mon Feb 25 20:44:04 2008
Karsten Hopp 90c42f
***************
Karsten Hopp 90c42f
*** 668,669 ****
Karsten Hopp 90c42f
--- 668,671 ----
Karsten Hopp 90c42f
  {   /* Add new patch number below this line */
Karsten Hopp 90c42f
+ /**/
Karsten Hopp 90c42f
+     263,
Karsten Hopp 90c42f
  /**/
Karsten Hopp 90c42f
Karsten Hopp 90c42f
-- 
Karsten Hopp 90c42f
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 90c42f
45. You buy a Captain Kirk chair with a built-in keyboard and mouse.
Karsten Hopp 90c42f
Karsten Hopp 90c42f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 90c42f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 90c42f
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 90c42f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///