From 874ece84a0d160db419570dff359a6e4c3c44063 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 5 Sep 2009 22:54:26 +0000
Subject: oberdiek update (5sep09)

git-svn-id: svn://tug.org/texlive/trunk@15145 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/generic/oberdiek/kvsetkeys.sty  | 37 +++++++++++-----------
 1 file changed, 18 insertions(+), 19 deletions(-)

(limited to 'Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty')

diff --git a/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty b/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
index 7fd6ba87c7a..2a51a70ac21 100644
--- a/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
+++ b/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
@@ -35,29 +35,26 @@
   \catcode46 12 % .
   \catcode58 12 % :
   \catcode64 11 % @
+  \catcode123 1 % {
+  \catcode125 2 % }
   \expandafter\let\expandafter\x\csname ver@kvsetkeys.sty\endcsname
-  \ifcase 0%
-    \ifx\x\relax % plain
+  \ifx\x\relax % plain-TeX, first loading
+  \else
+    \def\empty{}%
+    \ifx\x\empty % LaTeX, first loading,
+      % variable is initialized, but \ProvidesPackage not yet seen
     \else
-      \ifx\x\empty % LaTeX
+      \catcode35 6 % #
+      \expandafter\ifx\csname PackageInfo\endcsname\relax
+        \def\x#1#2{%
+          \immediate\write-1{Package #1 Info: #2.}%
+        }%
       \else
-        1%
+        \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
       \fi
+      \x{kvsetkeys}{The package is already loaded}%
+      \aftergroup\endinput
     \fi
-  \else
-    \catcode35 6 % #
-    \catcode123 1 % {
-    \catcode125 2 % }
-    \expandafter\ifx\csname PackageInfo\endcsname\relax
-      \def\x#1#2{%
-        \immediate\write-1{Package #1 Info: #2.}%
-      }%
-    \else
-      \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
-    \fi
-    \x{kvsetkeys}{The package is already loaded}%
-    \endgroup
-    \expandafter\endinput
   \fi
 \endgroup
 \begingroup
@@ -70,6 +67,8 @@
   \catcode47 12 % /
   \catcode58 12 % :
   \catcode64 11 % @
+  \catcode91 12 % [
+  \catcode93 12 % ]
   \catcode123 1 % {
   \catcode125 2 % }
   \expandafter\ifx\csname ProvidesPackage\endcsname\relax
@@ -90,7 +89,7 @@
   \fi
 \expandafter\x\csname ver@kvsetkeys.sty\endcsname
 \ProvidesPackage{kvsetkeys}%
-  [2009/07/19 v1.4 Key value parser with default handler support (HO)]
+  [2009/07/30 v1.5 Key value parser with default handler support (HO)]
 \begingroup
   \catcode123 1 % {
   \catcode125 2 % }
-- 
cgit v1.2.3

