[latex3-commits] [git/LaTeX3-latex3-latex3] master: Update method for using "enable-debug" (70d6cae75)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Jul 21 13:55:22 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/70d6cae759e2926b895b266a3da61c75ccc930e6

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

commit 70d6cae759e2926b895b266a3da61c75ccc930e6
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Jul 21 12:55:22 2020 +0100

    Update method for using "enable-debug"
    
    As 'load time' is now not really appropriate,
    the entire mechanism has changed. This also
    deals with the question of IniTeX mode debugging.


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

70d6cae759e2926b895b266a3da61c75ccc930e6
 l3kernel/expl3.dtx |  6 ++++++
 l3kernel/l3msg.dtx | 21 ++++-----------------
 2 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/l3kernel/expl3.dtx b/l3kernel/expl3.dtx
index e1a36c6db..127ee2eff 100644
--- a/l3kernel/expl3.dtx
+++ b/l3kernel/expl3.dtx
@@ -936,6 +936,12 @@
 % This option is available to support DVI-based routes that do not
 % support the |header| line used by \texttt{dvips}.
 %
+% The debugging options may also be given using
+% \verb|\keys_set:nn { sys } { ... }|; the \texttt{backend} option can be
+% given in this way \emph{only} if a backend has not already been loaded.
+% This method of setting options is useful where \pkg{expl3} is pre-loaded
+% by the \LaTeXe{} format.
+%
 % \section{Using \pkg{expl3} with formats other than \LaTeXe{}}
 %
 % As well as the \LaTeXe{} package \pkg{expl3}, there is also a
diff --git a/l3kernel/l3msg.dtx b/l3kernel/l3msg.dtx
index 5cbc7e9b0..bb202bfa8 100644
--- a/l3kernel/l3msg.dtx
+++ b/l3kernel/l3msg.dtx
@@ -1977,28 +1977,15 @@
 % \texttt{log-functions}, or on the contrary if debugging is turned off.
 % In format mode the error is somewhat different.
 %    \begin{macrocode}
-%<*package>
-\__kernel_msg_new:nnnn { kernel } { enable-debug }
-  { To~use~'#1'~load~expl3~with~the~'enable-debug'~option. }
-  {
-     The~function~'#1'~will~be~ignored~because~it~can~only~work~if~
-    some~internal~functions~in~expl3~have~been~appropriately~
-    defined.~This~only~happens~if~one~of~the~options~
-     'enable-debug',~'check-declarations'~or~'log-functions'~was~
-    given~when~loading~expl3.
-  }
-%</package>
-%<*initex>
 \__kernel_msg_new:nnnn { kernel } { enable-debug }
-  { '#1'~cannot~be~used~in~format~mode. }
+  { To~use~'#1'~set~the~'enable-debug'~option. }
   {
     The~function~'#1'~will~be~ignored~because~it~can~only~work~if~
     some~internal~functions~in~expl3~have~been~appropriately~
-    defined.~This~only~happens~in~package~mode~(and~only~if~one~of~
-    the~options~'enable-debug',~'check-declarations'~or~'log-functions'~
-    was~given~when~loading~expl3.
+    defined.~This~only~happens~if~one~of~the~options~
+    'enable-debug',~'check-declarations'~or~'log-functions'~was~
+    given~as~an~option:~see~the~main~expl3~documentation.
   }
-%</initex>
 %    \end{macrocode}
 %
 % Some errors only appear in expandable settings,





More information about the latex3-commits mailing list.