[latex3-commits] [l3svn] 01/02: l3build: Allow for ConTeXt in loading

noreply at latex-project.org noreply at latex-project.org
Wed Jun 22 10:35:40 CEST 2016


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit a6583cefcaf07d1b979c179a0a6a0222e09e8138
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Jun 22 09:28:51 2016 +0100

    l3build: Allow for ConTeXt in loading
---
 l3build/l3build.dtx |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/l3build/l3build.dtx b/l3build/l3build.dtx
index 97fe497..3cf665b 100644
--- a/l3build/l3build.dtx
+++ b/l3build/l3build.dtx
@@ -1113,12 +1113,19 @@
 % \subsection{Preliminaries}
 %
 % Unlike in the \LaTeXe{} regression test suite, reset catcodes: each test should set these
-% as appropriate.
+% as appropriate. There's also a quick test for Con\TeX{}t: it defines |\unprotect|
+% which should be a reasonable marker (and is needed as some catcodes are otherwise
+% wrong).
 %    \begin{macrocode}
-\expandafter\edef\csname reset\string @catcodes\endcsname{%
-  \catcode`\noexpand\@=\the\catcode`\@\relax
-}
-\catcode`\@=11 %
+\ifx\unprotect\undefined
+  \expandafter\edef\csname reset\string @catcodes\endcsname{%
+    \catcode`\noexpand\@=\the\catcode`\@\relax
+  }
+  \catcode`\@=11 %
+\else
+  \unprotect
+  \def\reset at catcodes{\protect}%
+\fi
 %    \end{macrocode}
 % Put \TeX{} into scroll mode, and stop it showing the
 % implementation details of macros in error messages.

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list