[latex3-commits] [git/LaTeX3-latex3-latex2e] curr-file-braces: strip initial brace pair in \set at currfile and other PL1 bookkeeping (36342ca7)

David Carlisle d.p.carlisle at gmail.com
Fri Oct 11 20:36:43 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : curr-file-braces
Link       : https://github.com/latex3/latex2e/commit/36342ca7b1017468a3bd9fb9ffac470be7803fda

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

commit 36342ca7b1017468a3bd9fb9ffac470be7803fda
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Fri Oct 11 19:36:43 2019 +0100

    strip initial brace pair in \set at currfile and other PL1 bookkeeping


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

36342ca7b1017468a3bd9fb9ffac470be7803fda
 base/changes.txt          |  8 ++++++++
 base/doc/latexchanges.tex |  4 ++++
 base/ltfiles.dtx          | 11 +++++++++--
 base/ltvers.dtx           |  2 +-
 4 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index edeba129..8dc09021 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -4,6 +4,14 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 =======================================================================
 
+#########################
+# 2019-10-01 PL 1 Release
+#########################
+
+2019-10-11  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* ltfiles.dtx: Remove One Brace group before using \string\csname in \set at curr@file.
+
 2019-10-07  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* lttab.dtx (subsection{array and tabular environments}):
diff --git a/base/doc/latexchanges.tex b/base/doc/latexchanges.tex
index 43780d3c..5abcbd01 100644
--- a/base/doc/latexchanges.tex
+++ b/base/doc/latexchanges.tex
@@ -95,6 +95,10 @@ with the \Lpack{latexrelease} package being available to revert
 changes to use definitions from an earlier format.
 
 
+\section{Changes introduced in 2019-10-01 patch~1}
+
+Adjustments to \verb|\set at curr@file|, and \verb|\@extracolsep|.
+
 \section{Changes introduced in 2019-10-01}
 
 Introduced \LaTeX\texttt{-dev} formats for pre testing future \LaTeX{}
diff --git a/base/ltfiles.dtx b/base/ltfiles.dtx
index afb085a4..a2037e22 100644
--- a/base/ltfiles.dtx
+++ b/base/ltfiles.dtx
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfiles.dtx}
-             [2019/08/27 v1.2b LaTeX Kernel (File Handling)]
+             [2019/10/11 v1.2c LaTeX Kernel (File Handling)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfiles.dtx}
@@ -706,7 +706,14 @@
 %   A side effect of the new code is that we will see quotes around
 %   file name displays where there haven't been any before.
 %
+%   For compatibilty with existing code using |{abc}.tex| or |{one.two}.png|
+%   an initial brace group is discarded before expansion and |\string| is applied
+%   The content of the brace group is discarded. This means that a leading space
+%   will be lost unless protected (by |{ }| or |" "| or |\space|) but filenames
+%   with a space are hopefully rare.
+%
 %  \changes{v1.2a}{2019/07/01}{Support UTF-8}
+%  \changes{v1.2c}{2019/10/11}{Remove one brace group}
 %    \begin{macrocode}
 %</2ekernel>
 %<*2ekernel|latexrelease>
@@ -715,7 +722,7 @@
 \def\set at curr@file#1{%
   \begingroup
     \escapechar\m at ne
-    \xdef\@curr at file{\expandafter\string\csname #1\endcsname}%
+    \xdef\@curr at file{\expandafter\string\csname\@firstofone#1\@empty\endcsname}%
   \endgroup
 }
 %    \end{macrocode}
diff --git a/base/ltvers.dtx b/base/ltvers.dtx
index 17f5f3ee..d15bd784 100644
--- a/base/ltvers.dtx
+++ b/base/ltvers.dtx
@@ -115,7 +115,7 @@
    {2019-10-01}
 %</2ekernel|latexrelease>
 %<*2ekernel>
-\def\patch at level{0}
+\def\patch at level{1}
 %    \end{macrocode}
 %    
 % \begin{macro}{\development at branch@name}





More information about the latex3-commits mailing list