Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for more general completion rules? #29

Open
kbauer opened this issue Jul 23, 2018 · 1 comment
Open

No support for more general completion rules? #29

kbauer opened this issue Jul 23, 2018 · 1 comment

Comments

@kbauer
Copy link

kbauer commented Jul 23, 2018

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.

@alexeyr
Copy link
Owner

alexeyr commented Jul 25, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants