[latex3-commits] [git/LaTeX3-latex3-latex2e] copyedits-chris: copyedits ltcmdhooks [ci skip] (04105ce9)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Sep 7 09:07:23 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : copyedits-chris
Link       : https://github.com/latex3/latex2e/commit/04105ce963200c23841ebdd9ab9d0bc16331e76f

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

commit 04105ce963200c23841ebdd9ab9d0bc16331e76f
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Sep 7 09:07:23 2021 +0200

    copyedits ltcmdhooks [ci skip]


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

04105ce963200c23841ebdd9ab9d0bc16331e76f
 base/ltcmdhooks.dtx | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/base/ltcmdhooks.dtx b/base/ltcmdhooks.dtx
index 2fabad10..b6c57a41 100644
--- a/base/ltcmdhooks.dtx
+++ b/base/ltcmdhooks.dtx
@@ -400,11 +400,14 @@
 %
 % \subsection{Patching or delaying}
 %
-% \begin{macro}{\@@_try_put_cmd_hook:n,\@@_try_put_cmd_hook:w}
 %   Before |\begin{document}| all patching is delayed.
+%
+% \begin{macro}{\@@_try_put_cmd_hook:n,\@@_try_put_cmd_hook:w}
 %   This function is called from within \cs{AddToHook}, when code is
-%   first added to a generic |cmd| hook.  It either tries to patch
-%   or delay patching to |\begin{document}| if in the preamble.
+%   first added to a generic |cmd| hook.  
+%   If it is called within in the preamble, it delays the action
+%   until |\begin{document}|; 
+%   otherwise it tries to update the hook.
 % \changes{v1.0d}{2021/08/25}{Simplify generic hook detection}
 %    \begin{macrocode}
 %<latexrelease>\IncludeInRelease{2021/11/15}{\@@_try_put_cmd_hook:n}%
@@ -610,8 +613,8 @@
 %   With \cs{@@_patch_DeclareRobustCommand:Nnn} we check if the command
 %   has an optional argument (with a test counter-intuitively called
 %   \tn{@if at newcommand}; also make sure the command doesn't take args by
-%   calling \cs{robust at command@chk at safe}).  If so, we forward the action
-%   to \cs{@@_patch_newcommand:Nnn}, otherwise call the patching engine
+%   calling \cs{robust at command@chk at safe}).  If so, we pass the patching action
+%   to \cs{@@_patch_newcommand:Nnn}, otherwise we call the patching engine
 %   \cs{@@_patch_expand_redefine:NNnn} with a \cs{c_false_bool} to
 %   indicate that there is no optional argument.
 %





More information about the latex3-commits mailing list.