[latex3-commits] [git/LaTeX3-latex3-latex3] main: ... but only if it is defined (654c4504b)

Frank Mittelbach frank.mittelbach at latex-project.org
Wed Jan 12 19:40:07 CET 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/654c4504bec5c586a1dda5f105c9ea285b98586b

>---------------------------------------------------------------

commit 654c4504bec5c586a1dda5f105c9ea285b98586b
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Jan 12 19:40:07 2022 +0100

    ... but only if it is defined


>---------------------------------------------------------------

654c4504bec5c586a1dda5f105c9ea285b98586b
 l3kernel/l3doc.dtx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/l3kernel/l3doc.dtx b/l3kernel/l3doc.dtx
index 5d48dc425..a55ee69e4 100644
--- a/l3kernel/l3doc.dtx
+++ b/l3kernel/l3doc.dtx
@@ -3632,9 +3632,11 @@ and all files in that bundle must be distributed together.
       { #1 \endinput }
   }
 %    \end{macrocode}
-%    We also need to support doc V3 \cs{MaybeStop}.
+%    We also need to support doc V3 \cs{MaybeStop} if it is around
+%    (which may not be the case).
 %    \begin{macrocode}
-\RenewCommandCopy\MaybeStop\StopEventually
+\cs_if_exist:NT \MaybeStop  
+   { \RenewCommandCopy \MaybeStop \StopEventually }
 %    \end{macrocode}
 %
 %    \begin{macrocode}





More information about the latex3-commits mailing list.