From: miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 59456@debbugs.gnu.org
Subject: bug#59456: 29.0.50; eglot with ccls: completion inserts unwanted function signature
Date: Mon, 21 Nov 2022 21:18:43 +0100 [thread overview]
Message-ID: <87edtw2h98.fsf@miha-pc> (raw)
[-- Attachment #1: Type: text/plain, Size: 513 bytes --]
Put this test.c file into an empty direcotry
int fun1 (char *a, int b) {
return b + 1;
}
int fun2 (char *a, int b) {
return b + 2;
}
Visit it with emacs -q and do
M-: (setq completion-cycle-threshold 3)
M-x eglot RET ccls RET
At the end of the file type
int main () { fu
and press M-TAB. "fu" completes into "fun1(char *a, int b) -> int".
Note that this isn't reproducible with clangd, so this could possibly be
a ccls bug.
clang version: 14.0.6
ccls version: 0.20220729-1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
reply other threads:[~2022-11-21 20:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edtw2h98.fsf@miha-pc \
--to=bug-gnu-emacs@gnu.org \
--cc=59456@debbugs.gnu.org \
--cc=miha@kamnitnik.top \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.