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

c-defun-name-and-limits returns nil always #25

Open
sebasmonia opened this issue Jan 20, 2021 · 2 comments
Open

c-defun-name-and-limits returns nil always #25

sebasmonia opened this issue Jan 20, 2021 · 2 comments

Comments

@sebasmonia
Copy link
Owner

Find a more reliable way to find out the current method.

@sebasmonia
Copy link
Owner Author

Apparently this was broken only in Emacs 28 (dev branch), so I can assume it will work again by the time Emacs 28 releases.
Still worth it to look into, maybe, an lsp-mode setup?
The code would try to get the method name from lsp, then c-defun-name-and-limits, and finally thing-at-point.

@sebasmonia
Copy link
Owner Author

Wondering if tree sitter can also be incorporated into this mix.

TS -> LSP/Eglot -> c-defun-name-and-limits -> symbol-at-point

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

1 participant