Karsten Hopp 2b1850
To: vim-dev@vim.org
Karsten Hopp 2b1850
Subject: Patch 7.2.310
Karsten Hopp 2b1850
Fcc: outbox
Karsten Hopp 2b1850
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 2b1850
Mime-Version: 1.0
Karsten Hopp 2b1850
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 2b1850
Content-Transfer-Encoding: 8bit
Karsten Hopp 2b1850
------------
Karsten Hopp 2b1850
Karsten Hopp 2b1850
Patch 7.2.310
Karsten Hopp 2b1850
Problem:    When a filetype plugin in ~/.vim/ftdetect uses ":setfiletype" and
Karsten Hopp 2b1850
	    the file starts with a "# comment" it gets "conf" filetype.
Karsten Hopp 2b1850
Solution:   Check for "conf" filetype after using ftdetect plugins.
Karsten Hopp 2b1850
Files:	    runtime/filetype.vim
Karsten Hopp 2b1850
Karsten Hopp 2b1850
Karsten Hopp 2b1850
*** ../vim-7.2.309/runtime/filetype.vim	2008-08-06 18:56:36.000000000 +0200
Karsten Hopp 2b1850
--- runtime/filetype.vim	2009-12-02 12:08:42.000000000 +0100
Karsten Hopp 2b1850
***************
Karsten Hopp 2b1850
*** 2400,2405 ****
Karsten Hopp 2b1850
--- 2435,2446 ----
Karsten Hopp 2b1850
  au BufNewFile,BufRead zsh*,zlog*		call s:StarSetf('zsh')
Karsten Hopp 2b1850
  
Karsten Hopp 2b1850
  
Karsten Hopp 2b1850
+ 
Karsten Hopp 2b1850
+ " Use the filetype detect plugins.  They may overrule any of the previously
Karsten Hopp 2b1850
+ " detected filetypes.
Karsten Hopp 2b1850
+ runtime! ftdetect/*.vim
Karsten Hopp 2b1850
+ 
Karsten Hopp 2b1850
+ 
Karsten Hopp 2b1850
  " Generic configuration file (check this last, it's just guessing!)
Karsten Hopp 2b1850
  au BufNewFile,BufRead,StdinReadPost *
Karsten Hopp 2b1850
  	\ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat
Karsten Hopp 2b1850
***************
Karsten Hopp 2b1850
*** 2408,2417 ****
Karsten Hopp 2b1850
  	\   setf conf |
Karsten Hopp 2b1850
  	\ endif
Karsten Hopp 2b1850
  
Karsten Hopp 2b1850
- " Use the plugin-filetype checks last, they may overrule any of the previously
Karsten Hopp 2b1850
- " detected filetypes.
Karsten Hopp 2b1850
- runtime! ftdetect/*.vim
Karsten Hopp 2b1850
- 
Karsten Hopp 2b1850
  augroup END
Karsten Hopp 2b1850
  
Karsten Hopp 2b1850
  
Karsten Hopp 2b1850
--- 2449,2454 ----
Karsten Hopp 2b1850
*** ../vim-7.2.309/src/version.c	2009-11-26 20:41:19.000000000 +0100
Karsten Hopp 2b1850
--- src/version.c	2009-12-02 12:05:27.000000000 +0100
Karsten Hopp 2b1850
***************
Karsten Hopp 2b1850
*** 683,684 ****
Karsten Hopp 2b1850
--- 683,686 ----
Karsten Hopp 2b1850
  {   /* Add new patch number below this line */
Karsten Hopp 2b1850
+ /**/
Karsten Hopp 2b1850
+     310,
Karsten Hopp 2b1850
  /**/
Karsten Hopp 2b1850
Karsten Hopp 2b1850
-- 
Karsten Hopp 2b1850
A)bort, R)etry, P)lease don't bother me again
Karsten Hopp 2b1850
Karsten Hopp 2b1850
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 2b1850
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 2b1850
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 2b1850
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///