[latex3-commits] [git/LaTeX3-latex3-latex2e] TL21-2-kernel-msgs: add \@latex at note (info but shown on the terminal) for warnings that aren't really warnings but should be shown (f194c360)
Frank Mittelbach
frank.mittelbach at latex-project.org
Wed Jun 9 21:05:53 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : TL21-2-kernel-msgs
Link : https://github.com/latex3/latex2e/commit/f194c360674a69c6ee08a075b4fe9ae5febe2157
>---------------------------------------------------------------
commit f194c360674a69c6ee08a075b4fe9ae5febe2157
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Wed Jun 9 21:05:53 2021 +0200
add \@latex at note (info but shown on the terminal) for warnings that aren't really warnings but should be shown
>---------------------------------------------------------------
f194c360674a69c6ee08a075b4fe9ae5febe2157
base/ltclass.dtx | 5 ++-
base/lterror.dtx | 46 +++++++++++++++++++++-
base/testfiles-1run/github-0220.luatex.tlg | 2 +-
base/testfiles-1run/github-0220.tlg | 2 +-
base/testfiles-lthooks/filehook-006.tlg | 8 ++--
base/testfiles/github-0479-often.luatex.tlg | 2 +
base/testfiles/github-0479-often.tlg | 2 +
base/testfiles/github-0479-often.xetex.tlg | 2 +
.../tlb-latexrelease-rollback-003-often.luatex.tlg | 4 ++
.../tlb-latexrelease-rollback-003-often.tlg | 4 ++
.../tlb-latexrelease-rollback-003-often.xetex.tlg | 4 ++
base/testfiles/tlb-rollback-004-often.luatex.tlg | 2 +
base/testfiles/tlb-rollback-004-often.tlg | 2 +
base/testfiles/tlb-rollback-004-often.xetex.tlg | 2 +
base/testfiles/tlb-rollback-005.luatex.tlg | 2 +
base/testfiles/tlb-rollback-005.tlg | 2 +
base/testfiles/tlb-rollback-005.xetex.tlg | 2 +
17 files changed, 84 insertions(+), 9 deletions(-)
diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index a0ab0fa3..9e235e6d 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltclass.dtx}
- [2021/05/18 v1.4b LaTeX Kernel (Class & Package Interface)]
+ [2021/06/09 v1.4c LaTeX Kernel (Class & Package Interface)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltclass.dtx}
@@ -2712,11 +2712,12 @@
% \end{macrocode}
%
% Lua\TeX\ has more writes (and 18 is safe here).
+% \changes{v1.4b}{2021/06/09}{Use \cs{@latex at note@no at line} to display the information}
% \begin{macrocode}
\chardef\reserved at c\ifx\directlua\@undefined 15 \else 127 \fi%
\openin\@inputcheck\q at curr@file \space %
\ifeof\@inputcheck%
- \@latex at warning@no at line%
+ \@latex at note@no at line%
{Writing file `\@currdir\@curr at file'}%
% \end{macrocode}
%
diff --git a/base/lterror.dtx b/base/lterror.dtx
index 7f480a01..67ae532b 100644
--- a/base/lterror.dtx
+++ b/base/lterror.dtx
@@ -32,7 +32,7 @@
%<*driver>
% \fi
\ProvidesFile{lterror.dtx}
- [2019/08/30 v1.2q LaTeX Kernel (errors)]
+ [2021/06/09 v1.2r LaTeX Kernel (errors)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{lterror.dtx}
@@ -446,6 +446,50 @@ Type H <return> for immediate help.}%
% \end{macro}
% \end{macro}
%
+% \begin{macro}{\@latex at note}
+% \begin{macro}{\@latex at note@no at line}
+% These are ``info'' messages that display on the terminal not
+% just in the transcript.
+% \changes{v1.2r}{2021/06/09}{Macros added}
+% \begin{macrocode}
+%</2ekernel>
+%<*2ekernel|latexrelease>
+%<latexrelease>\IncludeInRelease{2021/12/01}%
+%<latexrelease> {\@latex at note}{Display notes}%
+\def\@latex at note#1{%
+ \GenericWarning{%
+ \space\space\space\@spaces\@spaces\@spaces
+ }{%
+ LaTeX Info: #1%
+ }%
+}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\def\@latex at note@no at line#1{%
+ \@latex at note{#1\@gobble}}
+% \end{macrocode}
+%
+% We don't make them undefined but rather point to \cs{@latex at info}
+% because that's what they replace. This way we can change
+% \cs{@latex at info} elsewhere without the need to further rollback
+% sections.
+% \begin{macrocode}
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease> {\@latex at note}{Display notes}%
+%<latexrelease>
+%<latexrelease>\let\@latex at note\@latex at info
+%<latexrelease>\let\@latex at note@no at line\@latex at info@no at line
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
+% \end{macrocode}
+%
+% \end{macro}
+% \end{macro}
+%
+%
% \begin{macro}{\c at errorcontextlines}
% \changes{LaTeX2e}{1993/11/22}{Macro added}
% |\errorcontextlines| as a \LaTeX\ counter, so that it may be
diff --git a/base/testfiles-1run/github-0220.luatex.tlg b/base/testfiles-1run/github-0220.luatex.tlg
index c8a5190d..ee78019c 100644
--- a/base/testfiles-1run/github-0220.luatex.tlg
+++ b/base/testfiles-1run/github-0220.luatex.tlg
@@ -27,7 +27,7 @@ LaTeX Warning: File `github-0220.sty' already exists on the system.
Not generating it from this source.
./github-0220.sty not found
Writing a file called ``github-0220.sty'' while only looking in the current dir, should succeed:
-LaTeX Warning: Writing file `././github-0220.sty'.
+LaTeX Info: Writing file `././github-0220.sty'.
\openout127 = ./github-0220.sty
(github-0220.sty
This should be from a file called ``github-0220.sty'' (second attempt)
diff --git a/base/testfiles-1run/github-0220.tlg b/base/testfiles-1run/github-0220.tlg
index e7c1fcc4..83066867 100644
--- a/base/testfiles-1run/github-0220.tlg
+++ b/base/testfiles-1run/github-0220.tlg
@@ -26,7 +26,7 @@ LaTeX Warning: File `github-0220.sty' already exists on the system.
Not generating it from this source.
./github-0220.sty not found
Writing a file called ``github-0220.sty'' while only looking in the current dir, should succeed:
-LaTeX Warning: Writing file `././github-0220.sty'.
+LaTeX Info: Writing file `././github-0220.sty'.
(github-0220.sty
This should be from a file called ``github-0220.sty'' (second attempt)
) (github-0220.aux)
diff --git a/base/testfiles-lthooks/filehook-006.tlg b/base/testfiles-lthooks/filehook-006.tlg
index bd77ea95..2ee82b34 100644
--- a/base/testfiles-lthooks/filehook-006.tlg
+++ b/base/testfiles-lthooks/filehook-006.tlg
@@ -1,14 +1,14 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
-LaTeX Warning: Writing file `./filehook-006-1.sty'.
-LaTeX Warning: Writing file `./filehook-006-2.sty'.
+LaTeX Info: Writing file `./filehook-006-1.sty'.
+LaTeX Info: Writing file `./filehook-006-2.sty'.
(filehook-006-1.sty
Package filehook-006-1 with option X
) (filehook-006-2.sty
Do something
)
-LaTeX Warning: Writing file `./file-1.tex'.
-LaTeX Warning: Writing file `./file-2.tex'.
+LaTeX Info: Writing file `./file-1.tex'.
+LaTeX Info: Writing file `./file-2.tex'.
---------------------------------------
===============
Inside top-level (before):
diff --git a/base/testfiles/github-0479-often.luatex.tlg b/base/testfiles/github-0479-often.luatex.tlg
index 5310a6db..67f98f2e 100644
--- a/base/testfiles/github-0479-often.luatex.tlg
+++ b/base/testfiles/github-0479-often.luatex.tlg
@@ -117,6 +117,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/github-0479-often.tlg b/base/testfiles/github-0479-often.tlg
index 878cfaeb..abaf94eb 100644
--- a/base/testfiles/github-0479-often.tlg
+++ b/base/testfiles/github-0479-often.tlg
@@ -107,6 +107,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/github-0479-often.xetex.tlg b/base/testfiles/github-0479-often.xetex.tlg
index 4b8f60cb..7027aaf4 100644
--- a/base/testfiles/github-0479-often.xetex.tlg
+++ b/base/testfiles/github-0479-often.xetex.tlg
@@ -107,6 +107,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
index 2bf3175e..087a0211 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
@@ -98,6 +98,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
@@ -629,6 +631,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
index c04c901e..a4454d89 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
@@ -92,6 +92,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
@@ -613,6 +615,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
index 98e5bfb1..1053b6a9 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
@@ -92,6 +92,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
@@ -622,6 +624,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/tlb-rollback-004-often.luatex.tlg b/base/testfiles/tlb-rollback-004-often.luatex.tlg
index c5bedc99..a7fdea34 100644
--- a/base/testfiles/tlb-rollback-004-often.luatex.tlg
+++ b/base/testfiles/tlb-rollback-004-often.luatex.tlg
@@ -118,6 +118,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/tlb-rollback-004-often.tlg b/base/testfiles/tlb-rollback-004-often.tlg
index c66a5510..109b7f00 100644
--- a/base/testfiles/tlb-rollback-004-often.tlg
+++ b/base/testfiles/tlb-rollback-004-often.tlg
@@ -107,6 +107,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/tlb-rollback-004-often.xetex.tlg b/base/testfiles/tlb-rollback-004-often.xetex.tlg
index 34762baf..982dc602 100644
--- a/base/testfiles/tlb-rollback-004-often.xetex.tlg
+++ b/base/testfiles/tlb-rollback-004-often.xetex.tlg
@@ -107,6 +107,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/tlb-rollback-005.luatex.tlg b/base/testfiles/tlb-rollback-005.luatex.tlg
index b9d63c61..b3d5c260 100644
--- a/base/testfiles/tlb-rollback-005.luatex.tlg
+++ b/base/testfiles/tlb-rollback-005.luatex.tlg
@@ -121,6 +121,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/tlb-rollback-005.tlg b/base/testfiles/tlb-rollback-005.tlg
index e5e88898..fc2c9bf7 100644
--- a/base/testfiles/tlb-rollback-005.tlg
+++ b/base/testfiles/tlb-rollback-005.tlg
@@ -111,6 +111,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
diff --git a/base/testfiles/tlb-rollback-005.xetex.tlg b/base/testfiles/tlb-rollback-005.xetex.tlg
index ab5b7cb1..f5e6a2a1 100644
--- a/base/testfiles/tlb-rollback-005.xetex.tlg
+++ b/base/testfiles/tlb-rollback-005.xetex.tlg
@@ -111,6 +111,8 @@ BEGIN module: ltcmdhooks (....-..-..) on input line ....
Skipping module ltcmdhooks on input line ....
Applying: [....-..-..] The hook management system for commands on input line ....
END module: ltcmdhooks (....-..-..) on input line ....
+Skipping: [....-..-..] Display notes on input line ....
+Applying: [....-..-..] Display notes on input line ....
BEGIN module: ltpara (....-..-..) on input line ....
Paragraph handling and hooks.
Skipping module ltpara on input line ....
More information about the latex3-commits
mailing list.