I was trying to add support for the \csname NAME\endcsname construct, and obtain an invalid expansion.
To reproduce
Create a new TeX file.
Evaluate
(TeX-add-symbols
'("csname" (TeX-arg-literal " ") (TeX-arg-free "macroname") (TeX-arg-literal "\endcsname")))
in that buffer.
Enter C-c RET csname RET somemacro RET to insert \csname somemacro\endcsname.
Expected behavior
Typing \csnam RET should expand to \csname macroname\endcsname, with macroname as a snippet placeholder.
Actual behavior
Instead it expands to \csname{}{}{}.
As far as I can tell from the company-auctex-arg-lookup-table, the package may currently lack the infrastructure code for supporting TeX-arg-free and TeX-arg-literal directly.
I was trying to add support for the
\csname NAME\endcsname
construct, and obtain an invalid expansion.To reproduce
\csname somemacro\endcsname
.Expected behavior
Typing \csnam RET should expand to
\csname macroname\endcsname
, withmacroname
as a snippet placeholder.Actual behavior
Instead it expands to
\csname{}{}{}
.As far as I can tell from the
company-auctex-arg-lookup-table
, the package may currently lack the infrastructure code for supportingTeX-arg-free
andTeX-arg-literal
directly.