Skip to content

Commit b68e549

Browse files
authored
Merge pull request #1903 from h-east/update-eval
Update eval.{txt,jax}
2 parents a602e82 + 948bca8 commit b68e549

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

doc/eval.jax

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim バージョン 9.1. Last change: 2024 Dec 23
1+
*eval.txt* For Vim バージョン 9.1. Last change: 2025 Jan 02
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1898,7 +1898,8 @@ Note これはつまり、ファイルタイププラグインはバッファご
18981898

18991899
☆Vimの定義済変数 *vim-variable* *v:var* *v:*
19001900
*E963* *E1063*
1901-
一部の変数はユーザーが設定できるが、型を変更することはできない。
1901+
ほとんどの変数は読み取り専用である。ユーザーが設定できる変数については、以下の
1902+
変数の説明に記載されている。型は変更できない。
19021903

19031904
*v:argv* *argv-variable*
19041905
v:argv Vimの起動に使用したコマンドライン引数。これは文字列のリストで
@@ -2111,7 +2112,7 @@ v:event 現在の |autocommand| に関する情報を含む辞書。辞書に
21112112
<
21122113
*v:exception* *exception-variable*
21132114
v:exception 最も直近に捕捉され、まだ終了していない例外の値。
2114-
|v:throwpoint||throw-variables|を参照
2115+
|v:stacktrace||v:throwpoint||throw-variables| も参照
21152116
例: >
21162117
:try
21172118
: throw "oops"
@@ -2481,6 +2482,11 @@ v:sizeofpointer ポインタのバイト数。Vimがどのようにコンパイ
24812482
る。これは、テストで期待通りの結果が得られるかどうかを判断する
24822483
場合にのみ役立つ。
24832484

2485+
*v:stacktrace* *stacktrace-variable*
2486+
v:stacktrace 最後にキャッチされて終了していない例外のスタックトレース。ス
2487+
タックトレースの構造については、|getstacktrace()| を参照。
2488+
|v:exception||v:throwpoint||throw-variables| も参照。
2489+
24842490
*v:statusmsg* *statusmsg-variable*
24852491
v:statusmsg 最後に表示されたステータスメッセージ。この変数は代入すること
24862492
が許されている。
@@ -2609,8 +2615,8 @@ v:this_session 最後にロードされたか、セーブされたセッショ
26092615

26102616
*v:throwpoint* *throwpoint-variable*
26112617
v:throwpoint 最も直近に捕捉されてまだ終了していない例外が発生した位置。キー
2612-
ボードから入力されたコマンドは記録されていない。|v:exception|
2613-
|throw-variables|も参照。
2618+
ボードから入力されたコマンドは記録されていない。|v:exception|
2619+
|v:stacktrace||throw-variables| も参照。
26142620
例: >
26152621
:try
26162622
: throw "oops"
@@ -3731,9 +3737,10 @@ thrown" を表示する。例外は、順番に ":catch" コマンドに照合
37313737
: catch /^\d\+$/
37323738
: echo "Number thrown. Value is" v:exception
37333739
3734-
また、どこで例外が発生したかも知りたいだろう。これは|v:throwpoint|に保持されて
3735-
いる。Note "v:exception" と "v:throwpoint" は最も直近に捕捉された例外に対し、
3736-
それが終了するまで有効である。
3740+
例外がどこでスローされたかにも興味があるかもしれない。これは |v:throwpoint|
3741+
保存される。また、スタックトレースは |v:stacktrace| から取得できる。
3742+
Note "v:exception"、"v:stacktrace" および "v:throwpoint" は最も直近に捕捉され
3743+
た例外に対し、それが終了するまで有効であることに注意。
37373744
例: >
37383745
37393746
:function! Caught()

en/eval.txt

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 9.1. Last change: 2024 Dec 23
1+
*eval.txt* For Vim version 9.1. Last change: 2025 Jan 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1953,7 +1953,8 @@ variables for each buffer. Use local buffer variables instead |b:var|.
19531953

19541954
PREDEFINED VIM VARIABLES *vim-variable* *v:var* *v:*
19551955
*E963* *E1063*
1956-
Some variables can be set by the user, but the type cannot be changed.
1956+
Most variables are read-only, when a variable can be set by the user, it will
1957+
be mentioned at the variable description below. The type cannot be changed.
19571958

19581959
*v:argv* *argv-variable*
19591960
v:argv The command line arguments Vim was invoked with. This is a
@@ -2172,7 +2173,8 @@ v:event Dictionary containing information about the current
21722173
<
21732174
*v:exception* *exception-variable*
21742175
v:exception The value of the exception most recently caught and not
2175-
finished. See also |v:throwpoint| and |throw-variables|.
2176+
finished. See also |v:stacktrace|, |v:throwpoint|, and
2177+
|throw-variables|.
21762178
Example: >
21772179
:try
21782180
: throw "oops"
@@ -2548,6 +2550,12 @@ v:sizeofpointer Number of bytes in a pointer. Depends on how Vim was compiled.
25482550
This is only useful for deciding whether a test will give the
25492551
expected result.
25502552

2553+
*v:stacktrace* *stacktrace-variable*
2554+
v:stacktrace The stack trace of the exception most recently caught and
2555+
not finished. Refer to |getstacktrace()| for the structure of
2556+
stack trace. See also |v:exception|, |v:throwpoint|, and
2557+
|throw-variables|.
2558+
25512559
*v:statusmsg* *statusmsg-variable*
25522560
v:statusmsg Last given status message. It's allowed to set this variable.
25532561

@@ -2676,7 +2684,7 @@ v:this_session Full filename of the last loaded or saved session file. See
26762684
*v:throwpoint* *throwpoint-variable*
26772685
v:throwpoint The point where the exception most recently caught and not
26782686
finished was thrown. Not set when commands are typed. See
2679-
also |v:exception| and |throw-variables|.
2687+
also |v:exception|, |v:stacktrace|, and |throw-variables|.
26802688
Example: >
26812689
:try
26822690
: throw "oops"
@@ -3856,7 +3864,8 @@ in the variable |v:exception|: >
38563864
: echo "Number thrown. Value is" v:exception
38573865
38583866
You may also be interested where an exception was thrown. This is stored in
3859-
|v:throwpoint|. Note that "v:exception" and "v:throwpoint" are valid for the
3867+
|v:throwpoint|. And you can obtain the stack trace from |v:stacktrace|.
3868+
Note that "v:exception", "v:stacktrace" and "v:throwpoint" are valid for the
38603869
exception most recently caught as long it is not finished.
38613870
Example: >
38623871

0 commit comments

Comments
 (0)