alexeyr / company-auctex

company-mode autocompletion for auctex
49 stars 18 forks source link

No support for more general completion rules? #29

Open kbauer opened 6 years ago

kbauer commented 6 years ago

I was trying to add support for the \csname NAME\endcsname construct, and obtain an invalid expansion.

To reproduce

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.

alexeyr commented 6 years ago

My answer for the moment is going to be "I agree this would be good to fix, pull requests (or forks) welcome". Same for #30.