Skip to content

Commit

Permalink
Remove \__kernel_msg_... usage
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Aug 27, 2021
1 parent be4c244 commit 0493220
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions base/ltfilehook.dtx
Expand Up @@ -31,8 +31,8 @@
%%% From File: ltfilehook.dtx
%
% \begin{macrocode}
\providecommand\ltfilehookversion{v1.0k}
\providecommand\ltfilehookdate{2021/05/25}
\providecommand\ltfilehookversion{v1.0l}
\providecommand\ltfilehookdate{2021/08/27}
% \end{macrocode}
%
%<*driver>
Expand Down Expand Up @@ -1383,14 +1383,15 @@
% \@@_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
% of the loop, until all the error messages combined show the loop.
% \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 }
Expand All @@ -1400,7 +1401,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}
Expand Down

0 comments on commit 0493220

Please sign in to comment.