RISC OS is unsupported now, and I think osfiletype related code should also be removed. Here is the patch to remove them.

Regards,
Hong Xu
06/05/2011

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r e9538cfd0d9c runtime/doc/filetype.txt
--- a/runtime/doc/filetype.txt  Wed May 25 21:18:06 2011 +0200
+++ b/runtime/doc/filetype.txt  Sun Jun 05 09:47:49 2011 +0800
@@ -269,36 +269,6 @@
 directories!
 
 
-                                               *autocmd-osfiletypes*
-On operating systems which support storing a file type with the file, you can
-specify that an autocommand should only be executed if the file is of a
-certain type.
-
-The actual type checking depends on which platform you are running Vim
-on; see your system's documentation for details.
-
-To use osfiletype checking in an autocommand you should put a list of types to
-match in angle brackets in place of a pattern, like this: >
-
-       :au BufRead *.html,<&faf;HTML>  runtime! syntax/html.vim
-
-This will match:
-
-- Any file whose name ends in ".html"
-- Any file whose type is "&faf" or "HTML", where the meaning of these types
-  depends on which version of Vim you are using.
-  Unknown types are considered NOT to match.
-
-You can also specify a type and a pattern at the same time (in which case they
-must both match): >
-
-       :au BufRead <&fff>diff*
-
-This will match files of type "&fff" whose names start with "diff".
-
-Note that osfiletype checking is skipped if Vim is compiled without the
-|+osfiletype| feature.
-
                                                        *plugin-details*
 The "plugin" directory can be in any of the directories in the 'runtimepath'
 option.  All of these directories will be searched for plugins and they are
diff -r e9538cfd0d9c runtime/doc/options.txt
--- a/runtime/doc/options.txt   Wed May 25 21:18:06 2011 +0200
+++ b/runtime/doc/options.txt   Sun Jun 05 09:47:49 2011 +0800
@@ -2923,8 +2923,6 @@
        This will use the "c" filetype first, then the "doxygen" filetype.
        This works both for filetype plugins and for syntax files.  More than
        one dot may appear.
-       Do not confuse this option with 'osfiletype', which is for the file
-       type that is actually stored with the file.
        This option is not copied to another buffer, independent of the 's' or
        'S' flag in 'cpoptions'.
        Only normal file name characters can be used, "/\*?[|<>" are illegal.
@@ -5113,21 +5111,6 @@
        security reasons.
 
 
-                                       *'osfiletype'* *'oft'* *E366*
-'osfiletype' 'oft'     string (RISC-OS default: "Text",
-                               others default: "")
-                       local to buffer
-                       {not in Vi}
-                       {only available when compiled with the |+osfiletype|
-                       feature}
-       Some operating systems store extra information about files besides
-       name, datestamp and permissions.  This option contains the extra
-       information, the nature of which will vary between systems.
-       The value of this option is usually set when the file is loaded, and
-       is used to set the operating system file type when file is written.
-       It can affect the pattern matching of the automatic commands.
-       |autocmd-osfiletypes|
-
                                                *'paragraphs'* *'para'*
 'paragraphs' 'para'    string  (default "IPLPPPQPP TPHPLIPpLpItpplpipbp")
                        global
diff -r e9538cfd0d9c runtime/doc/quickref.txt
--- a/runtime/doc/quickref.txt  Wed May 25 21:18:06 2011 +0200
+++ b/runtime/doc/quickref.txt  Sun Jun 05 09:47:49 2011 +0800
@@ -800,7 +800,6 @@
 'omnifunc'       'ofu'     function for filetype-specific completion
 'opendevice'     'odev'    allow reading/writing devices on MS-Windows
 'operatorfunc'   'opfunc'  function to be called for |g@| operator
-'osfiletype'     'oft'     operating system-specific filetype information
 'paragraphs'     'para'    nroff macros that separate paragraphs
 'paste'                            allow pasting text
 'pastetoggle'    'pt'      key code that causes 'paste' to toggle
diff -r e9538cfd0d9c runtime/doc/various.txt
--- a/runtime/doc/various.txt   Wed May 25 21:18:06 2011 +0200
+++ b/runtime/doc/various.txt   Sun Jun 05 09:47:49 2011 +0800
@@ -360,8 +360,6 @@
 m  *+mzscheme/dyn*     Mzscheme interface |mzscheme-dynamic| |/dyn|
 m  *+netbeans_intg*    |netbeans|
 m  *+ole*              Win32 GUI only: |ole-interface|
-   *+osfiletype*       Support for the 'osfiletype' option and filetype
-                       checking in automatic commands.  |autocmd-osfiletypes|
 N  *+path_extra*       Up/downwards search in 'path' and 'tags'
 m  *+perl*             Perl interface |perl|
 m  *+perl/dyn*         Perl interface |perl-dynamic| |/dyn|
diff -r e9538cfd0d9c runtime/optwin.vim
--- a/runtime/optwin.vim        Wed May 25 21:18:06 2011 +0200
+++ b/runtime/optwin.vim        Sun Jun 05 09:47:49 2011 +0800
@@ -1110,7 +1110,7 @@
 endif
 
 
-if has("msdos") || has("os2") || has("win16") || has("win32") || 
has("osfiletype")
+if has("msdos") || has("os2") || has("win16") || has("win32")
   call <SID>Header("system specific")
   if has("msdos")
     call append("$", "bioskey\tcall the BIOS to get a keyoard character")
@@ -1118,11 +1118,6 @@
     call append("$", "conskey\tuse direct console I/O to get a keyboard 
character")
     call <SID>BinOptionG("consk", &consk)
   endif
-  if has("osfiletype")
-    call append("$", "osfiletype\tOS-specific information about the type of 
file")
-    call append("$", "\t(local to buffer)")
-    call <SID>OptionL("oft")
-  endif
   if has("msdos") || has("os2") || has("win16") || has("win32")
     call append("$", "shellslash\tuse forward slashes in file names; for 
Unix-like shells")
     call <SID>BinOptionG("ssl", &ssl)
diff -r e9538cfd0d9c src/option.c
--- a/src/option.c      Wed May 25 21:18:06 2011 +0200
+++ b/src/option.c      Sun Jun 05 09:47:49 2011 +0800
@@ -1894,9 +1894,6 @@
     {"optimize",    "opt",  P_BOOL|P_VI_DEF,
                            (char_u *)NULL, PV_NONE,
                            {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
-    {"osfiletype",  "oft",  P_STRING|P_ALLOCED|P_VI_DEF,
-                           (char_u *)NULL, PV_NONE,
-                           {(char_u *)0L, (char_u *)0L} SCRIPTID_INIT},
     {"paragraphs",  "para", P_STRING|P_VI_DEF,
                            (char_u *)&p_para, PV_NONE,
                            {(char_u *)"IPLPPPQPP TPHPLIPpLpItpplpipbp",

Raspunde prin e-mail lui