[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Remove \__kernel_msg_... usage (5a03abc3)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Aug 27 12:31:56 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/5a03abc34d96f69c14b6fa183f0f6b5164e09a8f

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

commit 5a03abc34d96f69c14b6fa183f0f6b5164e09a8f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Aug 27 11:31:09 2021 +0100

    Remove \__kernel_msg_... usage


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

5a03abc34d96f69c14b6fa183f0f6b5164e09a8f
 base/changes.txt    | 6 ++++++
 base/ltfilehook.dtx | 9 +++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 7fe5e00d..1afd1738 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,12 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2021-08-27  Joseph Wright  <Joseph.Wright at latex-project.org>
+
+	* ltfilehook.dtx:
+	Use \msg_... instead of \__kernel_msg... commands for normalized
+	error and warning commands.
+
 2021-08-20  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* lthooks.dtx:
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 0ebcc757..510c0188 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -31,8 +31,8 @@
 %%% From File: ltfilehook.dtx
 %
 %    \begin{macrocode}
-\providecommand\ltfilehookversion{v1.0k}
-\providecommand\ltfilehookdate{2021/07/23}
+\providecommand\ltfilehookversion{v1.0l}
+\providecommand\ltfilehookdate{2021/08/27}
 %    \end{macrocode}
 %
 %<*driver>
@@ -1405,6 +1405,7 @@
 %     \@@_file_subst_cycle_error:NN,
 %     \@@_file_subst_cycle_error:cN,
 %   }
+%   \changes{v1.0l}{2021/08/27}{Use \cs{msg_...} not \cs{__kernel_msg_...}}
 %   Showing this type of error expandably is tricky, as we have a very
 %   limited amount of characters to show and a potentially large list.
 %   As a work around, several errors are printed, each showing one step
@@ -1412,7 +1413,7 @@
 %    \begin{macrocode}
 \cs_new:Npn \@@_file_subst_cycle_error:NN #1 #2
   {
-    \__kernel_msg_expandable_error:nnff { kernel } { file-cycle }
+    \msg_expandable_error:nnff { latex2e } { file-cycle }
       {#1} { \use:c { @file-subst@ #1 } }
     \token_if_eq_meaning:NNF #1 #2
       { \@@_file_subst_cycle_error:cN { @file-subst@ #1 } #2 }
@@ -1422,7 +1423,7 @@
 %
 %   And the error message:
 %    \begin{macrocode}
-\__kernel_msg_new:nnn { kernel } { file-cycle }
+\msg_new:nnn { latex2e } { file-cycle }
   { File~loop!~#1~replaced~by~#2... }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.