From 9ce42c37bd8e746f26a319659966ec69f7683496 Mon Sep 17 00:00:00 2001 From: Kritphong Mongkhonvanit Date: Fri, 4 Sep 2026 23:40:25 -0500 Subject: [PATCH 1/3] Changed references to .nls to .nlm in dictionary entry for "import" --- apps/docs/autogen/data/dictionary.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/autogen/data/dictionary.yaml b/apps/docs/autogen/data/dictionary.yaml index 030c7f8c..38416334 100644 --- a/apps/docs/autogen/data/dictionary.yaml +++ b/apps/docs/autogen/data/dictionary.yaml @@ -3540,9 +3540,9 @@ entries: import utils ``` - This will import procedures in "utils.nls" in the same directory as the + This will import procedures in "utils.nlm" in the same directory as the current file and make them available with a "utils:" prefix. As an example, - if there is a reporter called `add` in "utils.nls", then it will be made + if there is a reporter called `add` in "utils.nlm", then it will be made available for use under the name `utils:add`. The prefix can be changed as follows: From f7d2300c216e84dae535a384ae75701adaf61ced Mon Sep 17 00:00:00 2001 From: Kritphong Mongkhonvanit Date: Fri, 4 Sep 2026 23:51:24 -0500 Subject: [PATCH 2/3] Mention "export" in the dictionary entry for "import" --- apps/docs/autogen/data/dictionary.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/docs/autogen/data/dictionary.yaml b/apps/docs/autogen/data/dictionary.yaml index 38416334..0f900b4f 100644 --- a/apps/docs/autogen/data/dictionary.yaml +++ b/apps/docs/autogen/data/dictionary.yaml @@ -3540,10 +3540,13 @@ entries: import utils ``` - This will import procedures in "utils.nlm" in the same directory as the - current file and make them available with a "utils:" prefix. As an example, - if there is a reporter called `add` in "utils.nlm", then it will be made - available for use under the name `utils:add`. + This will import procedures from "utils.nlm" in the same directory as + the current file and make them available with a "utils:" prefix. As an + example, if a reporter called `add` is exported by "utils.nlm", then it + will be made available for use under the name `utils:add`. Procedures + inside a module must be exported before it can be imported and used + elsewhere. The [[export|export]] command can be used to export + procedures inside a module. The prefix can be changed as follows: From 0bd0e55b07fbebf623052b98ff0a56269bc976bd Mon Sep 17 00:00:00 2001 From: Kritphong Mongkhonvanit Date: Sat, 5 Sep 2026 00:08:30 -0500 Subject: [PATCH 3/3] Add code example to the dictionary entry for "export" --- apps/docs/autogen/data/dictionary.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/docs/autogen/data/dictionary.yaml b/apps/docs/autogen/data/dictionary.yaml index 0f900b4f..7e4e7cd9 100644 --- a/apps/docs/autogen/data/dictionary.yaml +++ b/apps/docs/autogen/data/dictionary.yaml @@ -1907,8 +1907,20 @@ entries: - name: export since: "7.1" description: |+ - Make the given names available for importing. This command is only - valid in an NLM file. See [[import|import]] for more information. + Make the given names available for importing. For example, suppose we + have an NLM file that defines three reporters: `add`, `subtract`, and + `multiply`. + + ``` + export [add subtract] + ``` + + This will make `add` and `subtract` available for importing. Because + `multiply` is not in the list, it will not be available for importing. + It can still be used within the module itself. + + This command can only be used in an NLM file. It is an error to use it + elsewhere. For more information about importing, see [[import|import]]. examples: - code: export [ *names* ] - id: export-cmds