[latex3-commits] [git/LaTeX3-latex3-latex2e] ltcmdhooks: @@ and small documentation improvement (87a316d3)

PhelypeOleinik phelype.oleinik at latex-project.org
Tue Apr 20 05:34:14 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : ltcmdhooks
Link       : https://github.com/latex3/latex2e/commit/87a316d357b5bde59912dcff03b13e4bcef27a26

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

commit 87a316d357b5bde59912dcff03b13e4bcef27a26
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Apr 20 00:34:14 2021 -0300

    @@ and small documentation improvement


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

87a316d357b5bde59912dcff03b13e4bcef27a26
 base/lthooks.dtx | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 3ac1199a..7fa054b0 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -2776,20 +2776,20 @@
 %<latexrelease>\IncludeInRelease{2020/10/01}%
 %<latexrelease>         {\@@_try_declaring_generic_hook:wn}{Support~cmd~hooks}
 %<latexrelease>
-%<latexrelease>\prg_new_protected_conditional:Npnn \__hook_try_declaring_generic_hook:wn
+%<latexrelease>\prg_new_protected_conditional:Npnn \@@_try_declaring_generic_hook:wn
 %<latexrelease>    #1 / #2 / #3 / #4 \scan_stop: #5 { TF }
 %<latexrelease>  {
 %<latexrelease>    \tl_if_empty:nTF {#2}
 %<latexrelease>      { \prg_return_false: }
 %<latexrelease>      {
-%<latexrelease>        \prop_if_in:NnTF \c__hook_generics_prop {#1}
+%<latexrelease>        \prop_if_in:NnTF \c_@@_generics_prop {#1}
 %<latexrelease>          {
 %<latexrelease>            \@@_if_declared:nF {#5} { \hook_new:n {#5} }
-%<latexrelease>            \prop_if_in:NnTF \c__hook_generics_reversed_ii_prop {#2}
-%<latexrelease>              { \tl_gset:cn { g__hook_#5_reversed_tl } { - } }
+%<latexrelease>            \prop_if_in:NnTF \c_@@_generics_reversed_ii_prop {#2}
+%<latexrelease>              { \tl_gset:cn { g_@@_#5_reversed_tl } { - } }
 %<latexrelease>              {
-%<latexrelease>                \prop_if_in:NnT \c__hook_generics_reversed_iii_prop {#3}
-%<latexrelease>                  { \tl_gset:cn { g__hook_#5_reversed_tl } { - } }
+%<latexrelease>                \prop_if_in:NnT \c_@@_generics_reversed_iii_prop {#3}
+%<latexrelease>                  { \tl_gset:cn { g_@@_#5_reversed_tl } { - } }
 %<latexrelease>              }
 %<latexrelease>            \prg_return_true:
 %<latexrelease>          }
@@ -3079,15 +3079,12 @@
 %
 %  \begin{macro}{\hook_gset_rule:nnnn}
 %  \begin{macro}{\@@_gset_rule:nnnn}
-%
-%    \fmiinline{needs docu correction given new implementation -- not
-%    sure this  statement is still true, can you check Phelype?}
-%
 %    With
 %    \cs{hook_gset_rule:nnnn}\Arg{hook}\Arg{label1}\Arg{relation}\Arg{label2}
 %    a relation is defined between the two code labels for the given
 %    \meta{hook}.  The special hook \texttt{??} stands for \emph{any}
-%    hook describing a default rule.
+%    hook, which sets a default rule (to be used if no other relation
+%    between the two hooks exist).
 %    \begin{macrocode}
 \cs_new_protected:Npn \hook_gset_rule:nnnn #1#2#3#4
   {





More information about the latex3-commits mailing list.