From d0af3bcee1d91514a33fbaf19ccc2aa2ab73ba40 Mon Sep 17 00:00:00 2001 From: Hirohito Higashi Date: Thu, 21 May 2026 19:03:50 +0000 Subject: [PATCH] runtime(doc): fix help tags for removed/reused error codes Problem: Several error codes (E614, E1319, E1321, E1323, E1400, E1401, E1402, E1406) were removed from errors.h in v9.1.0600 but their *Ennn* tags remained in the help files, so :help Ennn jumps to obsolete locations. E1395 was later reused with a new meaning ("Using a null class") in v9.1.1119, but its tag is still placed in the type-alias section. Solution: Remove the stale *Ennn* tags from the help files. Move *E1395* to the vim9.txt null-values section to match its current meaning. Also fix the indentation of *E1411*. Regenerate runtime/doc/tags. closes: #20279 Signed-off-by: Hirohito Higashi Signed-off-by: Christian Brabandt --- runtime/doc/builtin.txt | 4 ++-- runtime/doc/eval.txt | 6 +++--- runtime/doc/tags | 10 +--------- runtime/doc/vim9.txt | 4 ++-- runtime/doc/vim9class.txt | 10 +++++----- 5 files changed, 13 insertions(+), 21 deletions(-) diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index e9036c18f1..0268d158e7 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.2. Last change: 2026 May 04 +*builtin.txt* For Vim version 9.2. Last change: 2026 May 21 VIM REFERENCE MANUAL by Bram Moolenaar @@ -6259,7 +6259,7 @@ insert({object}, {item} [, {idx}]) *insert()* Return type: |Number| -instanceof({object}, {class}) *instanceof()* *E614* *E616* *E693* +instanceof({object}, {class}) *instanceof()* *E616* *E693* The result is a Number, which is |TRUE| when the {object} argument is a direct or indirect instance of a |Class|, |Interface|, or class |:type| alias specified by {class}. diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 2bcad93a39..a451c9f2fe 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 9.2. Last change: 2026 May 15 +*eval.txt* For Vim version 9.2. Last change: 2026 May 21 VIM REFERENCE MANUAL by Bram Moolenaar @@ -170,8 +170,8 @@ Note that " " and "0" are also non-empty strings, thus considered to be TRUE. A List, Dictionary or Float is not a Number or String, thus evaluate to FALSE. *E611* *E745* *E728* *E703* *E729* *E730* *E731* *E908* *E910* - *E913* *E974* *E975* *E976* *E1319* *E1320* *E1321* *E1322* - *E1323* *E1324* *E1520* *E1522* + *E913* *E974* *E975* *E976* *E1320* *E1322* *E1324* *E1520* + *E1522* |List|, |Tuple|, |Dictionary|, |Funcref|, |Job|, |Channel|, |Blob|, |Class| and |object| types are not automatically converted. diff --git a/runtime/doc/tags b/runtime/doc/tags index eb7e219293..6cac191f33 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -4562,12 +4562,9 @@ E1315 vim9class.txt /*E1315* E1316 vim9class.txt /*E1316* E1317 vim9class.txt /*E1317* E1318 vim9class.txt /*E1318* -E1319 eval.txt /*E1319* E132 userfunc.txt /*E132* E1320 eval.txt /*E1320* -E1321 eval.txt /*E1321* E1322 eval.txt /*E1322* -E1323 eval.txt /*E1323* E1324 eval.txt /*E1324* E1325 vim9class.txt /*E1325* E1326 vim9class.txt /*E1326* @@ -4644,19 +4641,15 @@ E1391 eval.txt /*E1391* E1392 eval.txt /*E1392* E1393 vim9class.txt /*E1393* E1394 vim9class.txt /*E1394* -E1395 vim9class.txt /*E1395* +E1395 vim9.txt /*E1395* E1396 vim9class.txt /*E1396* E1397 vim9class.txt /*E1397* E1398 vim9class.txt /*E1398* E1399 vim9class.txt /*E1399* E140 message.txt /*E140* -E1400 vim9class.txt /*E1400* -E1401 vim9class.txt /*E1401* -E1402 vim9class.txt /*E1402* E1403 vim9class.txt /*E1403* E1404 vim9class.txt /*E1404* E1405 vim9class.txt /*E1405* -E1406 vim9class.txt /*E1406* E1407 vim9class.txt /*E1407* E1408 vim9class.txt /*E1408* E1409 vim9class.txt /*E1409* @@ -5273,7 +5266,6 @@ E610 editing.txt /*E610* E611 eval.txt /*E611* E612 sign.txt /*E612* E613 print.txt /*E613* -E614 builtin.txt /*E614* E616 builtin.txt /*E616* E617 options.txt /*E617* E618 print.txt /*E618* diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index 5d6b71b5c2..84502f19cf 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -1,4 +1,4 @@ -*vim9.txt* For Vim version 9.2. Last change: 2026 May 04 +*vim9.txt* For Vim version 9.2. Last change: 2026 May 21 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1117,7 +1117,7 @@ should be used. *false* *true* *null* *null_blob* *null_channel* *null_class* *null_dict* *null_function* *null_job* *null_list* *null_object* *null_partial* *null_string* - *E1034* + *E1034* *E1395* In Vim9 script one can use the following predefined values: > true false diff --git a/runtime/doc/vim9class.txt b/runtime/doc/vim9class.txt index 6f936a01c0..7c92c455ca 100644 --- a/runtime/doc/vim9class.txt +++ b/runtime/doc/vim9class.txt @@ -1,4 +1,4 @@ -*vim9class.txt* For Vim version 9.2. Last change: 2026 Mar 07 +*vim9class.txt* For Vim version 9.2. Last change: 2026 May 21 VIM REFERENCE MANUAL by Bram Moolenaar @@ -110,14 +110,14 @@ referred to with the "this." prefix. This is different from languages like Java and TypeScript. The naming convention makes the object members easy to spot. Also, when a variable does not have the "this." prefix you know it is not an object variable. - *E1411* + *E1411* From outside the class definition, access an object's methods and variables by using the object name followed by a dot following by the member: > pos.lnum pos.SetCol(10) < - *E1405* *E1406* + *E1405* A class name cannot be used as an expression. A class name cannot be used in the left-hand-side of an assignment. @@ -921,7 +921,7 @@ methods defined in a class: > 7. Type definition *typealias* *Vim9-type* *:type* - *E1393* *E1395* *E1396* *E1397* *E1398* + *E1393* *E1396* *E1397* *E1398* A type definition is giving a name to a type specification. This is also known as a "type alias". The type alias can be used wherever a built-in type can be used. Example: > @@ -942,7 +942,7 @@ types can be aliased. A type alias can be created only at the script level and not inside a function. A type alias can be exported and used across scripts. - *E1400* *E1401* *E1402* *E1403* *E1407* + *E1403* *E1407* A type alias cannot be used as an expression. A type alias cannot be used in the left-hand-side of an assignment.