From e93a30a98d00f4941d7ec9e43350e7c9d9c281f1 Mon Sep 17 00:00:00 2001 From: Dirk-Willem van Gulik Date: Sat, 14 Nov 2026 11:32:18 +0100 Subject: [PATCH] Clarify now using M2 --- docs/src/remap/remap.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/remap/remap.adoc b/docs/src/remap/remap.adoc index 75e2a0980fa..5b1b0045a82 100644 --- a/docs/src/remap/remap.adoc +++ b/docs/src/remap/remap.adoc @@ -996,10 +996,10 @@ o endsub m2 ---- -CAUTION: Never use an `M2` in a O-word subroutine, including this one. +CAUTION: Never use an `M2` inside a O-word subroutine, including this one. It will cause hard-to-find errors. -For instance, using an `M2` in a subroutine will not end the subroutine properly and will leave the subroutine NGC file open, -not your main program. + +For instance, using an `M2` inside a subroutine (i.e between the `sub` an `endsub`) will not end the subroutine properly and will leave the subroutine NGC file open, not your main program. Make sure `on_abort.ngc` is along the interpreter search path (recommended location: `SUBROUTINE_PATH` so as not to clutter your `NC_FILES` directory with internal procedures).