[latex3-commits] [git/LaTeX3-latex3-latex2e] gh648: Use the correct test in \@@_gput_next_code:nn (49a1424a)

PhelypeOleinik phelype.oleinik at latex-project.org
Fri Aug 27 23:58:12 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh648
Link       : https://github.com/latex3/latex2e/commit/49a1424ab4c6b7e1aa7c4991f5fbf52b4562a416

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

commit 49a1424ab4c6b7e1aa7c4991f5fbf52b4562a416
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Fri Aug 27 18:58:12 2021 -0300

    Use the correct test in \@@_gput_next_code:nn
    
    \@@_if_structure_exist:nTF instead of \@@_if_usable:nTF, because we want to add code to it, and not use it.  This also makes checking for deprecation unnecessary (already done in \@@_try_declaring_generic_next_hook:nn)


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

49a1424ab4c6b7e1aa7c4991f5fbf52b4562a416
 base/lthooks.dtx | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index ccdc4b4a..87a68571 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -4422,17 +4422,10 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_gput_next_code:nn #1 #2
   {
-    \@@_if_deprecated_generic:nT {#1}
-      {
-        \@@_deprecated_generic_warn:n {#1}
-        \@@_do_deprecated_generic:Nn \@@_gput_next_code:nn {#1} {#2}
-        \use_none:nnnn
-      }
     \@@_if_disabled:nTF {#1}
       { \msg_error:nnn { hooks } { hook-disabled } {#1} }
       {
-        \@@_init_structure:n {#1}
-        \@@_if_usable:nTF {#1}
+        \@@_if_structure_exist:nTF {#1}
           { \@@_gput_next_do:nn {#1} {#2} }
           { \@@_try_declaring_generic_next_hook:nn {#1} {#2} }
       }





More information about the latex3-commits mailing list.