[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: change hook name and use it always (bdc98eb)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Apr 20 18:49:30 CEST 2022


Repository : https://github.com/latex3/hyperref
On branch  : cleanup-patches
Link       : https://github.com/latex3/hyperref/commit/bdc98ebd3d8a81b65bc39286cd9f46c6899238f1

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

commit bdc98ebd3d8a81b65bc39286cd9f46c6899238f1
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Apr 20 18:49:30 2022 +0200

    change hook name and use it always


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

bdc98ebd3d8a81b65bc39286cd9f46c6899238f1
 hyperref.dtx | 22 +++++++---------------
 1 file changed, 7 insertions(+), 15 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index 3f4def2..b6ee59b 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -10385,7 +10385,7 @@
 % We do not want the handler for |\refstepcounter| to cut in
 % during the processing of |\item| (we handle that separately),
 % so we provide a bypass conditional.
-% change 2022-04-22: removed test for slide.
+% change 2022-04-22: removed test for the slide counter. 
 %    \begin{macrocode}
 \newif\if at hyper@item
 \newif\if at skiphyperref
@@ -10569,22 +10569,14 @@
 }
 %    \end{macrocode}
 %    \end{macro}
-%    \begin{macro}{\hyper at hook@dest at make}
+%    \begin{macro}{__hyp/target/setname}
 %   We define a hook to allow to overwrite the next destination name.
 %    \begin{macrocode}
-\@ifl at t@r\fmtversion{2020-10-01}
- {%
-   \NewHook{__hyp/dest/make }
-   \def\hyper at hook@dest at make
-    {\UseHook{__hyp/dest/make}}
-   \define at key{Hyp}{next-anchor}{%
-    \AddToHookNext{__hyp/dest/make}%
+\NewHook{__hyp/target/setname }
+\define at key{Hyp}{next-anchor}{%
+    \AddToHookNext{__hyp/target/setname}%
        {\Hy at MakeCurrentHref{#1}}%
    }
- }
- {
-   \def\hyper at hook@dest at make{}
- }
 %    \end{macrocode}
 % \end{macro}
 %    \begin{macro}{\hyper at makecurrent}
@@ -10638,7 +10630,7 @@
   \else
     \global\let\@currentHref\HyperGlobalCurrentHref
   \fi
-  \hyper at hook@dest at make
+  \UseHook{__hyp/target/setname}
 }
 %    \end{macrocode}
 %    \end{macro}
@@ -10665,7 +10657,7 @@
    \def\Hy at MakeCurrentHrefAuto#1{%
    \Hy at GlobalStepCount\Hy at linkcounter
    \Hy at MakeCurrentHref{#1.\the\Hy at linkcounter}%
-   \hyper at hook@dest at make}
+   \UseHook{__hyp/target/setname}}
 %    \end{macrocode}
 %    \end{macro}
 %





More information about the latex3-commits mailing list.