changeset 28265:67ef250562e5 v8.2.4658

patch 8.2.4658: org-mode files are not recognized Commit: https://github.com/vim/vim/commit/3a6f952cc87065a4cf1f6502b2054ba99fdf45ed Author: ranjithshegde <ranjithshegde@gmail.com> Date: Thu Mar 31 20:24:35 2022 +0100 patch 8.2.4658: org-mode files are not recognized Problem: Org-mode files are not recognized. Solution: Add patterns to recognize "org" files. (closes https://github.com/vim/vim/issues/10046)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Mar 2022 21:30:03 +0200
parents 9c13b183de2e
children 0b12ce9ae38f
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1277,6 +1277,9 @@ au BufNewFile,BufRead *.[Oo][Pp][Ll]		se
 " Oracle config file
 au BufNewFile,BufRead *.ora			setf ora
 
+" Org
+au BufNewFile,BufRead *.org,*.org_archive	setf org
+
 " Packet filter conf
 au BufNewFile,BufRead pf.conf			setf pf
 
@@ -1732,7 +1735,7 @@ au BufNewFile,BufRead .zshrc,.zshenv,.zl
 au BufNewFile,BufRead *.zsh			setf zsh
 
 " Scheme
-au BufNewFile,BufRead *.scm,*.ss,*.sld,*.rkt,*.rktd,*.rktl 	setf scheme
+au BufNewFile,BufRead *.scm,*.ss,*.sld,*.rkt,*.rktd,*.rktl	setf scheme
 
 " Screen RC
 au BufNewFile,BufRead .screenrc,screenrc	setf screen
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -382,6 +382,7 @@ let s:filename_checks = {
     \ 'opam': ['opam', 'file.opam', 'file.opam.template'],
     \ 'openroad': ['file.or'],
     \ 'ora': ['file.ora'],
+    \ 'org': ['file.org', 'file.org_archive'],
     \ 'pamconf': ['/etc/pam.conf', '/etc/pam.d/file', 'any/etc/pam.conf', 'any/etc/pam.d/file'],
     \ 'pamenv': ['/etc/security/pam_env.conf', '/home/user/.pam_environment', '.pam_environment', 'pam_env.conf'],
     \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'],
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4658,
+/**/
     4657,
 /**/
     4656,