[latex3-commits] [git/LaTeX3-latex3-latex3] master: Add kernel critical messages for later (a80150b53)

PhelypeOleinik tex.phelype at gmail.com
Wed Jul 29 02:51:18 CEST 2020


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

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

commit a80150b538102cf2f12983723c11f05e4ad98cb3
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Tue Jul 28 21:51:18 2020 -0300

    Add kernel critical messages for later


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

a80150b538102cf2f12983723c11f05e4ad98cb3
 l3kernel/l3kernel-functions.dtx | 21 ++++++++++++++++++++
 l3kernel/l3msg.dtx              | 44 +++++++++++++++++++++++++----------------
 2 files changed, 48 insertions(+), 17 deletions(-)

diff --git a/l3kernel/l3kernel-functions.dtx b/l3kernel/l3kernel-functions.dtx
index c73b661cf..89c8e633e 100644
--- a/l3kernel/l3kernel-functions.dtx
+++ b/l3kernel/l3kernel-functions.dtx
@@ -265,6 +265,27 @@
 %
 % \begin{function}
 %   {
+%     \__kernel_msg_critical:nnnnnn ,
+%     \__kernel_msg_critical:nnnnn  ,
+%     \__kernel_msg_critical:nnnn   ,
+%     \__kernel_msg_critical:nnn    ,
+%     \__kernel_msg_critical:nn     ,
+%     \__kernel_msg_critical:nnxxxx ,
+%     \__kernel_msg_critical:nnxxx  ,
+%     \__kernel_msg_critical:nnxx   ,
+%     \__kernel_msg_critical:nnx
+%   }
+%   \begin{syntax}
+%     \cs{__kernel_msg_critical:nnnnnn} \Arg{module} \Arg{message} \Arg{arg one} \Arg{arg two} \Arg{arg three} \Arg{arg four}
+%   \end{syntax}
+%   Issues kernel \meta{module} error \meta{message}, passing \meta{arg one}
+%   to \meta{arg four} to the text-creating functions.  After issuing a
+%   critical error, \TeX{} stops reading the current input file.
+%   Cannot be redirected.
+% \end{function}
+%
+% \begin{function}
+%   {
 %     \__kernel_msg_error:nnnnnn ,
 %     \__kernel_msg_error:nnnnn  ,
 %     \__kernel_msg_error:nnnn   ,
diff --git a/l3kernel/l3msg.dtx b/l3kernel/l3msg.dtx
index 587173345..8a6865fa8 100644
--- a/l3kernel/l3msg.dtx
+++ b/l3kernel/l3msg.dtx
@@ -1656,23 +1656,32 @@
 %
 % \begin{macro}
 %   {
-%     \__kernel_msg_fatal:nnnnnn ,
-%     \__kernel_msg_fatal:nnnnn  ,
-%     \__kernel_msg_fatal:nnnn   ,
-%     \__kernel_msg_fatal:nnn    ,
-%     \__kernel_msg_fatal:nn     ,
-%     \__kernel_msg_fatal:nnxxxx ,
-%     \__kernel_msg_fatal:nnxxx  ,
-%     \__kernel_msg_fatal:nnxx   ,
-%     \__kernel_msg_fatal:nnx    ,
-%     \__kernel_msg_error:nnnnnn ,
-%     \__kernel_msg_error:nnnnn  ,
-%     \__kernel_msg_error:nnnn   ,
-%     \__kernel_msg_error:nnn    ,
-%     \__kernel_msg_error:nn     ,
-%     \__kernel_msg_error:nnxxxx ,
-%     \__kernel_msg_error:nnxxx  ,
-%     \__kernel_msg_error:nnxx   ,
+%     \__kernel_msg_fatal:nnnnnn    ,
+%     \__kernel_msg_fatal:nnnnn     ,
+%     \__kernel_msg_fatal:nnnn      ,
+%     \__kernel_msg_fatal:nnn       ,
+%     \__kernel_msg_fatal:nn        ,
+%     \__kernel_msg_fatal:nnxxxx    ,
+%     \__kernel_msg_fatal:nnxxx     ,
+%     \__kernel_msg_fatal:nnxx      ,
+%     \__kernel_msg_fatal:nnx       ,
+%     \__kernel_msg_critical:nnnnnn ,
+%     \__kernel_msg_critical:nnnnn  ,
+%     \__kernel_msg_critical:nnnn   ,
+%     \__kernel_msg_critical:nnn    ,
+%     \__kernel_msg_critical:nn     ,
+%     \__kernel_msg_critical:nnxxxx ,
+%     \__kernel_msg_critical:nnxxx  ,
+%     \__kernel_msg_critical:nnxx   ,
+%     \__kernel_msg_critical:nnx    ,
+%     \__kernel_msg_error:nnnnnn    ,
+%     \__kernel_msg_error:nnnnn     ,
+%     \__kernel_msg_error:nnnn      ,
+%     \__kernel_msg_error:nnn       ,
+%     \__kernel_msg_error:nn        ,
+%     \__kernel_msg_error:nnxxxx    ,
+%     \__kernel_msg_error:nnxxx     ,
+%     \__kernel_msg_error:nnxx      ,
 %     \__kernel_msg_error:nnx
 %   }
 %   Neither fatal kernel errors nor kernel errors can be redirected.  We
@@ -1682,6 +1691,7 @@
 %   errors.
 %    \begin{macrocode}
   \@@_kernel_class_new:nN { fatal } \@@_fatal_code:nnnnnn
+  \@@_kernel_class_new:nN { critical } \@@_critical_code:nnnnnn
   \cs_undefine:N \__kernel_msg_error:nnxx
   \cs_undefine:N \__kernel_msg_error:nnx
   \cs_undefine:N \__kernel_msg_error:nn





More information about the latex3-commits mailing list.