From 7b72397a1dd4db0348a7e006bc24cc8268687984 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 13 Oct 2011 22:43:52 +0000
Subject: filehook (13oct11)

git-svn-id: svn://tug.org/texlive/trunk@24280 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/filehook/filehook.sty | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/filehook/filehook.sty')

diff --git a/Master/texmf-dist/tex/latex/filehook/filehook.sty b/Master/texmf-dist/tex/latex/filehook/filehook.sty
index 377d7ee2171..728462c2436 100644
--- a/Master/texmf-dist/tex/latex/filehook/filehook.sty
+++ b/Master/texmf-dist/tex/latex/filehook/filehook.sty
@@ -21,16 +21,15 @@
 %% $Id: filehook.dtx 2504 2011-07-18 17:22:50Z martin $
 \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]
 \newif\iffilehook@force
 \DeclareOption{force}{\filehook@forcetrue}
 \ProcessOptions\relax
 \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
-- 
cgit v1.2.3

