You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I was trying to add support for the
\csname NAME\endcsname
construct, and obtain an invalid expansion.To reproduce
(TeX-add-symbols
'("csname" (TeX-arg-literal " ") (TeX-arg-free "macroname") (TeX-arg-literal "\endcsname")))
in that buffer.
\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.The text was updated successfully, but these errors were encountered: