[latex3-commits] [git/LaTeX3-latex3-latex3] msg_term: Add \msg_term:nn(nnnn) (fixes #767) (e04582a4e)

PhelypeOleinik tex.phelype at gmail.com
Thu Jul 16 15:25:58 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : msg_term
Link       : https://github.com/latex3/latex3/commit/e04582a4e80047a532596f869f562d1bf14a7f57

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

commit e04582a4e80047a532596f869f562d1bf14a7f57
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Thu Jul 16 10:25:58 2020 -0300

    Add \msg_term:nn(nnnn) (fixes #767)


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

e04582a4e80047a532596f869f562d1bf14a7f57
 l3kernel/l3msg.dtx | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/l3kernel/l3msg.dtx b/l3kernel/l3msg.dtx
index f7182ea09..6ee048509 100644
--- a/l3kernel/l3msg.dtx
+++ b/l3kernel/l3msg.dtx
@@ -404,6 +404,27 @@
 %   is briefer than \cs{msg_info:nnnnnn}.
 % \end{function}
 %
+% \begin{function}[added = 2020-07-16]
+%   {
+%     \msg_term:nnnnnn ,
+%     \msg_term:nnnnn  ,
+%     \msg_term:nnnn   ,
+%     \msg_term:nnn    ,
+%     \msg_term:nn     ,
+%     \msg_term:nnxxxx ,
+%     \msg_term:nnxxx  ,
+%     \msg_term:nnxx   ,
+%     \msg_term:nnx
+%   }
+%   \begin{syntax}
+%     \cs{msg_term:nnnnnn} \Arg{module} \Arg{message} \Arg{arg one} \Arg{arg two} \Arg{arg three} \Arg{arg four}
+%   \end{syntax}
+%   Issues \meta{module} information \meta{message}, passing
+%   \meta{arg one} to \meta{arg four} to the text-creating functions.
+%   The information text is printed on the terminal (and added to the
+%   log file): the output is similar to that of \cs{msg_log:nnnnnn}.
+% \end{function}
+%
 % \begin{function}[updated = 2012-08-11]
 %   {
 %     \msg_none:nnnnnn ,
@@ -1214,6 +1235,31 @@
 %
 % \begin{macro}
 %   {
+%     \msg_term:nnnnnn ,
+%     \msg_term:nnnnn  ,
+%     \msg_term:nnnn   ,
+%     \msg_term:nnn    ,
+%     \msg_term:nn     ,
+%     \msg_term:nnxxxx ,
+%     \msg_term:nnxxx  ,
+%     \msg_term:nnxx   ,
+%     \msg_term:nnx
+%   }
+%   \enquote{Term} is used for communicating with the user through the
+%   terminal, like diagnostic messages, and debugging.  This is similar
+%   to \enquote{log} messages, but uses the terminal output.
+%    \begin{macrocode}
+  \@@_class_new:nn { term }
+    {
+      \iow_wrap:nnnN
+        { \use:c { \c_@@_text_prefix_tl #1 / #2 } {#3} {#4} {#5} {#6} }
+        { } { } \iow_term:n
+    }
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}
+%   {
 %     \msg_none:nnnnnn ,
 %     \msg_none:nnnnn  ,
 %     \msg_none:nnnn   ,





More information about the latex3-commits mailing list.