[latex3-commits] [git/LaTeX3-latex3-latex2e] utf8andspace: definition of InputFileExists has changed (and we actually don't need it inside utf8andspace requires update to one test file too (e8c3c15)
Frank Mittelbach
frank.mittelbach at latex-project.org
Mon Mar 11 15:48:09 CET 2019
Repository : https://github.com/latex3/latex2e
On branch : utf8andspace
Link : https://github.com/latex3/latex2e/commit/e8c3c159ce21beca14e4d9ad7acdc5b820609f70
>---------------------------------------------------------------
commit e8c3c159ce21beca14e4d9ad7acdc5b820609f70
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Mon Mar 11 15:48:09 2019 +0100
definition of InputFileExists has changed (and we actually don't need it inside utf8andspace
requires update to one test file too
>---------------------------------------------------------------
e8c3c159ce21beca14e4d9ad7acdc5b820609f70
base/testfiles/github-robust-0123.luatex.tlg | 4 ++--
base/testfiles/github-robust-0123.tlg | 4 ++--
base/testfiles/github-robust-0123.xetex.tlg | 4 ++--
base/utf8andspace.tex | 5 -----
4 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/base/testfiles/github-robust-0123.luatex.tlg b/base/testfiles/github-robust-0123.luatex.tlg
index 7f32b73..a87599e 100644
--- a/base/testfiles/github-robust-0123.luatex.tlg
+++ b/base/testfiles/github-robust-0123.luatex.tlg
@@ -74,13 +74,13 @@ spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
\IeC:
---------------------------------------
-\IfFileExists{foo}{bar}{baz}: \openin \@inputcheck foo \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
+\IfFileExists{foo}{bar}{baz}: \begingroup \escapechar \m at ne \xdef github-robust-0123.aux{\foo}\endgroup \edef "test2e.cfg"{"github-robust-0123.aux"}\openin \@inputcheck "test2e.cfg" \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
\IfTargetDateBefore{foo}{bar}{baz}: \begingroup \let \string\immediate \write \@unused {Include code introduced on foo}\endgroup baz
---------------------------------------
\Im: \Im
---------------------------------------
-\InputIfFileExists{foo}{bar}{baz}: \openin \@inputcheck foo \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
+\InputIfFileExists{foo}{bar}{baz}: \begingroup \escapechar \m at ne \xdef github-robust-0123.aux{\foo}\endgroup \edef "test2e.cfg"{"github-robust-0123.aux"}\openin \@inputcheck "test2e.cfg" \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
\Join: \GenericError { }{LaTeX Error: Command \Join not provided in base LaTeX2e}{See the LaTeX manual or LaTeX Companion for explanation.}{Load the latexsym or the amsfonts package to define this symbol}
---------------------------------------
diff --git a/base/testfiles/github-robust-0123.tlg b/base/testfiles/github-robust-0123.tlg
index 4ac5641..c3fe55e 100644
--- a/base/testfiles/github-robust-0123.tlg
+++ b/base/testfiles/github-robust-0123.tlg
@@ -66,13 +66,13 @@ Don't change this file in any respect.
---------------------------------------
\IeC: \IeC
---------------------------------------
-\IfFileExists{foo}{bar}{baz}: \openin \@inputcheck foo \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
+\IfFileExists{foo}{bar}{baz}: \begingroup \escapechar \m at ne \xdef github-robust-0123.aux{\foo}\endgroup \edef "test2e.cfg"{"github-robust-0123.aux"}\openin \@inputcheck "test2e.cfg" \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
\IfTargetDateBefore{foo}{bar}{baz}: \begingroup \let \string\immediate \write \@unused {Include code introduced on foo}\endgroup baz
---------------------------------------
\Im: \Im
---------------------------------------
-\InputIfFileExists{foo}{bar}{baz}: \openin \@inputcheck foo \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
+\InputIfFileExists{foo}{bar}{baz}: \begingroup \escapechar \m at ne \xdef github-robust-0123.aux{\foo}\endgroup \edef "test2e.cfg"{"github-robust-0123.aux"}\openin \@inputcheck "test2e.cfg" \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
\Join: \GenericError { }{LaTeX Error: Command \Join not provided in base LaTeX2e}{See the LaTeX manual or LaTeX Companion for explanation.}{Load the latexsym or the amsfonts package to define this symbol}
---------------------------------------
diff --git a/base/testfiles/github-robust-0123.xetex.tlg b/base/testfiles/github-robust-0123.xetex.tlg
index 213c18e..07f8b83 100644
--- a/base/testfiles/github-robust-0123.xetex.tlg
+++ b/base/testfiles/github-robust-0123.xetex.tlg
@@ -74,13 +74,13 @@ spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
\IeC:
---------------------------------------
-\IfFileExists{foo}{bar}{baz}: \openin \@inputcheck foo \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
+\IfFileExists{foo}{bar}{baz}: \begingroup \escapechar \m at ne \xdef github-robust-0123.aux{\foo}\endgroup \edef "test2e.cfg"{"github-robust-0123.aux"}\openin \@inputcheck "test2e.cfg" \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
\IfTargetDateBefore{foo}{bar}{baz}: \begingroup \let \string\immediate \write \@unused {Include code introduced on foo}\endgroup baz
---------------------------------------
\Im: \Im
---------------------------------------
-\InputIfFileExists{foo}{bar}{baz}: \openin \@inputcheck foo \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
+\InputIfFileExists{foo}{bar}{baz}: \begingroup \escapechar \m at ne \xdef github-robust-0123.aux{\foo}\endgroup \edef "test2e.cfg"{"github-robust-0123.aux"}\openin \@inputcheck "test2e.cfg" \def \def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}{baz}\def document{document}\edef { on input line ...}\GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
\Join: \GenericError { }{LaTeX Error: Command \Join not provided in base LaTeX2e}{See the LaTeX manual or LaTeX Companion for explanation.}{Load the latexsym or the amsfonts package to define this symbol}
---------------------------------------
diff --git a/base/utf8andspace.tex b/base/utf8andspace.tex
index ff82fd4..9ed03b4 100644
--- a/base/utf8andspace.tex
+++ b/base/utf8andspace.tex
@@ -306,11 +306,6 @@
\expandafter\IfFileExists@\expandafter{\q at curr@file}}
-
-\long\def \InputIfFileExists#1#2{%
- \IfFileExists{#1}%
- {#2\@addtofilelist{#1}\@@input \@filef at und}}
-
\def\@iinput#1{%
\InputIfFileExists{#1}{}%
{\filename at parse\@curr at file
More information about the latex3-commits
mailing list