On Mon, 10 Dec 2007 11:44:34 +0100, Taco Hoekwater wrote: Hi Taco, >>> the notes from the Oldenburg meeting mentions an \expanded primitive: >>> \expanded <general text> >>> Expandable command returning the full expansion >>> of the tokens in <general text>. >>> So since this pretty much exists inside \pdfstrcmp as it is now, it >>> could > > Can someone please post an example of intended use in the > l3 kernel in "plain"-style, just so I understand the usage? I would assume the following should be equivalent except for the latter being expandable. \def\cmd#1{\edef\tempa{#1}\expandafter\cmd\expandafter{\tempa}} \def\cmd#1{\expandafter\cmd\expandafter{\expanded{#1}}} > ConTeXt's \expanded macro expands its argument fully except > for the very first item in it, which is handy for macros that > need expanded arguments, so I assume the actual goals are very > similar. Yes, I think so too. >> a) \expanded would be a nice name, but it clashes with ConTeXt. >> I remember trouble with \unexpanded :-( > > Hans and I think a) would be fine. c) is somewhat silly as it is > not related to pdftex, and also a) combines nicely with the already > present \unexpanded. a) is what I was hoping for. :-) -- Morten