[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks2: doc cleanup (8ed49ffc)
Frank Mittelbach
frank.mittelbach at latex-project.org
Tue Aug 25 11:47:48 CEST 2020
Repository : https://github.com/latex3/latex2e
On branch : lthooks2
Link : https://github.com/latex3/latex2e/commit/8ed49ffc562bb70d522bad1e8f1b1bce12555221
>---------------------------------------------------------------
commit 8ed49ffc562bb70d522bad1e8f1b1bce12555221
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Tue Aug 25 11:47:48 2020 +0200
doc cleanup
>---------------------------------------------------------------
8ed49ffc562bb70d522bad1e8f1b1bce12555221
base/ltfilehook.dtx | 34 +++++++++++++++++-----------------
base/lthooks.dtx | 24 +++++++++++++-----------
2 files changed, 30 insertions(+), 28 deletions(-)
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 02156ebb..b244c1ec 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -510,7 +510,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\@@_file_parse_full_name:nN}{File helpers}%
+%<latexrelease> {\@@_file_parse_full_name:nN}{File helpers}%
\ExplSyntaxOn
% \end{macrocode}
%
@@ -653,7 +653,7 @@
% \begin{macrocode}
%</2ekernel>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\InputIfFileExists}{Hook management (files)}%
+%<latexrelease> {\InputIfFileExists}{Hook management (files)}%
%<*2ekernel|latexrelease>
% \end{macrocode}
%
@@ -733,7 +733,7 @@
% \changes{v1.2b}{2019/08/27}{Make command robust}
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2019/10/01}%
-%<latexrelease> {\InputIfFileExists}{Hook management (files)}%
+%<latexrelease> {\InputIfFileExists}{Hook management (files)}%
%<latexrelease>
%<latexrelease>\DeclareRobustCommand \InputIfFileExists[2]{%
%<latexrelease> \IfFileExists{#1}%
@@ -745,7 +745,7 @@
%
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{0000/00/00}%
-%<latexrelease> {\InputIfFileExists}{Hook management (files)}%
+%<latexrelease> {\InputIfFileExists}{Hook management (files)}%
%<latexrelease>\long\def \InputIfFileExists#1#2{%
%<latexrelease> \IfFileExists{#1}%
%<latexrelease> {#2\@addtofilelist{#1}\@@input \@filef at und}}
@@ -769,7 +769,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\@@_subst_add:nn}{Declaring file substitution}%
+%<latexrelease> {\@@_subst_add:nn}{Declaring file substitution}%
\ExplSyntaxOn
% \end{macrocode}
%
@@ -841,7 +841,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\declare at file@substitution}{File substitution}%
+%<latexrelease> {\declare at file@substitution}{File substitution}%
\ExplSyntaxOn
\cs_new_eq:NN \declare at file@substitution \@@_subst_add:nn
\cs_new_eq:NN \undeclare at file@substitution \@@_subst_remove:n
@@ -852,7 +852,7 @@
%
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{0000/00/00}%
-%<latexrelease> {\declare at file@substitution}{File substitution}%
+%<latexrelease> {\declare at file@substitution}{File substitution}%
%<latexrelease>
%<latexrelease>\let \declare at file@substitution \@undefined
%<latexrelease>\let \undeclare at file@substitution \@undefined
@@ -898,7 +898,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\set at curr@file}{Setting current file name}%
+%<latexrelease> {\set at curr@file}{Setting current file name}%
\def\set at curr@file#1{%
\begingroup
\escapechar\m at ne
@@ -939,7 +939,7 @@
%
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2019/10/01}%
-%<latexrelease> {\set at curr@file}{Setting current file name}%
+%<latexrelease> {\set at curr@file}{Setting current file name}%
%<latexrelease>\def\set at curr@file#1{%
%<latexrelease> \begingroup
%<latexrelease> \escapechar\m at ne
@@ -955,7 +955,7 @@
%
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{0000/00/00}%
-%<latexrelease> {\set at curr@file}{Setting current file name}%
+%<latexrelease> {\set at curr@file}{Setting current file name}%
%<latexrelease>\let\set at curr@file\@undefined
%<latexrelease>\EndIncludeInRelease
%<*2ekernel>
@@ -973,7 +973,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\@kernel at make@file at csname}{Make file csname}%
+%<latexrelease> {\@kernel at make@file at csname}{Make file csname}%
% \end{macrocode}
%
% \begin{macrocode}
@@ -1035,7 +1035,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {@@_set_curr_file:N}{Set curr file}%
+%<latexrelease> {@@_set_curr_file:N}{Set curr file}%
\ExplSyntaxOn
%<@@=filehook>
\cs_new_protected:Npn \@@_set_curr_file:N #1
@@ -1074,7 +1074,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\@@_resolve_file_subst:w}{Replace files detect loops}%
+%<latexrelease> {\@@_resolve_file_subst:w}{Replace files detect loops}%
\ExplSyntaxOn
\cs_new:Npn \@@_resolve_file_subst:w #1 \@nil
{ \@@_file_parse_full_name:nN {#1} \@@_file_subst_begin:nnn }
@@ -1166,7 +1166,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\@@_file_subst_tortoise_hare:nn}{Tortoise and Hare}%
+%<latexrelease> {\@@_file_subst_tortoise_hare:nn}{Tortoise and Hare}%
\ExplSyntaxOn
\cs_new:Npn \@@_file_subst_tortoise_hare:nn #1 #2 #3
{
@@ -1259,7 +1259,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\disable at package@load}{Disable packages}%
+%<latexrelease> {\disable at package@load}{Disable packages}%
\def\disable at package@load#1#2{%
\global\@namedef{@pkg-disable@#1.\@pkgextension}{#2}}
% \end{macrocode}
@@ -1283,7 +1283,7 @@
%</2ekernel|latexrelease>
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{0000/00/00}%
-%<latexrelease> {\disable at package@load}{Disable packages}%
+%<latexrelease> {\disable at package@load}{Disable packages}%
%<latexrelease>
%<latexrelease>\let\disable at package@load \@undefined
%<latexrelease>\let\@disable at packageload@do\@undefined
@@ -1324,7 +1324,7 @@
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease> {\@expl@@@filehook at if@no at extension@@nTF}{2e tmp interfaces}%
+%<latexrelease> {\@expl@@@filehook at if@no at extension@@nTF}{2e tmp interfaces}%
\ExplSyntaxOn
% \end{macrocode}
%
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index fbbcac62..13679849 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -2741,11 +2741,8 @@
{
\int_incr:N \l_@@_labels_int
\seq_put_right:Nn \l_@@_labels_seq {##1}
- \tl_set:cn { \@@_tl_csname:n {##1} }{0} % the counter k for number of
- % j before k rules
- \seq_clear_new:c { \@@_seq_csname:n {##1} } % sequence of successors to k
- % i.e., k before j rules (stores
- % the names of the j's)
+ \tl_set:cn { \@@_tl_csname:n {##1} }{0}
+ \seq_clear_new:c { \@@_seq_csname:n {##1} }
}
% \end{macrocode}
% Steps T2 and T3: Sort the relevant rules into the data structure\ldots
@@ -2784,7 +2781,7 @@
% Step T4:
% \begin{macrocode}
\tl_set:Nn \l_@@_rear_tl { 0 }
- \tl_set:cn { \@@_tl_csname:n { 0 } } { 0 } % really {l_@@_label_ \l_@@_rear_tl _tl}
+ \tl_set:cn { \@@_tl_csname:n { 0 } } { 0 }
\seq_map_inline:Nn \l_@@_labels_seq
{
\int_compare:nNnT { \cs:w \@@_tl_csname:n {##1} \cs_end: } = 0
@@ -2825,8 +2822,11 @@
\seq_map_inline:cn { \@@_seq_csname:n { \l_@@_front_tl } }
{
\tl_set:cx { \@@_tl_csname:n {##1} }
- { \int_eval:n { \cs:w \@@_tl_csname:n {##1} \cs_end: - 1 } }
- \int_compare:nNnT { \cs:w \@@_tl_csname:n {##1} \cs_end: } = 0
+ { \int_eval:n
+ { \cs:w \@@_tl_csname:n {##1} \cs_end: - 1 }
+ }
+ \int_compare:nNnT
+ { \cs:w \@@_tl_csname:n {##1} \cs_end: } = 0
{
\tl_set:cn { \@@_tl_csname:n { \l_@@_rear_tl } } {##1}
\tl_set:Nn \l_@@_rear_tl {##1}
@@ -2835,7 +2835,8 @@
% \end{macrocode}
% and step T7:
% \begin{macrocode}
- \tl_set_eq:Nc \l_@@_front_tl { \@@_tl_csname:n { \l_@@_front_tl } }
+ \tl_set_eq:Nc \l_@@_front_tl
+ { \@@_tl_csname:n { \l_@@_front_tl } }
% \end{macrocode}
%
% This is step T8: If we haven't moved the code for all labels
@@ -3084,7 +3085,7 @@
% \begin{macrocode}
\cs_new_protected:Npn \@@_debug_label_data:N #1 {
\iow_term:x{Code~ labels~ for~ sorting:}
- \iow_term:x{~ \seq_use:Nnnn\l_@@_labels_seq {~and~}{,~}{~and~} } % fix name!
+ \iow_term:x{~ \seq_use:Nnnn\l_@@_labels_seq {~and~}{,~}{~and~} }
\iow_term:x{^^J Data~ structure~ for~ label~ rules:}
\prop_map_inline:Nn #1
{
@@ -3138,7 +3139,8 @@
% the first tokens (the code to clear itself) so we call a helper
% command to get rid of them.
% \begin{macrocode}
- {->~ \exp_args:Nv \@@_log_next_code:n {g_@@_#1_code_next_tl} } }
+ {->~ \exp_args:Nv
+ \@@_log_next_code:n {g_@@_#1_code_next_tl} } }
% \end{macrocode}
%
% Loop through the rules in a hook and for every rule found, print it.
More information about the latex3-commits
mailing list.