Skip to content

Commit

Permalink
runtime: Remove fallback :CompilerSet definition from compiler plugins
Browse files Browse the repository at this point in the history
The :CompilerSet command was added in version Vim 6.4 which was released
twenty years ago.  Other runtime files do not support versions of that
vintage so it is reasonable to remove this fallback command definition
now.

closes: #14399

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
dkearns authored and chrisbra committed Apr 4, 2024
1 parent cc59d62 commit 408281e
Show file tree
Hide file tree
Showing 105 changed files with 116 additions and 444 deletions.
5 changes: 1 addition & 4 deletions runtime/compiler/ant.vim
Expand Up @@ -2,16 +2,13 @@
" Compiler: ant
" Maintainer: Johannes Zellner <johannes@zellner.org>
" Last Change: Mi, 13 Apr 2005 22:50:07 CEST
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
finish
endif
let current_compiler = "ant"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
5 changes: 1 addition & 4 deletions runtime/compiler/bcc.vim
Expand Up @@ -2,16 +2,13 @@
" Compiler: bcc - Borland C
" Maintainer: Emile van Raaij (eraaij@xs4all.nl)
" Last Change: 2004 Mar 27
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
finish
endif
let current_compiler = "bcc"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

" A workable errorformat for Borland C
CompilerSet errorformat=%*[^0-9]%n\ %f\ %l:\ %m

Expand Down
5 changes: 1 addition & 4 deletions runtime/compiler/bdf.vim
Expand Up @@ -3,6 +3,7 @@
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Contributors: Enno Nagel
" Last Change: 2024 Mar 29
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
finish
Expand All @@ -12,10 +13,6 @@ let current_compiler = "bdf"
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=bdftopcf\ $*
CompilerSet errorformat=%ABDF\ %trror\ on\ line\ %l:\ %m,
\%-Z%p^,
Expand Down
1 change: 1 addition & 0 deletions runtime/compiler/cargo.vim
Expand Up @@ -2,6 +2,7 @@
" Compiler: Cargo Compiler
" Maintainer: Damien Radtke <damienradtke@gmail.com>
" Latest Revision: 2023-09-11
" 2024 Apr 03 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')
Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/checkstyle.vim
@@ -1,17 +1,13 @@
" Vim compiler file
" Compiler: Checkstyle
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2020 Aug 2
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "checkstyle"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/cm3.vim
@@ -1,17 +1,13 @@
" Vim compiler file
" Compiler: Critical Mass Modula-3 Compiler
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2021 Apr 08
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "cm3"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
5 changes: 1 addition & 4 deletions runtime/compiler/context.vim
Expand Up @@ -5,17 +5,14 @@ vim9script
# Former Maintainers: Nikolai Weibull <now@bitwi.se>
# Contributors: Enno Nagel
# Last Change: 2024 Mar 29
# 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("g:current_compiler")
finish
endif

import autoload '../autoload/context.vim'

if exists(":CompilerSet") != 2 # Older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

g:current_compiler = 'context'

if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) ||
Expand Down
5 changes: 1 addition & 4 deletions runtime/compiler/cs.vim
Expand Up @@ -3,6 +3,7 @@
" Maintainer: Yichao Zhou (broken.zhou@gmail.com)
" Previous Maintainer: Joseph H. Yao (hyao@sina.com)
" Last Change: Jul 22, 2019
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
finish
Expand All @@ -11,10 +12,6 @@ let current_compiler = "cs"
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

CompilerSet errorformat&
CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m,
\%trror%*[^:]:\ %m,
Expand Down
9 changes: 3 additions & 6 deletions runtime/compiler/csslint.vim
@@ -1,16 +1,13 @@
" Vim compiler file
" Compiler: csslint for CSS
" Maintainer: Daniel Moch <daniel@danielmoch.com>
" Last Change: 2016 May 21
" Maintainer: Daniel Moch <daniel@danielmoch.com>
" Last Change: 2016 May 21
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
finish
endif
let current_compiler = "csslint"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

CompilerSet makeprg=csslint\ --format=compact
CompilerSet errorformat=%-G,%-G%f:\ lint\ free!,%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ -\ %m,%f:\ line\ %l\\,\ col\ %c\\,\ %m
5 changes: 1 addition & 4 deletions runtime/compiler/cucumber.vim
Expand Up @@ -2,16 +2,13 @@
" Compiler: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
" Last Change: 2016 Aug 29
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
finish
endif
let current_compiler = "cucumber"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo-=C

Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/dart.vim
@@ -1,17 +1,13 @@
" Vim compiler file
" Compiler: Dart VM
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2019 May 08
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "dart"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/dart2js.vim
@@ -1,17 +1,13 @@
" Vim compiler file
" Compiler: Dart to JavaScript Compiler
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2019 May 08
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "dart2js"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/dart2native.vim
@@ -1,17 +1,13 @@
" Vim compiler file
" Compiler: Dart to Native Compiler
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2019 May 08
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "dart2native"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/dartanalyser.vim
@@ -1,17 +1,13 @@
" Vim compiler file
" Compiler: Dart Analyzer
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2019 May 08
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "dartanalyzer"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/dartdevc.vim
@@ -1,17 +1,13 @@
" Vim compiler file
" Compiler: Dart Development Compiler
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2019 May 08
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "dartdevc"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/dartdoc.vim
@@ -1,17 +1,13 @@
" Vim compiler file
" Compiler: Dart Documentation Generator
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2019 May 08
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "dartdoc"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/dartfmt.vim
@@ -1,17 +1,13 @@
" Vim compiler file
" Compiler: Dart Formatter
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2019 May 08
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "dartfmt"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
8 changes: 1 addition & 7 deletions runtime/compiler/decada.vim
Expand Up @@ -14,6 +14,7 @@
" 08.09.2006 MK Correct double load protection.
" Help Page: compiler-decada
"------------------------------------------------------------------------------
" Last Change: 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if (exists("current_compiler") && current_compiler == "decada") || version < 700
finish
Expand All @@ -34,13 +35,6 @@ if !exists("g:decada")
call g:decada.Set_Session ()
endif

if exists(":CompilerSet") != 2
"
" plugin loaded by other means then the "compiler" command
"
command -nargs=* CompilerSet setlocal <args>
endif

execute "CompilerSet makeprg=" . escape (g:decada.Make_Command, ' ')
execute "CompilerSet errorformat=" . escape (g:decada.Error_Format, ' ')

Expand Down
5 changes: 1 addition & 4 deletions runtime/compiler/dot.vim
Expand Up @@ -2,16 +2,13 @@
" Compiler: ATT dot
" Maintainer: Marcos Macedo <bar4ka@bol.com.br>
" Last Change: 2024 March 21
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
finish
endif
let current_compiler = "dot"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

CompilerSet makeprg=dot\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\"
" matches error messages as below skipping final part after line number
" Error: ./file.dot: syntax error in line 1 near 'rankdir'
Expand Down
5 changes: 1 addition & 4 deletions runtime/compiler/dotnet.vim
Expand Up @@ -2,6 +2,7 @@
" Compiler: dotnet build (.NET CLI)
" Maintainer: Nick Jensen <nickspoon@gmail.com>
" Last Change: 2022-12-06
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
" License: Vim (see :h license)
" Repository: https://github.com/nickspoons/vim-cs

Expand All @@ -10,10 +11,6 @@ if exists("current_compiler")
endif
let current_compiler = "dotnet"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

Expand Down
1 change: 1 addition & 0 deletions runtime/compiler/erlang.vim
Expand Up @@ -2,6 +2,7 @@
" Compiler: Erlang
" Maintainer: Dmitry Vasiliev <dima at hlabs dot org>
" Last Change: 2019 Jul 23
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)

if exists("current_compiler")
finish
Expand Down
6 changes: 1 addition & 5 deletions runtime/compiler/eruby.vim
Expand Up @@ -3,17 +3,13 @@
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" URL: https://github.com/vim-ruby/vim-ruby
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2018 Jan 25
" Last Change: 2024 Apr 03

if exists("current_compiler")
finish
endif
let current_compiler = "eruby"

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo-=C

Expand Down

0 comments on commit 408281e

Please sign in to comment.