summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/filehook/filehook.dtx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/filehook/filehook.dtx b/Master/texmf-dist/source/latex/filehook/filehook.dtx
index ce45eaef8b3..01dd5bbedcd 100644
--- a/Master/texmf-dist/source/latex/filehook/filehook.dtx
+++ b/Master/texmf-dist/source/latex/filehook/filehook.dtx
@@ -29,12 +29,12 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{filehook}
%<*package>
- [2011/10/07 v0.5c Hooks for input files]
+ [2011/10/12 v0.5d Hooks for input files]
%</package>
%
%<*driver>
\documentclass{ydoc}[2011/03/19]
-\usepackage{filehook}[2011/07/18]
+\usepackage{filehook}[2011/10/12]
\EnableCrossrefs
\CodelineIndex
\RecordChanges
@@ -55,7 +55,7 @@
%</driver>
% \fi
%
-% \CheckSum{1019}
+% \CheckSum{1018}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -94,6 +94,7 @@
% \changes{v0.5a}{2011/03/09}{Added required \string\long\space to an internal macro.}
% \changes{v0.5b}{2011/07/18}{Replaced \cs{@nameuse} for use with eTeX code to avoid the definition of non-existing hooks to \cs{relax}.}
% \changes{v0.5c}{2011/10/07}{Added fall-back code for non-eTeX compilers.}
+% \changes{v0.5d}{2011/10/12}{Fix for fall-back code.}
%
% \GetFileInfo{filehook.dtx}
%
@@ -510,7 +511,7 @@
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{filehook}
- [2011/10/07 v0.5c Hooks for input files]
+ [2011/10/12 v0.5d Hooks for input files]
% \end{macrocode}
%
% \subsection{Options}
@@ -529,11 +530,10 @@
% \begin{macro}{\filehook@csuse}
% \begin{macrocode}
\begingroup
+\gdef\filehook@csuse#1{\ifcsname #1\endcsname\csname #1\expandafter\endcsname\fi}
\expandafter\ifx\csname csuse\endcsname\relax
\expandafter\ifx\csname ifcsname\endcsname\relax
\gdef\filehook@csuse#1{\expandafter\ifx\csname #1\endcsname\relax\else\csname #1\expandafter\endcsname\fi}
- \else
- \gdef\filehook@csuse#1{\ifcsname #1\endcsname\csname #1\expandafter\endcsname\fi}
\fi
\else
\global\let\filehook@csuse\csuse