[latex3-commits] [git/LaTeX3-latex3-latex2e] cmdhook-fixes: Remove deprecated \DeclareDefaultHookLabel (afd9cfc7)

PhelypeOleinik phelype.oleinik at latex-project.org
Wed May 26 07:07:36 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : cmdhook-fixes
Link       : https://github.com/latex3/latex2e/commit/afd9cfc7633a9eb4dd0cc11e909a136e712ffd4c

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

commit afd9cfc7633a9eb4dd0cc11e909a136e712ffd4c
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Wed May 26 02:07:36 2021 -0300

    Remove deprecated \DeclareDefaultHookLabel


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

afd9cfc7633a9eb4dd0cc11e909a136e712ffd4c
 base/changes.txt |  5 +++++
 base/lthooks.dtx | 20 ++------------------
 2 files changed, 7 insertions(+), 18 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index a6ed9b9e..b72d69d4 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2021-05-26  Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* lthooks.dtx:
+	Remove deprecated \DeclareDefaultHookLabel for good.
+
 2021-05-14  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltoutput.dtx: normalize the error commands, always use
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 45d6a78a..38e636ce 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -31,8 +31,8 @@
 %%% From File: lthooks.dtx
 %
 %    \begin{macrocode}
-\def\lthooksversion{v1.0m}
-\def\lthooksdate{2021/04/29}
+\def\lthooksversion{v1.0n}
+\def\lthooksdate{2021/05/26}
 %    \end{macrocode}
 %
 %<*driver>
@@ -4627,15 +4627,6 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\__kernel_msg_new:nnn { hooks } { ddhl-deprecated }
-  {
-    \iow_char:N \\DeclareDefaultHookLabel~is~deprecated.\\
-    Use~\iow_char:N \\SetDefaultHookLabel~instead.\\ \\
-    The~deprecated~name~will~be~removed~in~the~next~release.
-  }
-%    \end{macrocode}
-%
-%    \begin{macrocode}
 \__kernel_msg_new:nnn { hooks } { extra-pop-label }
   {
     Extra~\iow_char:N \\PopDefaultHookLabel. \\
@@ -4764,7 +4755,6 @@
 % \begin{macro}{\SetDefaultHookLabel}
 % \begin{macro}{\PushDefaultHookLabel}
 % \begin{macro}{\PopDefaultHookLabel}
-% \begin{macro}{\DeclareDefaultHookLabel}
 %
 % \fmiinline{Docu task: At some point this code for this should be moved to the
 %    label section earlier and here we should keep only the interface commands.}
@@ -4898,11 +4888,6 @@
       }
       { \tl_gset:Nn \g_@@_hook_curr_name_tl {#1} }
   }
-\NewDocumentCommand \DeclareDefaultHookLabel { m }
-  {
-    \__kernel_msg_error:nn { hooks } { ddhl-deprecated }
-    \SetDefaultHookLabel {#1}
-  }
 %    \end{macrocode}
 %
 %   The label is only automatically updated with \cs{@onefilewithoptions}
@@ -4942,7 +4927,6 @@
 % \end{macro}
 % \end{macro}
 % \end{macro}
-% \end{macro}
 %
 %
 %





More information about the latex3-commits mailing list.