patch 9.1.1759: filetype: generic log detection is too disturbing

Commit: 
https://github.com/vim/vim/commit/48f1d6442d5d255d1b5a353160bff7470afa74cb
Author: Christian Brabandt <[email protected]>
Date:   Sun Sep 14 18:13:11 2025 +0000

    patch 9.1.1759: filetype: generic log detection is too disturbing
    
    Problem:  filetype: generic log detection is too disturbing
              (after v9.1.1755)
    Solution: Revert setting log filetype
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index a68830e71..629d3a1d0 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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 <[email protected]>
 
 " 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.
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 22d9f850f..05194cf33 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index e550f2f47..b67476457 100644
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1759,
 /**/
     1758,
 /**/

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uxrUC-006WOc-Ow%40256bit.org.

Raspunde prin e-mail lui