|
Karsten Hopp |
4adb1f |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
4adb1f |
Subject: Patch 7.3.430
|
|
Karsten Hopp |
4adb1f |
Fcc: outbox
|
|
Karsten Hopp |
4adb1f |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
4adb1f |
Mime-Version: 1.0
|
|
Karsten Hopp |
4adb1f |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
4adb1f |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
4adb1f |
------------
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
Patch 7.3.430
|
|
Karsten Hopp |
4adb1f |
Problem: When a custom filetype detection uses "augroup END" the conf
|
|
Karsten Hopp |
4adb1f |
fileytpe detection does not have the filetypedetect group.
|
|
Karsten Hopp |
4adb1f |
Solution: Always end the group and include filetypedetect in the conf
|
|
Karsten Hopp |
4adb1f |
autocommand. (Lech Lorens)
|
|
Karsten Hopp |
4adb1f |
Files: runtime/filetype.vim
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
*** ../vim-7.3.429/runtime/filetype.vim 2012-02-05 20:08:08.000000000 +0100
|
|
Karsten Hopp |
4adb1f |
--- runtime/filetype.vim 2012-02-05 19:59:40.000000000 +0100
|
|
Karsten Hopp |
4adb1f |
***************
|
|
Karsten Hopp |
4adb1f |
*** 2545,2561 ****
|
|
Karsten Hopp |
4adb1f |
" detected filetypes.
|
|
Karsten Hopp |
4adb1f |
runtime! ftdetect/*.vim
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
" Generic configuration file (check this last, it's just guessing!)
|
|
Karsten Hopp |
4adb1f |
! au BufNewFile,BufRead,StdinReadPost *
|
|
Karsten Hopp |
4adb1f |
\ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat
|
|
Karsten Hopp |
4adb1f |
\ && (getline(1) =~ '^#' || getline(2) =~ '^#' || getline(3) =~ '^#'
|
|
Karsten Hopp |
4adb1f |
\ || getline(4) =~ '^#' || getline(5) =~ '^#') |
|
|
Karsten Hopp |
4adb1f |
\ setf conf |
|
|
Karsten Hopp |
4adb1f |
\ endif
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
- augroup END
|
|
Karsten Hopp |
4adb1f |
-
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
" If the GUI is already running, may still need to install the Syntax menu.
|
|
Karsten Hopp |
4adb1f |
" Don't do it when the 'M' flag is included in 'guioptions'.
|
|
Karsten Hopp |
4adb1f |
--- 2545,2563 ----
|
|
Karsten Hopp |
4adb1f |
" detected filetypes.
|
|
Karsten Hopp |
4adb1f |
runtime! ftdetect/*.vim
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
+ " NOTE: The above command could have ended the filetypedetect autocmd group
|
|
Karsten Hopp |
4adb1f |
+ " and started another one. Let's make sure it has ended to get to a consistant
|
|
Karsten Hopp |
4adb1f |
+ " state.
|
|
Karsten Hopp |
4adb1f |
+ augroup END
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
" Generic configuration file (check this last, it's just guessing!)
|
|
Karsten Hopp |
4adb1f |
! au filetypedetect BufNewFile,BufRead,StdinReadPost *
|
|
Karsten Hopp |
4adb1f |
\ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat
|
|
Karsten Hopp |
4adb1f |
\ && (getline(1) =~ '^#' || getline(2) =~ '^#' || getline(3) =~ '^#'
|
|
Karsten Hopp |
4adb1f |
\ || getline(4) =~ '^#' || getline(5) =~ '^#') |
|
|
Karsten Hopp |
4adb1f |
\ setf conf |
|
|
Karsten Hopp |
4adb1f |
\ endif
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
" If the GUI is already running, may still need to install the Syntax menu.
|
|
Karsten Hopp |
4adb1f |
" Don't do it when the 'M' flag is included in 'guioptions'.
|
|
Karsten Hopp |
4adb1f |
*** ../vim-7.3.429/src/version.c 2012-02-05 01:18:41.000000000 +0100
|
|
Karsten Hopp |
4adb1f |
--- src/version.c 2012-02-05 20:02:18.000000000 +0100
|
|
Karsten Hopp |
4adb1f |
***************
|
|
Karsten Hopp |
4adb1f |
*** 716,717 ****
|
|
Karsten Hopp |
4adb1f |
--- 716,719 ----
|
|
Karsten Hopp |
4adb1f |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
4adb1f |
+ /**/
|
|
Karsten Hopp |
4adb1f |
+ 430,
|
|
Karsten Hopp |
4adb1f |
/**/
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
--
|
|
Karsten Hopp |
4adb1f |
The technology involved in making anything invisible is so infinitely
|
|
Karsten Hopp |
4adb1f |
complex that nine hundred and ninety-nine billion, nine hundred and
|
|
Karsten Hopp |
4adb1f |
ninety-nine million, nine hundred and ninety-nine thousand, nine hundred
|
|
Karsten Hopp |
4adb1f |
and ninety-nine times out of a trillion it is much simpler and more
|
|
Karsten Hopp |
4adb1f |
effective just to take the thing away and do without it.
|
|
Karsten Hopp |
4adb1f |
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
|
|
Karsten Hopp |
4adb1f |
|
|
Karsten Hopp |
4adb1f |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
4adb1f |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
4adb1f |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
4adb1f |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|