[latex3-commits] [git/LaTeX3-latex3-latex2e] gh479: Changing \msg_new:nnnn is enough (3d36d06b)

PhelypeOleinik phelype.oleinik at latex-project.org
Fri Mar 19 03:23:33 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh479
Link       : https://github.com/latex3/latex2e/commit/3d36d06bf7864704985cca1f4b001ca503b6ea43

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

commit 3d36d06bf7864704985cca1f4b001ca503b6ea43
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Mar 18 23:23:33 2021 -0300

    Changing \msg_new:nnnn is enough


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

3d36d06bf7864704985cca1f4b001ca503b6ea43
 base/latexrelease.dtx | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/base/latexrelease.dtx b/base/latexrelease.dtx
index e6334a65..2a693504 100644
--- a/base/latexrelease.dtx
+++ b/base/latexrelease.dtx
@@ -555,11 +555,11 @@ of this package available from CTAN}
 %   \item[__kernel_msg_error:nnx] This command is used to error on
 %     already defined scan marks.  Just making the error do nothing is
 %     enough, as no action is taken in that case;
-%   \item[__kernel_msg_new:nnn] Used to define new messages.  Making it
-%     \texttt{\string_set} is enough;
-%   \item[__kernel_msg_new:nnnn] Same as above;
-%   \item[msg_new:nnn] Same as above;
-%   \item[msg_new:nnnn] Same as above;
+%   \item[msg_new:nnnn] Used to define new messages.  Making it
+%     \texttt{\string_gset} is enough.  Other msg commands like
+%     \cs{msg_new:nnn} and \cs[no-index]{__kernel_msg_new:nnn(n)} are
+%     defined in terms of \cs{msg_new:nnnn}, so there is no need to
+%     change the other ones;
 %   \item[NewDocumentCommand] Used to define user-level commands in the
 %     kernel.  Making it equal to \cs{DeclareDocumentCommand} solves the
 %     problem;
@@ -571,10 +571,7 @@ of this package available from CTAN}
   \__kernel_chk_if_free_cs:N \use_none:n
   \e at alloc \@@_e at alloc:NnnnnN
   \__kernel_msg_error:nnx \use_none:nnn
-  \__kernel_msg_new:nnn   \__kernel_msg_set:nnn
-  \__kernel_msg_new:nnnn  \__kernel_msg_set:nnnn
-  \msg_new:nnn  \msg_set:nnn
-  \msg_new:nnnn \msg_set:nnnn
+  \msg_new:nnnn \msg_gset:nnnn
   \NewDocumentCommand \DeclareDocumentCommand
   \newcommand \@@_declare_command:w
   \q_recursion_tail \q_recursion_tail





More information about the latex3-commits mailing list.