Sadly, putting `\@...' control sequences in the index doesn't work.
%% Category-kind methods for `method' categories. Collect an extra argument
%% listing the specializers: include them in the label, and typeset them in
%% the index.
%% Category-kind methods for `method' categories. Collect an extra argument
%% listing the specializers: include them in the label, and typeset them in
%% the index.
-\def\@fmtspecs#1#2{%
- \if!#2!\else\count@\z@\toks@{}#1\@fmtspecs@i#2,\q@,\fi}
-\def\@fmtspecs@i#1,{%
+\def\fmtspecs#1#2{%
+ \if!#2!\else\count@\z@\toks@{}#1\fmtspecs@i#2,\q@,\fi}
+\def\fmtspecs@i#1,{%
\def\@tempa{#1}%
\ifx\@tempa\q@%
\ifcase\count@(no args?!)%
\def\@tempa{#1}%
\ifx\@tempa\q@%
\ifcase\count@(no args?!)%
\ifnum\count@>\@ne, \fi%
\the\toks@%
\toks@{\code{#1}}\advance\count@\@ne%
\ifnum\count@>\@ne, \fi%
\the\toks@%
\toks@{\code{#1}}\advance\count@\@ne%
- \expandafter\@fmtspecs@i%
+ \expandafter\fmtspecs@i%
\fi%
}
\@namedef{descargs/method}#1#2{#1{{#2}}}
\fi%
}
\@namedef{descargs/method}#1#2{#1{{#2}}}
\@namedef{descindex/method}#1#2#3#4{%
\@mod@dispatch{modindex}{#2}{#3}!%
\protect\describecategoryname[#2]{#1}%
\@namedef{descindex/method}#1#2#3#4{%
\@mod@dispatch{modindex}{#2}{#3}!%
\protect\describecategoryname[#2]{#1}%
- \protect\@fmtspecs{ specialized at }{#4}%
+ \protect\fmtspecs{ specialized at }{#4}%