summaryrefslogtreecommitdiff
path: root/macros/latex-dev/base/ltcmdhooks.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-03-28 03:01:34 +0000
committerNorbert Preining <norbert@preining.info>2024-03-28 03:01:34 +0000
commit79e9e48f9496fe82b7e76b2b318d24e9aab1ca8a (patch)
tree5c7e66ed056f7855cb4caee718c5406c947e3af8 /macros/latex-dev/base/ltcmdhooks.dtx
parent31fa8cd73bab8480d38dae3a89ca578f337d6bbd (diff)
CTAN sync 202403280301
Diffstat (limited to 'macros/latex-dev/base/ltcmdhooks.dtx')
-rw-r--r--macros/latex-dev/base/ltcmdhooks.dtx14
1 files changed, 11 insertions, 3 deletions
diff --git a/macros/latex-dev/base/ltcmdhooks.dtx b/macros/latex-dev/base/ltcmdhooks.dtx
index bb071e629c..a3c89b48a9 100644
--- a/macros/latex-dev/base/ltcmdhooks.dtx
+++ b/macros/latex-dev/base/ltcmdhooks.dtx
@@ -20,7 +20,7 @@
%<*driver>
% \fi
\ProvidesFile{ltcmdhooks.dtx}
- [2024/02/11 v1.0i LaTeX Kernel (Command hooks)]
+ [2024/03/09 v1.0i LaTeX Kernel (Command hooks)]
% \iffalse
%
\documentclass{l3doc}
@@ -129,8 +129,8 @@
% \item
%
% that code can be prepended or appended (i.e., added to the
-% hooks) even if the command itself is not defined, because the
-% defining package has not yet been loaded;
+% hooks) even if the command itself is not (yet) defined, because the
+% defining package has not been loaded at this point;
%
% \item
%
@@ -218,6 +218,14 @@
% optional and mandatory arguments. By adding code to the
% \hook{cmd/section/after} hook, you get in the way of that scanning.
%
+% In such a case, where it is known that a specific generic command
+% hook does not work if code is added to it, the package author can
+% add a \cs{DisableGenericHook}\footnote{Please use
+% \cs{DisableGenericHook} if at all, only on hooks that you
+% \enquote{own}, i.e., for commands your package or class defines and
+% not second guess whether or not hooks of other packages should get
+% disabled!} declaration to prevent this from happening in user
+% documents and thereby avoiding obscure errors.
%
%
% \section{Package Author Interface}