Skip to content

Commit 1e520dc

Browse files
committed
Remove \pgfkeys@ifcsname #863
This was only an alias for \ifcsname anyway and is luckily supported by all formats (looking at you, ConTeXt).
1 parent c8d7d9b commit 1e520dc

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

tex/generic/pgf/utilities/pgfkeys.code.tex

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
\csname @@end\expandafter\endcsname\expandafter\end%
4444
\fi
4545

46-
\expandafter\let\expandafter\pgfkeys@ifcsname\csname ifcsname\endcsname%
47-
4846
% Set a key to a value
4947
%
5048
% #1 = key
@@ -178,7 +176,7 @@
178176
%
179177
% \pgfkeysifdefined{/tikz/length}{key exists}{does not exist}
180178

181-
\long\def\pgfkeysifdefined#1#2#3{\pgfkeys@ifcsname pgfk@#1\endcsname#2\else#3\fi}
179+
\long\def\pgfkeysifdefined#1#2#3{\ifcsname pgfk@#1\endcsname#2\else#3\fi}
182180

183181
% Tests whether a key is assignable. For standard keys which just
184182
% store their value, this is identical to \pgfkeysifdefined.
@@ -420,7 +418,7 @@
420418
\def\pgfkeys@ifexecutehandler#1#2{#1}%
421419
\let\pgfkeys@ifexecutehandler@handleall=\pgfkeys@ifexecutehandler
422420
\def\pgfkeys@ifexecutehandler@handleonlyexisting#1#2{%
423-
\pgfkeys@ifcsname pgfk@excpt@\pgfkeyscurrentname\endcsname%
421+
\ifcsname pgfk@excpt@\pgfkeyscurrentname\endcsname%
424422
#1% ok, this particular key handler is known and should be processed in any case (for example .try)
425423
\else
426424
% implement the 'only existing' feature here:
@@ -431,7 +429,7 @@
431429
}%
432430
\def\pgfkeys@ifexecutehandler@handlefullorexisting#1#2{%
433431
\ifpgfkeysaddeddefaultpath
434-
\pgfkeys@ifcsname pgfk@excpt@\pgfkeyscurrentname\endcsname%
432+
\ifcsname pgfk@excpt@\pgfkeyscurrentname\endcsname%
435433
#1% ok, this particular key handler is known and be processed in any case (for example .try)
436434
\else
437435
% implement the 'only existing' feature here:
@@ -828,7 +826,7 @@
828826
}%
829827
}
830828
\def\pgfkeys@handle@boolean#1#2{%
831-
\pgfkeys@ifcsname#1#2\endcsname%
829+
\ifcsname#1#2\endcsname%
832830
\csname#1#2\endcsname%
833831
\else%
834832
\def\pgf@marshal{\pgfkeysvalueof{/errors/boolean expected/.@cmd}}%

tex/generic/pgf/utilities/pgfkeysfiltered.code.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
%
265265
% If the family exists, #2 will be executed. Otherwise, #3 will be
266266
% called.
267-
\long\def\pgfkeysiffamilydefined#1#2#3{\pgfkeys@ifcsname ifpgfk@#1/familyactive\endcsname#2\else#3\fi}
267+
\long\def\pgfkeysiffamilydefined#1#2#3{\ifcsname ifpgfk@#1/familyactive\endcsname#2\else#3\fi}
268268

269269
% Sets the TeX boolean
270270
% \ifpgfkeysfiltercontinue := ( family #1 is active )

0 commit comments

Comments
 (0)