[latex3-commits] [git/LaTeX3-latex3-latex2e] kernel-msgs: Print messages from 'ltcmd' as 'cmd' (880acc4c)
PhelypeOleinik
phelype.oleinik at latex-project.org
Tue May 18 05:10:07 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : kernel-msgs
Link : https://github.com/latex3/latex2e/commit/880acc4cafe8ff736273f56a7f30f18426f08be8
>---------------------------------------------------------------
commit 880acc4cafe8ff736273f56a7f30f18426f08be8
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Tue May 18 00:10:07 2021 -0300
Print messages from 'ltcmd' as 'cmd'
Another option to this would be to replace all `ltcmd` from messages by
`cmd`, but this would require a matching change to xparse.dtx.
>---------------------------------------------------------------
880acc4cafe8ff736273f56a7f30f18426f08be8
base/ltcmd.dtx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index 5345a163..769d2f50 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -331,9 +331,11 @@
\msg_redirect_module:nnn { ltcmd } { info } { none }
% \end{macrocode}
%
-% Also add \pkg{ltcmd} to the \pkg{LaTeX} messages.
+% Also add \pkg{ltcmd} to the \pkg{LaTeX} messages, and print the
+% messages as \texttt{cmd} instead of \texttt{ltcmd}.
% \begin{macrocode}
\prop_gput:Nnn \g_msg_module_type_prop { ltcmd } { LaTeX }
+\prop_gput:Nnn \g_msg_module_name_prop { ltcmd } { cmd }
% \end{macrocode}
%
% \subsection{Declaring commands and environments}
More information about the latex3-commits
mailing list.