[dev-context] \usemodule and prtcatcodes

Hans Hagen pragma at wxs.nl
Mon Jan 17 17:00:08 CET 2011

```On 17-1-2011 4:13, Wolfgang Schuster wrote:
> Hi,
>
> why does \usemodule load the requested file with “prtcatcodes” settings
> when nearly each module has \unprotect and \protect at the begin and
> end of the file?
>
> I ask this because of a recent question [1] on the list where a user
> defined shortcuts for math. Maybe a module isn’t the perfect thing
> for these things and he can put them in a environment but now comes
> the next problem.
>
> When you load a environment in this way:
>
>    \environment myenvironment
>    \starttext
>    …
>    \stoptext
>
> the file is loaded again with prtcatcodes while in the following form
>
>    \startproduct myproduct
>    \environment myenvironment
>    …
>    \stopproduct
>
> the environment is loaded with ctxcatcodes. While prtcatcodes make sense
> for a module i can’t understand why they are used for environments.

much of this goes back a long time .. we used to have only m-* and
styles were normally environments; and when defining interface
independent environments unprotect makes sense ... we can consider
removing that (but then need to check for environments on our machines
that use ! etc)

Hans

-----------------------------------------------------------------