runtime(compiler): add comment for Dispatch
Commit:
https://github.com/vim/vim/commit/4fa2dd2405a8d11bf1d1cb3553adb6fba53dc19f
Author: Konfekt <[email protected]>
Date: Tue Mar 11 21:35:48 2025 +0100
runtime(compiler): add comment for Dispatch
closes: https://github.com/vim/vim/issues/16854
Signed-off-by: Konfekt <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/compiler/context.vim b/runtime/compiler/context.vim
index 093943e22..c3780d461 100644
--- a/runtime/compiler/context.vim
+++ b/runtime/compiler/context.vim
@@ -6,6 +6,7 @@ vim9script
# Contributors: Enno Nagel
# Last Change: 2024 Mar 29
# 2024 Apr 03 by The Vim Project (removed :CompilerSet
definition)
+# 2025 Mar 11 by The Vim Project (add comment for Dispatch)
if exists("g:current_compiler")
finish
@@ -15,6 +16,7 @@ import autoload '../autoload/context.vim'
g:current_compiler = 'context'
+# CompilerSet makeprg=context
if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) ||
(!filereadable('Makefile') && !filereadable('makefile'))
var makeprg = join(context.ConTeXtCmd(shellescape(expand('%:p:t'))), ' ')
diff --git a/runtime/compiler/javac.vim b/runtime/compiler/javac.vim
index 53cd772ed..d4f24cd21 100644
--- a/runtime/compiler/javac.vim
+++ b/runtime/compiler/javac.vim
@@ -2,6 +2,7 @@
" Compiler: Java Development Kit Compiler
" Maintainer: Doug Kearns <[email protected]>
" Last Change: 2024 Nov 19 (enable local javac_makeprg_params)
+" 2025 Mar 11 (add comment for Dispatch)
if exists("current_compiler")
finish
@@ -11,6 +12,7 @@ let current_compiler = "javac"
let s:cpo_save = &cpo
set cpo&vim
+" CompilerSet makeprg=javac
execute $'CompilerSet makeprg=javac\ {escape(get(b:, 'javac_makeprg_params',
get(g:, 'javac_makeprg_params', '')), ' \|"')}'
CompilerSet errorformat=%E%f:%l:\ error:\ %m,
diff --git a/runtime/compiler/powershell.vim b/runtime/compiler/powershell.vim
index 3d37d7c84..d5dd69209 100644
--- a/runtime/compiler/powershell.vim
+++ b/runtime/compiler/powershell.vim
@@ -6,6 +6,7 @@
" 2024 Apr 03 by the Vim Project (removed :CompilerSet definition)
" 2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg)
" 2024 Nov 19 by the Vim Project (properly escape makeprg setting)
+" 2025 Mar 11 by the Vim Project (add comment for Dispatch)
if exists("current_compiler")
finish
@@ -50,6 +51,8 @@ let s:makeprg = g:ps1_makeprg_cmd .. ' %:p:S'
" + CategoryInfo : ObjectNotFound: (Write-Ouput:String) [],
CommandNotFoundException
" + FullyQualifiedErrorId : CommandNotFoundException
+" CompilerSet makeprg=pwsh
+" CompilerSet makeprg=powershell
execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"')
" Showing error in context with underlining.
diff --git a/runtime/compiler/tex.vim b/runtime/compiler/tex.vim
index bc1623729..529f7f771 100644
--- a/runtime/compiler/tex.vim
+++ b/runtime/compiler/tex.vim
@@ -6,6 +6,7 @@
" 2024 Apr 03 by the Vim Project (removed :CompilerSet definition)
" 2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg)
" 2024 Nov 19 by the Vim Project (properly escape makeprg setting)
+" 2025 Mar 11 by the Vim Project (add comment for Dispatch)
if exists("current_compiler")
finish
@@ -28,6 +29,7 @@ if exists('b:tex_ignore_makefile') ||
exists('g:tex_ignore_makefile') ||
let current_compiler = "latex"
endif
let s:makeprg=current_compiler .. ' -interaction=nonstopmode'
+ " CompilerSet makeprg=latex
execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"')
else
let current_compiler = 'make'
diff --git a/runtime/compiler/typst.vim b/runtime/compiler/typst.vim
index 13699f467..b7e5ff550 100644
--- a/runtime/compiler/typst.vim
+++ b/runtime/compiler/typst.vim
@@ -2,8 +2,9 @@
" Language: Typst
" Previous Maintainer: Gregory Anders
" Maintainer: Luca Saccarola <[email protected]>
+" Based On: https://github.com/kaarmu/typst.vim
" Last Change: 2024 Dec 09
-" Based on: https://github.com/kaarmu/typst.vim
+" 2025 Mar 11 by the Vim Project (add comment for Dispatch)
if exists('current_compiler')
finish
@@ -13,4 +14,5 @@ let current_compiler = get(g:, 'typst_cmd', 'typst')
" With `--diagnostic-format` we can use the default errorformat
let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short',
'%:S']
+" CompilerSet makeprg=typst
execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ')
--
--
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/E1ts6TI-004h14-2M%40256bit.org.