]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1759: filetype: generic log detection is too disturbing v9.1.1759
authorChristian Brabandt <cb@256bit.org>
Sun, 14 Sep 2025 18:13:11 +0000 (18:13 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 14 Sep 2025 18:13:11 +0000 (18:13 +0000)
Problem:  filetype: generic log detection is too disturbing
          (after v9.1.1755)
Solution: Revert setting log filetype

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index a68830e71ebe70019606746646e5566844425b28..629d3a1d0dfd47192c515e32b2bbc53a085ff8ab 100644 (file)
@@ -1,7 +1,7 @@
 " Vim support file to detect file types
 "
 " Maintainer:          The Vim Project <https://github.com/vim/vim>
-" Last Change:         2025 Aug 31
+" Last Change:         2025 Sep 14
 " Former Maintainer:   Bram Moolenaar <Bram@vim.org>
 
 " Listen very carefully, I will say this only once
@@ -3411,7 +3411,8 @@ au BufNewFile,BufRead *.blp                       setf blueprint
 au BufNewFile,BufRead *.bp                     setf bp
 
 " Generic log file
-au BufNewFile,BufRead *.log,*_log,*.LOG,*_LOG  setf log
+" Disabled cause it is too distracting
+" au BufNewFile,BufRead *.log,*_log,*.LOG,*_LOG        setf log
 
 " Use the filetype detect plugins.  They may overrule any of the previously
 " detected filetypes.
index 22d9f850fa71450679e69ba27d19b6bca2074c6d..05194cf33872b5c477432ccd84f33b9441447f00 100644 (file)
@@ -454,7 +454,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     lite: ['file.lite', 'file.lt'],
     litestep: ['/LiteStep/any/file.rc', 'any/LiteStep/any/file.rc'],
     livebook: ['file.livemd'],
-    log: ['file.log', 'file_log', 'file.LOG', 'file_LOG'],
+#    log: ['file.log', 'file_log', 'file.LOG', 'file_LOG'],
     logcheck: ['/etc/logcheck/file.d-some/file', '/etc/logcheck/file.d/file', 'any/etc/logcheck/file.d-some/file', 'any/etc/logcheck/file.d/file'],
     loginaccess: ['/etc/login.access', 'any/etc/login.access'],
     logindefs: ['/etc/login.defs', 'any/etc/login.defs'],
index e550f2f47962f3d94a60c1872402c66e81bcb0eb..b67476457d53f015f5cef07e856c9542967dd114 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1759,
 /**/
     1758,
 /**/