runtime: Remove more fallback :CompilerSet definitions from compiler plugins 
(#14413)

Commit: 
https://github.com/vim/vim/commit/cec44eae82c15a7daa54528696040d6eca7cc3af
Author: Yinzuo Jiang <[email protected]>
Date:   Sat Apr 6 01:59:39 2024 +0800

    runtime: Remove more fallback :CompilerSet definitions from compiler 
plugins (https://github.com/vim/vim/issues/14413)
    
    Continue with https://github.com/vim/vim/issues/14399
    
    Signed-off-by: jiangyinzuo <[email protected]>
    Signed-off-by: Doug Kearns <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/compiler/cargo.vim b/runtime/compiler/cargo.vim
index cae2e517e..bbea45dee 100644
--- a/runtime/compiler/cargo.vim
+++ b/runtime/compiler/cargo.vim
@@ -2,7 +2,7 @@
 " Compiler:         Cargo Compiler
 " Maintainer:       Damien Radtke <[email protected]>
 " Latest Revision:  2023-09-11
-"                   2024 Apr 03 by The Vim Project (removed :CompilerSet 
definition)
+"                   2024 Apr 05 by The Vim Project (removed :CompilerSet 
definition)
 " For bugs, patches and license go to https://github.com/rust-lang/rust.vim
 
 if exists('current_compiler')
@@ -16,10 +16,6 @@ let s:save_cpo = &cpo
 set cpo&vim
 " vint: +ProhibitAbbreviationOption
 
-if exists(':CompilerSet') != 2
-    command -nargs=* CompilerSet setlocal <args>
-endif
-
 if exists('g:cargo_makeprg_params')
     execute 'CompilerSet makeprg=cargo\ '.escape(g:cargo_makeprg_params, ' 
\|"').'\ $*'
 else
diff --git a/runtime/compiler/go.vim b/runtime/compiler/go.vim
index eef897f4a..9c1a6f311 100644
--- a/runtime/compiler/go.vim
+++ b/runtime/compiler/go.vim
@@ -2,17 +2,13 @@
 " Compiler:    Go
 " Maintainer:  David Barnett (https://github.com/google/vim-ft-go)
 " Last Change: 2014 Aug 16
-"              2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
+"              2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
 
 if exists('current_compiler')
   finish
 endif
 let current_compiler = 'go'
 
-if exists(':CompilerSet') != 2
-  command -nargs=* CompilerSet setlocal <args>
-endif
-
 let s:save_cpo = &cpo
 set cpo-=C
 
diff --git a/runtime/compiler/hare.vim b/runtime/compiler/hare.vim
index 5bece78ce..c98bbb9c6 100644
--- a/runtime/compiler/hare.vim
+++ b/runtime/compiler/hare.vim
@@ -2,7 +2,7 @@
 " Compiler: Hare Compiler
 " Maintainer: Amelia Clarke <[email protected]>
 " Last Change: 2022-09-21
-"              2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
+"              2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
 
 if exists("g:current_compiler")
   finish
@@ -12,10 +12,6 @@ let g:current_compiler = "hare"
 let s:cpo_save = &cpo
 set cpo&vim
 
-if exists(':CompilerSet') != 2
-  command -nargs=* CompilerSet setlocal <args>
-endif
-
 if filereadable("Makefile") || filereadable("makefile")
   CompilerSet makeprg=make
 else
diff --git a/runtime/compiler/mcs.vim b/runtime/compiler/mcs.vim
index 4d94f47cd..0c265b3de 100644
--- a/runtime/compiler/mcs.vim
+++ b/runtime/compiler/mcs.vim
@@ -3,7 +3,7 @@
 " Maintainer:   Jarek Sobiecki <[email protected]>
 " Contributors: Peter Collingbourne and Enno Nagel
 " Last Change:  2024 Mar 29
-"              2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
+"               2024 Apr 05 by The Vim Project (removed :CompilerSet 
definition)
 
 if exists("current_compiler")
   finish
@@ -13,10 +13,6 @@ let current_compiler = "mcs"
 let s:cpo_save = &cpo
 set cpo-=C
 
-if exists(":CompilerSet") != 2 " Older Vim always used :setlocal
-  command -nargs=* CompilerSet setlocal <args>
-endif
-
 CompilerSet makeprg=mcs
 CompilerSet errorformat=
          \%D%.%#Project\ \"%f/%[%^/\"]%#\"%.%#,
diff --git a/runtime/compiler/scdoc.vim b/runtime/compiler/scdoc.vim
index c37969f89..364ddc179 100644
--- a/runtime/compiler/scdoc.vim
+++ b/runtime/compiler/scdoc.vim
@@ -2,6 +2,7 @@
 " Compiler: scdoc
 " Maintainer: Gregory Anders <[email protected]>
 " Last Updated: 2019-10-24
+"               2024 Apr 05 by The Vim Project (removed :CompilerSet 
definition)
 " Upstream: https://github.com/gpanders/vim-scdoc
 
 if exists('current_compiler')
@@ -9,9 +10,5 @@ if exists('current_compiler')
 endif
 let current_compiler = 'scdoc'
 
-if exists(':CompilerSet') != 2
-    command -nargs=* CompilerSet setlocal <args>
-endif
-
 CompilerSet makeprg=scdoc\ <\ %\ 2>&1
 CompilerSet errorformat=Error\ at\ %l:%c:\ %m,%-G%.%#
diff --git a/runtime/compiler/zig_build.vim b/runtime/compiler/zig_build.vim
index 0441267b6..5a61c9f42 100644
--- a/runtime/compiler/zig_build.vim
+++ b/runtime/compiler/zig_build.vim
@@ -1,6 +1,7 @@
 " Vim compiler file
 " Compiler: Zig Compiler (zig build)
 " Upstream: https://github.com/ziglang/zig.vim
+" Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
 
 if exists('current_compiler')
   finish
@@ -11,11 +12,6 @@ let current_compiler = 'zig_build'
 let s:save_cpo = &cpo
 set cpo&vim
 
-
-if exists(':CompilerSet') != 2
-  command -nargs=* CompilerSet setlocal <args>
-endif
-
 if exists('g:zig_build_makeprg_params')
        execute 'CompilerSet makeprg=zig\ build\ 
'.escape(g:zig_build_makeprg_params, ' \|"').'\ $*'
 else
diff --git a/runtime/compiler/zig_build_exe.vim 
b/runtime/compiler/zig_build_exe.vim
index 20f0bb336..259d0e267 100644
--- a/runtime/compiler/zig_build_exe.vim
+++ b/runtime/compiler/zig_build_exe.vim
@@ -1,6 +1,7 @@
 " Vim compiler file
 " Compiler: Zig Compiler (zig build-exe)
 " Upstream: https://github.com/ziglang/zig.vim
+" Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
 
 if exists('current_compiler')
   finish
@@ -11,11 +12,6 @@ let current_compiler = 'zig_build_exe'
 let s:save_cpo = &cpo
 set cpo&vim
 
-
-if exists(':CompilerSet') != 2
-  command -nargs=* CompilerSet setlocal <args>
-endif
-
 if has('patch-7.4.191')
   CompilerSet makeprg=zig\ build-exe\ \%:S\ \$* 
 else
diff --git a/runtime/compiler/zig_test.vim b/runtime/compiler/zig_test.vim
index a82d2a637..dafeb6f1e 100644
--- a/runtime/compiler/zig_test.vim
+++ b/runtime/compiler/zig_test.vim
@@ -1,6 +1,7 @@
 " Vim compiler file
 " Compiler: Zig Compiler (zig test)
 " Upstream: https://github.com/ziglang/zig.vim
+" Last Change: 2024 Apr 05 by The Vim Project (removed :CompilerSet definition)
 
 if exists('current_compiler')
   finish
@@ -11,11 +12,6 @@ let current_compiler = 'zig_test'
 let s:save_cpo = &cpo
 set cpo&vim
 
-
-if exists(':CompilerSet') != 2
-  command -nargs=* CompilerSet setlocal <args>
-endif
-
 if has('patch-7.4.191')
   CompilerSet makeprg=zig\ test\ \%:S\ \$* 
 else

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rsnrG-00AIFX-Ow%40256bit.org.

Raspunde prin e-mail lui