-
Notifications
You must be signed in to change notification settings - Fork 65
Update quickfix.{txt,jax} #1899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| *quickfix.txt* For Vim バージョン 9.1. Last change: 2024 Dec 16 | ||
| *quickfix.txt* For Vim バージョン 9.1. Last change: 2024 Dec 27 | ||
|
|
||
|
|
||
| VIMリファレンスマニュアル by Bram Moolenaar | ||
|
|
@@ -1374,6 +1374,70 @@ Vim コマンドは 'makeprg' [0] に習熟していると、デフォルトア | |
| \ function('GenericPostCompilerCommand'), | ||
| \ } | ||
|
|
||
| "PostCompilerAction" が利用可能な場合、"PostCompilerActionExecutor" もサポート | ||
| される。その値は、常に文字列型の単一のパラメータを宣言し、|:cc| (または |:ll|) | ||
| の現在のステータスを確認した後、保留中のポストコンパイラアクションを含む | ||
| |:execute| をその引数にディスパッチできるかどうかを決定する関数を指す Funcref | ||
| である必要がある: >vim | ||
|
|
||
| function! GenericPostCompilerActionExecutor(action) abort | ||
| try | ||
| cc | ||
| catch /\<E42:/ | ||
| execute a:action | ||
| endtry | ||
| endfunction | ||
|
|
||
| 補足として、利用可能な "Pre*Action" (または "*Pre*Command") の一部またはすべて | ||
| は |:make| (または同等のもの) の前に実装内で `:doautocmd java_spotbugs_post | ||
| User` を実行して、一度だけ実行される |ShellCmdPost| `:autocmd` を定義し、 | ||
| "PostCompilerActionExecutor" が呼び出されるように手配する。その後、このイベン | ||
| トを使用するために `:doautocmd java_spotbugs_post ShellCmdPost` を実行する: | ||
| >vim | ||
| function! GenericPreCompilerCommand(arguments) abort | ||
| if !exists('g:spotbugs_compilation_done') | ||
| doautocmd java_spotbugs_post User | ||
| execute 'make ' . a:arguments | ||
| " only run doautocmd when :make was synchronous | ||
| " see note below | ||
| doautocmd java_spotbugs_post ShellCmdPost " XXX: (a) | ||
| let g:spotbugs_compilation_done = 1 | ||
| else | ||
| cc | ||
| endif | ||
| endfunction | ||
|
|
||
| function! GenericPreCompilerTestCommand(arguments) abort | ||
| if !exists('g:spotbugs_test_compilation_done') | ||
| doautocmd java_spotbugs_post User | ||
| execute 'make ' . a:arguments | ||
| " only run doautocmd when :make was synchronous | ||
| " see note below | ||
|
||
| doautocmd java_spotbugs_post ShellCmdPost " XXX: (b) | ||
| let g:spotbugs_test_compilation_done = 1 | ||
| else | ||
| cc | ||
| endif | ||
| endfunction | ||
|
|
||
| let g:spotbugs_properties = { | ||
| \ 'compiler': 'maven', | ||
| \ 'DefaultPreCompilerCommand': | ||
| \ function('GenericPreCompilerCommand'), | ||
| \ 'DefaultPreCompilerTestCommand': | ||
| \ function('GenericPreCompilerTestCommand'), | ||
| \ 'PostCompilerActionExecutor': | ||
| \ function('GenericPostCompilerActionExecutor'), | ||
| \ } | ||
|
|
||
| `:make` に相当するコマンドが非同期実行が可能で `ShellCmdPost` イベントを消費で | ||
| きる場合、非ブロッキング実行の順序を維持するために | ||
| `:doautocmd java_spotbugs_post ShellCmdPost` をそのような "*Action" (または | ||
| "*Command") 実装 (つまり、リストされている例の `(a)` と `(b)` の行) から削除 | ||
| し、通知 (以下を参照) を抑制する必要がある。 | ||
| `ShellCmdPost` `:autocmd` は、その名前を "augroupForPostCompilerAction" キーに | ||
| 割り当てることで、任意の |:augroup| に関連付けることができる。 | ||
|
|
||
| デフォルトのアクションが目的のワークフローに適していない場合は、任意の関数を自 | ||
| 分で記述し、その Funcref をサポートされているキー "PreCompilerAction"、 | ||
| "PreCompilerTestAction"、および "PostCompilerAction" に一致させて続行する。 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
「次の doautocmd は :make が同期のときのみ実行される
下記の注を参照」
みたいな感じに訳していいかなと思います
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
忘れてました。失礼。訳はGoogle翻訳寄りにしています。