GNU bug report logs - #65518
30.0.50; [FR Eglot] Completions over all workspace symbols

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Gerd Möllmann <gerd.moellmann@HIDDEN>; dated Fri, 25 Aug 2023 06:45:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 65518 <at> debbugs.gnu.org:


Received: (at 65518) by debbugs.gnu.org; 28 Aug 2023 11:10:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 28 07:10:26 2023
Received: from localhost ([127.0.0.1]:47241 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qaa8Y-0007QU-GX
	for submit <at> debbugs.gnu.org; Mon, 28 Aug 2023 07:10:26 -0400
Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:45122)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qaa8V-0007QE-M9
 for 65518 <at> debbugs.gnu.org; Mon, 28 Aug 2023 07:10:25 -0400
Received: by mail-wr1-x434.google.com with SMTP id
 ffacd0b85a97d-31aeef88a55so2501399f8f.2
 for <65518 <at> debbugs.gnu.org>; Mon, 28 Aug 2023 04:10:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693221011; x=1693825811;
 h=content-transfer-encoding:in-reply-to:subject:from:content-language
 :references:cc:to:user-agent:mime-version:date:message-id:from:to:cc
 :subject:date:message-id:reply-to;
 bh=zs4FkrDEB1WY4hIfjIyzFLfjWTvxmx4NaEcbUudGHh4=;
 b=J2y3oSdTqmsdGs/T9zuLWA8zp3/11SwGiVinhRs6nZeA60L7/+HOaA6L/tf+kaTaOM
 QpCpJ/bb5ZzdasZwVtrPtZSAoixPqsDmBqaawc9T+OqMscoAo+GhRUlJHQHPja4IqC9S
 9/LHCuAxbcQgw4kaP66ni+lOFOa4DWDXGes6Qczdbkn3DSwLMi9+fZYsIYhIuvgPB+rI
 qGJKpiZGJfPMxQU9fhSiYdCwveCofXjx3bOHErSXAlrgCgWkCuEiVGlsZ9OQsViMyL+H
 V8g1cr20Gs/G4e//pCKzym7h016KiRLvhUnT6QldXdi1G+K9+YbY5mwPfi0GjcSXKiNQ
 //wg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693221011; x=1693825811;
 h=content-transfer-encoding:in-reply-to:subject:from:content-language
 :references:cc:to:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=zs4FkrDEB1WY4hIfjIyzFLfjWTvxmx4NaEcbUudGHh4=;
 b=VXFDHBB7aTJpT0ahYAwz3UAHKnX/S/jbnJruGJIv/70jUPray1Kk8a0OmWwVGJ6UI2
 vIRJ4IH9C0+ZH+z5fYjDXzivLnDFGPAbNRzrauShlXe468ym38kfH+F/NAu5CrqUFzMI
 nFrpBGfQbucowU/h0W+zQfnPpzlKbk2EuQSgzeQh3zXwdSiSg4wnCD9An5XRbLh3SL4i
 UxwmeSvXiKK0Z4T4qBcwTcY32Oocx6Ftu3fTe/Cg/qFbxCh/Lfun+tp0isKlLws9SMbL
 Zvt/M2W8azfp/9ban7+Zt4YZBPSug47xYZBY32Foh0cUvlzzrfi3kkDUzXnVpThlDOpQ
 OuBw==
X-Gm-Message-State: AOJu0YwcBgV7VDzkGLb1MyufJDyNfEJKTTwR1hAdEnRJH4QxAwSlvcBD
 4R088MfSw0Q/gwXVdrE7fOs=
X-Google-Smtp-Source: AGHT+IEc5plVFy5LEDoIOaMjH7MlAOOOSfaOAJatSWynMYVySILmdGhwOSsmyCkLom+eAGr5i9h9Zw==
X-Received: by 2002:adf:fc82:0:b0:314:124f:12be with SMTP id
 g2-20020adffc82000000b00314124f12bemr19019846wrr.3.1693221011197; 
 Mon, 28 Aug 2023 04:10:11 -0700 (PDT)
Received: from [192.168.178.21] (pd9e36867.dip0.t-ipconnect.de.
 [217.227.104.103]) by smtp.gmail.com with ESMTPSA id
 h14-20020a05600004ce00b00317f3fd21b7sm10173615wri.80.2023.08.28.04.10.10
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 28 Aug 2023 04:10:10 -0700 (PDT)
Message-ID: <1004e200-6a02-8836-626b-f84e58e9fba3@HIDDEN>
Date: Mon, 28 Aug 2023 13:10:09 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
 Gecko/20100101 Thunderbird/102.14.0
To: Dmitry Gutov <dmitry@HIDDEN>, =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?=
 <joaotavora@HIDDEN>
References: <m24jknsjsx.fsf@HIDDEN> <87ttsnqxw6.fsf@HIDDEN>
 <1d4ad1e8-65d9-d8f4-f1a6-df8ec0e16c5c@HIDDEN>
Content-Language: en-US
From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#65518: 30.0.50; [FR Eglot] Completions over all workspace
 symbols
In-Reply-To: <1d4ad1e8-65d9-d8f4-f1a6-df8ec0e16c5c@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.0 (-)
X-Debbugs-Envelope-To: 65518
Cc: 65518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

On 28.08.23 02:19, Dmitry Gutov wrote:
> On 25/08/2023 12:22, João Távora wrote:
>> You'll see Eglot sends the widest possible 'query' to the LSP server
>> which returns a limited number of names (clangd caps at exactly 100 by
>> default).
> 
> Perhaps it's worth documenting how this value could be increased 
> (argument --limit-results=, apparently).

I've tried that now, and it works pretty nicely for me.  Apple clang 
version 14.0.3 (clang-1403.0.22.14.1)

I now have

export CLANGD_FLAGS="--limit-results=1000 --limit-references=1000"

in my .zshenv, and I'm using exec-path-from-shell in Emacs to get
that setting into Emacs on macOS.

Also, and completely unrelatad, I found that one can add a .clangd, 
which made post-processing the compile_commands.json generated by bear 
unneccessary.

Put a .clangd in the toplevel directory of the Emacs tree with contents

---
If:
     PathMatch: "src/.*\.c"
CompileFlags:
     Add: [-include=config.h]

(Not sure if that first line is obligatory.  I'm not a YAML user.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.

Message received at 65518 <at> debbugs.gnu.org:


Received: (at 65518) by debbugs.gnu.org; 28 Aug 2023 00:19:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 20:19:28 2023
Received: from localhost ([127.0.0.1]:46430 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qaPya-0004Iv-Ag
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 20:19:28 -0400
Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:45035)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qaPyV-0004If-Cm
 for 65518 <at> debbugs.gnu.org; Sun, 27 Aug 2023 20:19:26 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailout.west.internal (Postfix) with ESMTP id 3E2A832004CE;
 Sun, 27 Aug 2023 20:19:10 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute2.internal (MEProxy); Sun, 27 Aug 2023 20:19:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1693181949; x=1693268349; bh=LNwdHX/D4siEBXJKQqMDznW9bqkkYLnOR02
 fcLCq6Os=; b=mKDg3cbhDSX8BSAnnGOw87PnN6PhhDEOZ/L84mU7ikoCSs6llzf
 K/xvxsThH+4nl55AZ7Pte3ubReK/UEpwjabA6ytaDoZM0AH3zHYHgL+3Jsh2OvCw
 WP7giR3JVVDUVMI0IuRbOHaP9zBoffTKGq0JUp2j7tbLQcdkBN3VTmIt3dAe+4+D
 fRxzH+WXKY3QcNJ489kfttdcLAGrQAsMyt3tfcT6c1SOwRvtb9oLLsx4qG68lxM/
 AWIipKSCno4U3g1m6C6Oj1d3oPT9PsnTAS+1yQ+n9eMXOBaUAHLqBmKbXO2M+oQS
 S4ppPhMKKBqfwNNNDGa9Fiuvmr6wX6TrRYA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1693181949; x=1693268349; bh=LNwdHX/D4siEBXJKQqMDznW9bqkkYLnOR02
 fcLCq6Os=; b=YDmysDFgIptqVJktlhDX5e3w4RmL3d+3xP8ysjL1TFJHpQy8fj6
 hvzIyGDUz/e+HOnsDBhPGsl9TPdDoE9rnZ0yszvY3MvFfyyByeadFY0WO5v3pISR
 0LERMXOtVKcXA0PKi0NxVamBnLfsK+k1vikk0DKHh+AQjgGSTpNrFwr+CxxH5EFk
 QXSC7NNIU3LzXldKcEA68b9zxWhfea/lMruop+YVj4K5YuVc5eTsO8QaFtqshtAf
 IMqe4WfuJrcTa3QKhfk07fKjVLTPnPjvoTebsdp0CPuWvFC1vOdLxKtppXXnsrMt
 QZ2vEafHSooaNRa4PDAIoFXdvaVAFHUSwBQ==
X-ME-Sender: <xms:_efrZKFJYfKdyf1VV3ggbDQcldJvHWua-SrvTgmlH1DL5K45b6dtmw>
 <xme:_efrZLUb9WFC8Y2223KZtiwqb6YtS8Gw4N4YgF2DqO4u6exwh7CT8JasjqcpD5Er3
 L7aNVAIL4y0HDVqJjM>
X-ME-Received: <xmr:_efrZELCfWQskybBAB_q-auFhggn-CiIBQ4koUO_xat6fr2Uw0i6UclAzhUhut8>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeffedgfedvucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi
 thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth
 htvghrnhepueffveeiffeugffgveejvdegteeuhfdugfehleelfeejtdelteethfdtieeg
 vddunecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpe
 dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:_efrZEFuzlufUqd24-KxQaUck6h23gKpOm_eVApm17u2480_nefoSg>
 <xmx:_efrZAUcI8xCncvZI_WtEjNnvYPi34K-IJ-SUfEbjOyWWuAoRws2mw>
 <xmx:_efrZHMIoiHswlv6QNC0iAsKqQZR15KL1ISGIf2HaxhMNVgKjzwwiQ>
 <xmx:_efrZLeg0nW77ql63gCWjXGiR2oHCIyuUQo2BTAKC3m1WpXqqlE0Nw>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 27 Aug 2023 20:19:07 -0400 (EDT)
Message-ID: <1d4ad1e8-65d9-d8f4-f1a6-df8ec0e16c5c@HIDDEN>
Date: Mon, 28 Aug 2023 03:19:05 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#65518: 30.0.50; [FR Eglot] Completions over all workspace
 symbols
Content-Language: en-US
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>,
 =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>
References: <m24jknsjsx.fsf@HIDDEN> <87ttsnqxw6.fsf@HIDDEN>
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <87ttsnqxw6.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 65518
Cc: 65518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

On 25/08/2023 12:22, João Távora wrote:
> You'll see Eglot sends the widest possible 'query' to the LSP server
> which returns a limited number of names (clangd caps at exactly 100 by
> default).

Perhaps it's worth documenting how this value could be increased 
(argument --limit-results=, apparently).

Unfortunately, it's currently shared with code completion (proposal to 
change that here: https://github.com/clangd/clangd/discussions/761), so 
raising it too much could made code completion jerkier.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.

Message received at 65518 <at> debbugs.gnu.org:


Received: (at 65518) by debbugs.gnu.org; 27 Aug 2023 06:39:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 02:39:02 2023
Received: from localhost ([127.0.0.1]:43919 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qa9QL-0006S4-VP
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 02:39:02 -0400
Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:45202)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qa9QI-0006RW-K6
 for 65518 <at> debbugs.gnu.org; Sun, 27 Aug 2023 02:39:00 -0400
Received: by mail-ej1-x62b.google.com with SMTP id
 a640c23a62f3a-99357737980so271854466b.2
 for <65518 <at> debbugs.gnu.org>; Sat, 26 Aug 2023 23:38:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693118327; x=1693723127;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=7T9MbE7vZcZ7sAo4R0YOfVKfj5Qj9n+R5taqJ+W9x48=;
 b=WQM7RGQcCMw5zM6quG85GfcTQEm78b8KCrwnEl9aMTBzQFYvlCqYZE3IwLyDs5qsS3
 Hma0pyrMTAR6uca/GIXnC1OFEmfeN588mhMo07Rv8WD1LpVG2A1kzCF+03saEhqSchKF
 AbTZrZ/+aqk2t3ba7WT5gAh8SjzpIxwh/9EbQZzO1Y64OkDEr3C/ko/cLAr6CINTm2g7
 v5lu0E60326kMscnWux/x3t7fWd2dBj9hVRyiy+AJ8xbAnevm8AiWhc3mBZAsCdo5lFS
 ExvuIeo1RL3yUmem0iOAFVH8qhs/7w5RAunogXEr8EbQnzbfQwpH1q5IW75E7hU67BlV
 bbkw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693118327; x=1693723127;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=7T9MbE7vZcZ7sAo4R0YOfVKfj5Qj9n+R5taqJ+W9x48=;
 b=RhQdRrVMjG20EKh9lredvNybGX2AfwMSRYlKoQZ8h3f/zDI4BOBNzSA9LBg/gTW4PY
 W7fR6JyUHryzTqfv1keRAnyt651/Kw/sak0cTtm4NWtS4Pl3KXr74qEj2WIMkGqwqd0u
 G6v09YN+k8Tk8WpYTTGeqYMP8Bbud9hSSBHN1DF/RwFpdIAEhyDYHjadAmqGJh3PrT1+
 6n3z38kXeU62o+tgynlvz3twqtD/3HDYR1QepaC1/23RIjA3tNCkVjOzeUn+VCB95QKo
 UsdbBnVWmsWXAunT1pZO8lcg8WQV1Dj3sYv1fstVQKqGX5pnbC3VU3TXM2T+u+GTTgm8
 yDIw==
X-Gm-Message-State: AOJu0Yz4MP8rG/sZNEeYMW+ChpDayT0shrhWWkHp8R03+G307QNZPy7d
 s9dnIK2M9o7QqMvjN3nPEwNRk45/cuiYXw==
X-Google-Smtp-Source: AGHT+IGUjyunZo4hJ5lPl0LS6Hx0roqtfHP61uato65Etbw2adOPD5I8Myq1tdVZXpb6NNBSyteRsA==
X-Received: by 2002:a17:906:7699:b0:9a2:1e03:1573 with SMTP id
 o25-20020a170906769900b009a21e031573mr6593018ejm.65.1693118326763; 
 Sat, 26 Aug 2023 23:38:46 -0700 (PDT)
Received: from Mini.fritz.box (p4fe3a918.dip0.t-ipconnect.de. [79.227.169.24])
 by smtp.gmail.com with ESMTPSA id
 lh26-20020a170906f8da00b0099cbe71f3b5sm3074366ejb.0.2023.08.26.23.38.45
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 26 Aug 2023 23:38:46 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#65518: 30.0.50; [FR Eglot] Completions over all workspace
 symbols
In-Reply-To: <CALDnm51k2r2BDsx9AmpyockF02bcM2wMeDzFOuJmnWMU3_GL7w@HIDDEN>
 (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Sun, 27 Aug 2023
 07:06:08 +0100")
References: <m24jknsjsx.fsf@HIDDEN> <87ttsnqxw6.fsf@HIDDEN>
 <m2zg2ee6et.fsf@HIDDEN>
 <CALDnm52WLZv5MDNvjJOHFYgWSPk1Auj8+eE7SsPzsy+3M-rrDw@HIDDEN>
 <877cphcpe4.fsf@HIDDEN> <m2ttslgh9g.fsf@HIDDEN>
 <CALDnm51k2r2BDsx9AmpyockF02bcM2wMeDzFOuJmnWMU3_GL7w@HIDDEN>
Date: Sun, 27 Aug 2023 08:38:45 +0200
Message-ID: <m2cyz9gfbe.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65518
Cc: 65518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:

> I'm glad to help, but I must say I'm still at a loss of what the use-case
> actually is.  As far as I can understand, at least from the subject of
> this email, "completion over all workspace symbols" is very much a
> supported feature in Eglot.  What exactly are you missing?  May I
> ask what completion UI package you are using?  Is it Helm? Vertico?
> Corfu? Ivy? Or something else?
>
> I primarily test and use Eglot with Emacs itself.=20=20

Me too.

> I use the built-in completion package fido-vertical-mode.  The only
> relevant third-party package I use is company-mode, but it's not
> directly relevant here.

I'm currently using Company + Helm.  But it's changing every now and then.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.

Message received at 65518 <at> debbugs.gnu.org:


Received: (at 65518) by debbugs.gnu.org; 27 Aug 2023 06:03:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 02:03:52 2023
Received: from localhost ([127.0.0.1]:43865 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qa8sJ-0005Wo-RC
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 02:03:52 -0400
Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:52442)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <joaotavora@HIDDEN>) id 1qa8sG-0005WY-Qz
 for 65518 <at> debbugs.gnu.org; Sun, 27 Aug 2023 02:03:50 -0400
Received: by mail-lj1-x233.google.com with SMTP id
 38308e7fff4ca-2b962535808so33520861fa.0
 for <65518 <at> debbugs.gnu.org>; Sat, 26 Aug 2023 23:03:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693116217; x=1693721017;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=c/sfdhMIWH6Q0cnGg6FLeX5ag7Zm+L3IDgLjMC5MeU8=;
 b=mwrMKuG1ApjAS6Ks5ckx1pR0l3GrzSqTk8BX3VRFNsjJRpTxPm6+d4dBy1lI55oICe
 95Ogmrruu6NIUP9R/e8Hm5YGgPaYnBLykg1pvIPdNSESkLbYpuLDPrywCYS+rj8aPi7g
 F8Tt3zN6k86H2Cznjn5T8lAUpz2fsjWE4EzzTSHWpgS4+p4othvtIQyuaOwo4YUm/Dne
 X4eRJmTpTIzYF+LgXpEHQQb0ZL1rjva+67yfoPjQF9SEzKjavIxe7EnYuIYirYWNbxYo
 YpuQ7ab+tVlAbbLIfsP+zHOqx2WDA+BpIKwrw6Ohhs6zX6YmYtOdYwaQt6/coiJ1AzEC
 YOHA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693116217; x=1693721017;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=c/sfdhMIWH6Q0cnGg6FLeX5ag7Zm+L3IDgLjMC5MeU8=;
 b=XK7MgnF9KhbJg6jMk5RQ3o+oMAE90MAKYPDAwId8+pycaE7bEcpbowHqb7DJ2jaeEW
 kTf5v2WTSr2kt9i3ImpX9As8vSNj0QK4I5Zg2jqDYMvbAUa1mQSYfI5zQWbxn5gnYgdB
 npQMoU7yYjTTaGpuHORHH3vxrjdRhbrx0JNhbI7xVfqHLHRXqCByC8SpyxYNuIGKOK5j
 TgTgEVCcgVrv1XK/aTCdSFE9rNzQTqsbswEx+tIMakhd4JRhHjxBbPHuWV34wMWeKZSF
 0g4ZeMeSXkDuFqapoO6uB22YKwTJYVutF9uMjhhF92PZs+tQitAwOVZVDyny7VNhAu3D
 rD/Q==
X-Gm-Message-State: AOJu0YwO2M4AUNBQ0nOCia78hN+Pi3NZ7RjSglLl6nyIeXMTX7fDBxgh
 sfJeQabJ+1YbXfC6yVPwbUlh5xC4LIbZVg5+/VI=
X-Google-Smtp-Source: AGHT+IG4YkieSQw6Wet08k4pgfyOOobAGI2gzr2yk/erEBgIfoEZ6qRctGkTlznK/hvv2brYD7ZNPA3hwaRx3geqxs0=
X-Received: by 2002:a2e:720e:0:b0:2bb:b56b:f67e with SMTP id
 n14-20020a2e720e000000b002bbb56bf67emr13840483ljc.19.1693116216383; Sat, 26
 Aug 2023 23:03:36 -0700 (PDT)
MIME-Version: 1.0
References: <m24jknsjsx.fsf@HIDDEN> <87ttsnqxw6.fsf@HIDDEN>
 <m2zg2ee6et.fsf@HIDDEN>
 <CALDnm52WLZv5MDNvjJOHFYgWSPk1Auj8+eE7SsPzsy+3M-rrDw@HIDDEN>
 <877cphcpe4.fsf@HIDDEN> <m2ttslgh9g.fsf@HIDDEN>
In-Reply-To: <m2ttslgh9g.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Sun, 27 Aug 2023 07:06:08 +0100
Message-ID: <CALDnm51k2r2BDsx9AmpyockF02bcM2wMeDzFOuJmnWMU3_GL7w@HIDDEN>
Subject: Re: bug#65518: 30.0.50;
 [FR Eglot] Completions over all workspace symbols
To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65518
Cc: 65518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sun, Aug 27, 2023 at 6:56=E2=80=AFAM Gerd M=C3=B6llmann <gerd.moellmann@=
gmail.com> wrote:

> > In contrast, Eglot's C-u M-. reaches all the symbols in the whole
> > project, a much better implementation of 'xref-find-deinitions' IMNSHO.
> > In a large project, like LLVM, using Eglot in combination with somethin=
g
> > like `M-x fido-vertical-mode` gives you an interactive incremental
> > completion interface that is able reach millions of symbols across in
> > thousands of C++ files.
>
> Interesting.  Maybe I never noticed this because Emacs' C files include
> so much that I got the impression that that was everything.
>
> Thanks for testing this!
>
> I guess we can close this request, then.  I'll see if can use etags, or
> something, for that use-case.  Or just live with it.
>
> Thanks!

I'm glad to help, but I must say I'm still at a loss of what the use-case
actually is.  As far as I can understand, at least from the subject of
this email, "completion over all workspace symbols" is very much a
supported feature in Eglot.  What exactly are you missing?  May I
ask what completion UI package you are using?  Is it Helm? Vertico?
Corfu? Ivy? Or something else?

I primarily test and use Eglot with Emacs itself.  I use the built-in
completion package fido-vertical-mode.  The only relevant third-party packa=
ge
I use is company-mode, but it's not directly relevant here.

Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.

Message received at 65518 <at> debbugs.gnu.org:


Received: (at 65518) by debbugs.gnu.org; 27 Aug 2023 05:57:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 01:57:04 2023
Received: from localhost ([127.0.0.1]:43861 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qa8lj-0005Lr-Tp
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 01:57:04 -0400
Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:49283)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qa8ld-0005LG-88
 for 65518 <at> debbugs.gnu.org; Sun, 27 Aug 2023 01:57:01 -0400
Received: by mail-ed1-x52a.google.com with SMTP id
 4fb4d7f45d1cf-523b066d7ceso3014173a12.2
 for <65518 <at> debbugs.gnu.org>; Sat, 26 Aug 2023 22:56:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693115805; x=1693720605;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=gURiufhjrk516ZvjrGpVGwkf4/mnEpU8w2yx3iAS8L4=;
 b=I05daUOJkHj4x/J/3NsGKvGOxnCwptewLBdMI89TFv1Os6ZgpR25LgYwgxK2PG0eCx
 ZvhDJ8uU5lVtQebhGsohOEqcwS2IMxFfxUeaoZzdPtvb2cVfxqKrXLIzttXELft/aUFz
 x1P1DSYnHPYkGJcmSpmhf2xXGPw6bwrTd/oIlUpdJ+PiYZceodzZp63OV5YSWiM35W14
 40f3orHc0DZVNcLa/VREezvDlmX1JtZszfhMbxE00NGGqwPOlxeUi5uPM7fPs5RTBS8Q
 eAbjLMsAnw+gjO4dKUZiawc9VcZGJTtSLRTIKcRJiFgoeos/dUMfJU/Alv7nMr7QZ805
 LxRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693115805; x=1693720605;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=gURiufhjrk516ZvjrGpVGwkf4/mnEpU8w2yx3iAS8L4=;
 b=EU+GbUbHSxI/+8DzrcLkBU+7L8tRGi3IiVsouj7t0zTekpUsqWMkkIGZIJzY8BLXkD
 mceutWrQiq8+Kk7Y+/DeQpFlOcytFs0jXDuvNrG4JV+AYrEPG82cjJYkr+t4GrkoMqnA
 HGOjiDpTOxPE68WUIuxPv2q0kIHQRaEwAheping96zTLNF4wdxpplbkitwHhU+siZ4+O
 ZfjpYsI35DjFd8T2Ym9WKru3eCgkR2qVLWlrhPLkwYme27S88E1RI1s1NU3SQ1TARqKn
 /8SGsoqBDQYPDUGkgKgVljMMi4DrIun/cvxlLVweV6YpY48D7dxs5pk/tpn1kyDjLzYd
 r7iw==
X-Gm-Message-State: AOJu0Yz4EOqUG2V6KubjijJHWs7OfdnDrXC0N5In5+sVckJPpRbvhKv5
 cc1xXmcHsiOIypyAY9v74WGO29HO/dzcQg==
X-Google-Smtp-Source: AGHT+IGI8y7PG9p+c2vLTMTyeunyI/nj9DUuEfdd07FUfgRptManBzuccjKv9CGKHRTt64G+XIo9zA==
X-Received: by 2002:a17:906:5356:b0:9a1:abf8:76ad with SMTP id
 j22-20020a170906535600b009a1abf876admr12502869ejo.34.1693115804887; 
 Sat, 26 Aug 2023 22:56:44 -0700 (PDT)
Received: from Mini.fritz.box (p4fe3a918.dip0.t-ipconnect.de. [79.227.169.24])
 by smtp.gmail.com with ESMTPSA id
 ha19-20020a170906a89300b0099c157cba46sm3006304ejb.119.2023.08.26.22.56.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 26 Aug 2023 22:56:44 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#65518: 30.0.50; [FR Eglot] Completions over all workspace
 symbols
In-Reply-To: <877cphcpe4.fsf@HIDDEN> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?=
 =?utf-8?Q?a=22's?= message of "Sun, 27 Aug 2023 01:14:43 +0100")
References: <m24jknsjsx.fsf@HIDDEN> <87ttsnqxw6.fsf@HIDDEN>
 <m2zg2ee6et.fsf@HIDDEN>
 <CALDnm52WLZv5MDNvjJOHFYgWSPk1Auj8+eE7SsPzsy+3M-rrDw@HIDDEN>
 <877cphcpe4.fsf@HIDDEN>
Date: Sun, 27 Aug 2023 07:56:43 +0200
Message-ID: <m2ttslgh9g.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65518
Cc: 65518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:

> Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:
>
>> If you want a comparative analysis to lsp-mode, to increase
>> the chances that this is addressed, I'd also need to know exactly
>> how you set it up.  As far as I understand, lsp-mode doesn't
>> do miracles, it uses the same LSP interfaces available to Eglot
>> (in this case, more than likely `symbol/workspace`, which I've
>> already described).
>
> Out of curiosity, I've had a look at lsp-mode.el.  It does not use
> 'symbol/workspace', rather 'textDocument/documentSymbol'.  So C-u
> M-. provides a complete list of symbols upfront.  But -- crucially --
> that list is limited to contain symbols for the current document only .
>
> So, at first glance, I'd say it's lsp-mode who is missing (lots and lots
> of) symbols.
>
> In contrast, Eglot's C-u M-. reaches all the symbols in the whole
> project, a much better implementation of 'xref-find-deinitions' IMNSHO.
> In a large project, like LLVM, using Eglot in combination with something
> like `M-x fido-vertical-mode` gives you an interactive incremental
> completion interface that is able reach millions of symbols across in
> thousands of C++ files.

Interesting.  Maybe I never noticed this because Emacs' C files include
so much that I got the impression that that was everything.

Thanks for testing this!

I guess we can close this request, then.  I'll see if can use etags, or
something, for that use-case.  Or just live with it.

Thanks!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.

Message received at 65518 <at> debbugs.gnu.org:


Received: (at 65518) by debbugs.gnu.org; 27 Aug 2023 00:12:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 20:12:24 2023
Received: from localhost ([127.0.0.1]:43594 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qa3O7-0001XA-T3
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 20:12:24 -0400
Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:44420)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <joaotavora@HIDDEN>) id 1qa3O1-0001Wt-Q1
 for 65518 <at> debbugs.gnu.org; Sat, 26 Aug 2023 20:12:18 -0400
Received: by mail-lf1-x133.google.com with SMTP id
 2adb3069b0e04-4fe27849e6aso3196867e87.1
 for <65518 <at> debbugs.gnu.org>; Sat, 26 Aug 2023 17:12:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693095122; x=1693699922;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=7Oci7dkTX/G+UDVxTuxILvl7IUemWPdznr3PK2ruyts=;
 b=hhlYVYar4+pQNXR62HimlsQ8JE0iodJBBJtwfGT4XjT23k1/Fo9tZUVvQxbZMlpLR8
 QvBAiW3L7kefVWbIrIJvYZuz1C4XWti5JwyyQSoLS+nA/6ixS02wuNMRyMtxsZ2NxufF
 grekeIeAmxv06IBADB4grDg3y+6tCFJFEKsiGHQuXvEce7MvZAl7x7vJYDO9oksQRRep
 sIhKfeXl9bKUswlhrtO5vwU2+XPvXU9PcPKR6mq7b/Jj/QQUbDkrqKB57L5BodjhvDUE
 6hb1AyGbysJbR1Fyv/EgOVY7tO9356t2QQYBXAhvBGQ4AVwJlv5xNL6tgFVahzTh2M/R
 hGgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693095122; x=1693699922;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=7Oci7dkTX/G+UDVxTuxILvl7IUemWPdznr3PK2ruyts=;
 b=iPAof41U9Iul9zqRf2wmWGjOwYPCI5f10RUnwxtEwhd0nPuvX0rZpun2YemercnQZs
 fnv2addtzzX5yaNWGiKal53ygd/h/bXAvTNCu43H4C0L9nwSjV2vt3SgVHbP/4MT0Laf
 dabGpnH2jEV1vdegc0v+1mA/FOOMQiFrHXnFyMsXXZxyfxMa1eeoUW5l79YEcQ1HK6sg
 l4Z01YN381nRFqOFAyAAuSdUgeXG8hQ+pteIkbyhT+URmeEdkERDk3LqMi8AiC0uSbC4
 JRa9jUQ9KovWBkjjmfqJHkL4tHtU+T4odEIXpSLnBVEIApaUkrOFJs/YX4rAiqIJqsWS
 9tYA==
X-Gm-Message-State: AOJu0YyG0SuiKUksJ4I8qC1qB5Q+enH74Gf/P53zlipICyGosJ/c85iz
 EiJQmYtFturQciNtI4z1t1AkONyZQ7jR4g==
X-Google-Smtp-Source: AGHT+IFwTicX3BqcOCDi9wvmi1bT4dqHmOi2np/fxqRv2DUMy9W12hVSsTtVG41ruxUWSd0xiLsKIA==
X-Received: by 2002:a05:6512:689:b0:4fb:9631:4bb with SMTP id
 t9-20020a056512068900b004fb963104bbmr19496809lfe.11.1693095121692; 
 Sat, 26 Aug 2023 17:12:01 -0700 (PDT)
Received: from krug ([87.196.72.219]) by smtp.gmail.com with ESMTPSA id
 a2-20020a056000100200b0031c6cc74882sm6027944wrx.107.2023.08.26.17.12.00
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 26 Aug 2023 17:12:01 -0700 (PDT)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#65518: 30.0.50; [FR Eglot] Completions over all workspace
 symbols
In-Reply-To: <CALDnm52WLZv5MDNvjJOHFYgWSPk1Auj8+eE7SsPzsy+3M-rrDw@HIDDEN>
 (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Sat, 26 Aug 2023
 09:57:12 +0100")
References: <m24jknsjsx.fsf@HIDDEN> <87ttsnqxw6.fsf@HIDDEN>
 <m2zg2ee6et.fsf@HIDDEN>
 <CALDnm52WLZv5MDNvjJOHFYgWSPk1Auj8+eE7SsPzsy+3M-rrDw@HIDDEN>
Date: Sun, 27 Aug 2023 01:14:43 +0100
Message-ID: <877cphcpe4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65518
Cc: 65518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:

> If you want a comparative analysis to lsp-mode, to increase
> the chances that this is addressed, I'd also need to know exactly
> how you set it up.  As far as I understand, lsp-mode doesn't
> do miracles, it uses the same LSP interfaces available to Eglot
> (in this case, more than likely `symbol/workspace`, which I've
> already described).

Out of curiosity, I've had a look at lsp-mode.el.  It does not use
'symbol/workspace', rather 'textDocument/documentSymbol'.  So C-u
M-. provides a complete list of symbols upfront.  But -- crucially --
that list is limited to contain symbols for the current document only .

So, at first glance, I'd say it's lsp-mode who is missing (lots and lots
of) symbols.

In contrast, Eglot's C-u M-. reaches all the symbols in the whole
project, a much better implementation of 'xref-find-deinitions' IMNSHO.
In a large project, like LLVM, using Eglot in combination with something
like `M-x fido-vertical-mode` gives you an interactive incremental
completion interface that is able reach millions of symbols across in
thousands of C++ files.

Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.

Message received at 65518 <at> debbugs.gnu.org:


Received: (at 65518) by debbugs.gnu.org; 26 Aug 2023 08:54:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 04:54:53 2023
Received: from localhost ([127.0.0.1]:41732 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZp4H-0005Vw-F5
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 04:54:53 -0400
Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:45255)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <joaotavora@HIDDEN>) id 1qZp4F-0005Vd-81
 for 65518 <at> debbugs.gnu.org; Sat, 26 Aug 2023 04:54:52 -0400
Received: by mail-lj1-x231.google.com with SMTP id
 38308e7fff4ca-2bccda76fb1so24667241fa.2
 for <65518 <at> debbugs.gnu.org>; Sat, 26 Aug 2023 01:54:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693040080; x=1693644880;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=R+Lll/9DFNWWfrVrBe7cdbrecDLn/BR8z7MnB3nOO1M=;
 b=I49YN3USslO49hacSItVWJY1IckWHw2Hu5+qgbPGJnDGEiLpWDY9NGYVnCBrWnxu4R
 gEtGjDXQJM+DDfC6nszjXzvS9BtLtmh7tS7vqR3iBVjll9doNCxFFBQL97tZcmX7bDG7
 20z44Wgi95L6lGDR4ACF/VTULtW1bX6rrtxTmQUPc7MjmvinB9bsNTE39V2UDttKl2FW
 1ou/a7GSHsOuXw10tPip3LXamS6XI31yFTHSLXh4JuDHa0DYpAZERo3nEFk/llQNCmkR
 e8AB4PVI2ZmM3sQJKfCmrhnemHJnVCx9MjrsEgnb6/WBS2DBs47OHWUcIUZR3WjoufcL
 /NMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693040080; x=1693644880;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=R+Lll/9DFNWWfrVrBe7cdbrecDLn/BR8z7MnB3nOO1M=;
 b=HOanck1DOdLk0kt3s86+M4QeuuxfhgpS47RedBIr0iXVe700iu49+6TUacfHAa6dhF
 HH0hKF8DrPdpKoVvjYta4DUpKI2dxRo/jM8FUDl/DtN32BejG40sJQyp8Zm9YSf5VeLU
 sn2Ocl+7NY6PJ5rSDIpoPHPHqZkj2F/bbRLH9E5Zdlg59kD5iG1ILCWUdZs0IKrkIEO7
 8ESgMfm3t4ax6oV5+VYEOvaIEyrgUFElHyMQ7WYFCgrzGCU3EXwc78n8UWweis8P8T7i
 YHEol5FkdLZ5wmjCDnt9FSvC4TFwoNWgZMaMBK8UmPwUI7sKN8/fVhZJyeLDNIiDCpQF
 9pSg==
X-Gm-Message-State: AOJu0Yy44CeCwGNBiEdXNn1NER275IBlFc9dh+p95noZxWDnLrhEIT8U
 dZqNFH8Qbuy1z47mmY/4nz365jY/GW1XXmpiDsee/X3Ai7o=
X-Google-Smtp-Source: AGHT+IFAQU8ADkFLi7M5G3Nr2UrP9xwPLBlKFr40fFC2UVCdmMaJ+mnMQNYGF1uBKjz1hXV7rt3Wb5lcv/qU2asSHPg=
X-Received: by 2002:a2e:7e04:0:b0:2bc:b448:b8c0 with SMTP id
 z4-20020a2e7e04000000b002bcb448b8c0mr13563022ljc.34.1693040079496; Sat, 26
 Aug 2023 01:54:39 -0700 (PDT)
MIME-Version: 1.0
References: <m24jknsjsx.fsf@HIDDEN> <87ttsnqxw6.fsf@HIDDEN>
 <m2zg2ee6et.fsf@HIDDEN>
In-Reply-To: <m2zg2ee6et.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Sat, 26 Aug 2023 09:57:12 +0100
Message-ID: <CALDnm52WLZv5MDNvjJOHFYgWSPk1Auj8+eE7SsPzsy+3M-rrDw@HIDDEN>
Subject: Re: bug#65518: 30.0.50;
 [FR Eglot] Completions over all workspace symbols
To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65518
Cc: 65518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sat, Aug 26, 2023 at 6:09=E2=80=AFAM Gerd M=C3=B6llmann <gerd.moellmann@=
gmail.com> wrote:
>
> Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:
>
> > Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
> >

> We are miscommunicating.  This is not a bug report, it's a feature
> request. Referring me to a description of how to produce reproducible
> bug reports I therefore find odd.


Please don't find it odd.  And we are miscommunicating indeed.

Let me be clear: as far as I can detect, and as far as I can understand
it, the situation you describe shouldn't exist.  The pattern `LiPa` should
eventually allow the completion `Lisp_Package` to be offered in theory.

I reach all my completions with similar abbreviated patterns for
example.

But perhaps you aren't using Eglot how I think you are using it.
Perhaps you are using some older clangd version (known to miss completions)
or perhaps you are using some popular "Corfu" package (also known
to miss completions).  Or perhaps there is a indeed bug in Eglot.

Therefore, to give you an and others readers a useful answer,
I must have more information.  And providing the information
in that recipe is the standard way I ask of all Eglot users.

So to continue the analysis of this, I beg you to provide it.
If you don't want to go through that list, I've already collected
some information, so it boils down to telling me:

1. Emacs version and Eglot version
2. Clangd version
3. How to produce your compile_commands.json file
4. What branch of the Emacs C source this is
5. A short description of exactly what you do after starting
Emacs -Q, what you see, and what you would like to see instead.

> As I mentioned, lsp-mode offers the functionality, that I'd like to see i=
n
> Eglot.  I don't know how it does it, and I don't care, really.

If you want a comparative analysis to lsp-mode, to increase
the chances that this is addressed, I'd also need to know exactly
how you set it up.  As far as I understand, lsp-mode doesn't
do miracles, it uses the same LSP interfaces available to Eglot
(in this case, more than likely `symbol/workspace`, which I've
already described).

Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.

Message received at 65518 <at> debbugs.gnu.org:


Received: (at 65518) by debbugs.gnu.org; 26 Aug 2023 05:09:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 01:09:49 2023
Received: from localhost ([127.0.0.1]:41468 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZlYS-0007p5-J6
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 01:09:48 -0400
Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:55523)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qZlYN-0007ol-9m
 for 65518 <at> debbugs.gnu.org; Sat, 26 Aug 2023 01:09:46 -0400
Received: by mail-lf1-x129.google.com with SMTP id
 2adb3069b0e04-4fe61ae020bso2364689e87.2
 for <65518 <at> debbugs.gnu.org>; Fri, 25 Aug 2023 22:09:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693026572; x=1693631372;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=gfsL6Aimn93mjy8QYr6LUgQXwDmyCFvtIcFhv/uVGrw=;
 b=UFqhxNlskJPS4aY+hYHCCpX3jrsPr/ARbht9HLEMfN9PtyCW2VLPrCbPbrNB5oouGx
 Ig+pEOjZNPXI6DGzQK27E7X4XtEQ2CsD8D0Um0PFgheGkmuTWBbZKzuuIvqMnpPV4+3X
 fWvDut6sXNW8vuFHBqBNoOdhKAAH+oVXWuyA64nZJqigad8hbrp26RGK/ipr0B1iAsG1
 cdNGPjcq4Nhs8QFBeDuXwnoeNxFHtx8ugAD9PVbXh/ZdO3wO1oERewjLP6rX3MkOIzeN
 gfaPIwVI+AO5hHMZ7nWeXp2TwKN8U0T0LENg0hFZo7Gn3UORq7q4449NZ0AoUDY9+3IF
 Cbzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693026572; x=1693631372;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=gfsL6Aimn93mjy8QYr6LUgQXwDmyCFvtIcFhv/uVGrw=;
 b=fRQJjeAjyL9iHTMfamnPDYs0LipSiiqH+SlknkAKSUZsp7uyGnFiGQOnojy8FM9T/C
 jZCRIeKOjWeX5xN6TVueIgJ/+vDV0KRzMS72T/N8j32rxNIgxpNI7PtyjM9p+MnXPHj1
 /u4NJJYdq/zj5Dfud6icNfvFZHt6n1n8quVwvmFqIefTHFtcbMUcilz6mdpkSu5snDEJ
 xDHzKCyj1G3YZ4eNShR2YOlRPXNk7gcuyU4erUxaCMcetvFmXw2ZLUP02HR++iORTe9O
 i5dDm7isqugVfpJFaQ3GDs3XXgRpp8EtHdM+0sT7bsr7w/Hb2pMXjqXE5dVjqJAObZ09
 IOCQ==
X-Gm-Message-State: AOJu0YxWFYy+TqsBUjEljhLD1p9NgDfjiQpEutsSZpfZQmViL5oXMDC6
 UwB6XmElLXgUIek1Ogn7TlOHUF1OcGM=
X-Google-Smtp-Source: AGHT+IG7R5/kOkZ1VTmXm3BsEVkGlDAoYYgETrHvFFtVCTquqQ3P3Iz48A+8x57s72iF9fPhQy3Gmg==
X-Received: by 2002:ac2:4bd4:0:b0:4fb:9f24:bba9 with SMTP id
 o20-20020ac24bd4000000b004fb9f24bba9mr16877149lfq.5.1693026571633; 
 Fri, 25 Aug 2023 22:09:31 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36ea3.dip0.t-ipconnect.de.
 [217.227.110.163]) by smtp.gmail.com with ESMTPSA id
 j21-20020a170906831500b009828e26e519sm1670745ejx.122.2023.08.25.22.09.30
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Aug 2023 22:09:31 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#65518: 30.0.50; [FR Eglot] Completions over all workspace
 symbols
In-Reply-To: <87ttsnqxw6.fsf@HIDDEN> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?=
 =?utf-8?Q?a=22's?= message of "Fri, 25 Aug 2023 10:22:49 +0100")
References: <m24jknsjsx.fsf@HIDDEN> <87ttsnqxw6.fsf@HIDDEN>
Date: Sat, 26 Aug 2023 07:09:30 +0200
Message-ID: <m2zg2ee6et.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65518
Cc: 65518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN> writes:

> Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:
>
>> I'm in a C buffer with Eglot running, and I want to go to the definition
>> of something whose name I know, but point is not on an identifier naming
>> that thing.  For instance, I want to go the definition of Lisp_Package
>> (in an obsure branch having a struct Lisp_Package), while point is
>> somewhere.
>
>>
>> C-u M-. offers some completions, but Lisp_Package is not among them.
>> Not using a completion and entering Lisp_Package works.
>
> Like I explained in bug#65517 (which see), this too is based on the
> 'workspace/symbol' request.  You can check your Eglot events buffer (M-x
> eglot-events-buffer) around the time you press C-u M-. to get a feel of
> how the server responds to these queries.
>
> You'll see Eglot sends the widest possible 'query' to the LSP server
> which returns a limited number of names (clangd caps at exactly 100 by
> default).  In large projects it's unlikely the symbol you're looking for
> is there, but as you type more text into the prompt, further
> 'workspace/symbol' requests are made.
>
> Note that, similarly to many other LSP situations, Eglot and Emacs has
> no control over _how_ the server interprets the 'query' string, so there
> is no control over the "completion style" and your setting of
> 'completion-style' has no effect here. The clangd LSP server in
> particular seems to use a somewhat "flex" or "fuzzy" completion style.
>
> You didn't specify exactly how you entered input into your search box,
> and what completion package, if any, you are using.  So, whereas in
> bug#65517 it was simple to understand the root cause of the observed
> behavior, in this particular case, I'm afraid I'm going to have to refer
> you to the usual checklist on making reproducible bug reports for Eglot:
>
>   https://joaotavora.github.io/eglot/#Troubleshooting-Eglot
>
> Here, for your specific example, I'm guessing the project is Emacs
> itself (checked out in your CL packages branch).  I'm also guessing
> you're using the `clangd` server and some of compile_commands.json.
>
> Confirming this data and specifying versions etc should be enough for me
> to reproduce the problem exactly as it appeared to you.  I'm also
> guessing (or at least hoping), you don't use complicated third party
> completion packages and everything can be experimented with via Emacs
> -Q.
>
> For reference, C-u M-. works fairly well here in my projects when used
> with clangd 15.0.7 and the compile_commands.json file generated by the
> CMake system.  I don't yet fully understand how clangd's sorting
> heuristics and completion pattern matching work, but I seem to
> eventually reach the name I want.

We are miscommunicating.  This is not a bug report, it's a feature
request. Referring me to a description of how to produce reproducible
bug reports I therefore find odd.

As I mentioned, lsp-mode offers the functionality, that I'd like to see in
Eglot.  I don't know how it does it, and I don't care, really.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.

Message received at 65518 <at> debbugs.gnu.org:


Received: (at 65518) by debbugs.gnu.org; 25 Aug 2023 09:20:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 05:20:20 2023
Received: from localhost ([127.0.0.1]:39271 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZSzM-0002LM-EJ
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 05:20:20 -0400
Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:58739)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <joaotavora@HIDDEN>) id 1qZSzJ-0002Kz-23
 for 65518 <at> debbugs.gnu.org; Fri, 25 Aug 2023 05:20:18 -0400
Received: by mail-wm1-x335.google.com with SMTP id
 5b1f17b1804b1-401b393df02so6257575e9.1
 for <65518 <at> debbugs.gnu.org>; Fri, 25 Aug 2023 02:20:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1692955206; x=1693560006;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=0voCXghCmx0VlOer4NmxBX6OlhU1zwW5Q+Ha8jMPp3s=;
 b=c0Z74S/U8XuNnp09NMqL9EeIIWU/bWJiRlsnnxtqifKpVxJqD19aZsQi7e7ycjuCWf
 ZFrSVwsFB6spVlvMQouKdrwf98NfFbAU8cmO7KDPXuURz8TdTZbDlo81YTBOO+vTT/U9
 GunVV/rxYgEUxI1s476vgHaSTLhsWvSXVdNwFDWvP8dCQUBKi9elt/iRdnPC134Gc/bS
 baoejtey0WCW+dZy8eMeCkQA2Ul8Z+K7ishZXy+XsgChuJAcUAmA/nKuC0kLbEiS4GmW
 UxLsCZNboym6p9kasKXJYK+Zbl2zneDSRMF6oMOh58ze9KGuj8HCdedPUOG8yut4tw/a
 zNsg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1692955206; x=1693560006;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=0voCXghCmx0VlOer4NmxBX6OlhU1zwW5Q+Ha8jMPp3s=;
 b=P5Ip/TUquEM5A6GfR1VNewZmKbkPCvVMTEIhgudGA1Fr+szhyUBlCreg1J5vxNFzmm
 UfLD6Wgq7vA3zUe6j3ySr91jlmktKcbXkWBQSMFkm+9RYpVSX7unixH8jBQup3L0Ju12
 0abp+WzbFrJ3oSOoNThNSoNEarFqput00G0hk4ATltZb1OpbpoEvCI1/nyVkJIki0Y/G
 pP9C0s4PHpceX2riKEikTrCiTKNdp0OPEmzJysY6tgd1wSlgXcDziz8EZ0YSG/Ao/VWZ
 oQQq6hgQJ+N8gBGIvQesHLLq1kVqIcGyXJHHkhkq7uYJCzZ3++h1eik4PBhxDtFOb9dr
 M5EQ==
X-Gm-Message-State: AOJu0Yx58MK+zda7scKhbrPY8b/PsO2KGll/lulmDA2x6e3jnn3dIqfr
 e1dcGKWlmBvvNwqHZw5gk9enTFX20JG5rA==
X-Google-Smtp-Source: AGHT+IHd2QiE6m/HORjn0E9srVNa5C6HTllA/P179tQHegBU7/EujJng5lbdDdMqZcm/qBOeVU9hcA==
X-Received: by 2002:a1c:7908:0:b0:3fe:22a9:907 with SMTP id
 l8-20020a1c7908000000b003fe22a90907mr13812732wme.20.1692955205864; 
 Fri, 25 Aug 2023 02:20:05 -0700 (PDT)
Received: from krug ([87.196.73.154]) by smtp.gmail.com with ESMTPSA id
 e13-20020a5d4e8d000000b0031753073abcsm1682113wru.36.2023.08.25.02.20.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Aug 2023 02:20:05 -0700 (PDT)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#65518: 30.0.50; [FR Eglot] Completions over all workspace
 symbols
In-Reply-To: <m24jknsjsx.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 25 Aug 2023 08:44:14 +0200")
References: <m24jknsjsx.fsf@HIDDEN>
Date: Fri, 25 Aug 2023 10:22:49 +0100
Message-ID: <87ttsnqxw6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65518
Cc: 65518 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> I'm in a C buffer with Eglot running, and I want to go to the definition
> of something whose name I know, but point is not on an identifier naming
> that thing.  For instance, I want to go the definition of Lisp_Package
> (in an obsure branch having a struct Lisp_Package), while point is
> somewhere.

>
> C-u M-. offers some completions, but Lisp_Package is not among them.
> Not using a completion and entering Lisp_Package works.

Like I explained in bug#65517 (which see), this too is based on the
'workspace/symbol' request.  You can check your Eglot events buffer (M-x
eglot-events-buffer) around the time you press C-u M-. to get a feel of
how the server responds to these queries.

You'll see Eglot sends the widest possible 'query' to the LSP server
which returns a limited number of names (clangd caps at exactly 100 by
default).  In large projects it's unlikely the symbol you're looking for
is there, but as you type more text into the prompt, further
'workspace/symbol' requests are made.

Note that, similarly to many other LSP situations, Eglot and Emacs has
no control over _how_ the server interprets the 'query' string, so there
is no control over the "completion style" and your setting of
'completion-style' has no effect here. The clangd LSP server in
particular seems to use a somewhat "flex" or "fuzzy" completion style.

You didn't specify exactly how you entered input into your search box,
and what completion package, if any, you are using.  So, whereas in
bug#65517 it was simple to understand the root cause of the observed
behavior, in this particular case, I'm afraid I'm going to have to refer
you to the usual checklist on making reproducible bug reports for Eglot:

  https://joaotavora.github.io/eglot/#Troubleshooting-Eglot

Here, for your specific example, I'm guessing the project is Emacs
itself (checked out in your CL packages branch).  I'm also guessing
you're using the `clangd` server and some of compile_commands.json.

Confirming this data and specifying versions etc should be enough for me
to reproduce the problem exactly as it appeared to you.  I'm also
guessing (or at least hoping), you don't use complicated third party
completion packages and everything can be experimented with via Emacs
-Q.

For reference, C-u M-. works fairly well here in my projects when used
with clangd 15.0.7 and the compile_commands.json file generated by the
CMake system.  I don't yet fully understand how clangd's sorting
heuristics and completion pattern matching work, but I seem to
eventually reach the name I want.

Jo=C3=A3o




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Aug 2023 06:44:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 02:44:32 2023
Received: from localhost ([127.0.0.1]:39070 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZQYZ-0003ke-PL
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 02:44:32 -0400
Received: from lists.gnu.org ([2001:470:142::17]:60708)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qZQYY-0003kS-AK
 for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 02:44:30 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1qZQYN-0003rl-RL
 for bug-gnu-emacs@HIDDEN; Fri, 25 Aug 2023 02:44:20 -0400
Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1qZQYL-00058Z-MQ
 for bug-gnu-emacs@HIDDEN; Fri, 25 Aug 2023 02:44:19 -0400
Received: by mail-ed1-x530.google.com with SMTP id
 4fb4d7f45d1cf-52683da3f5cso858289a12.3
 for <bug-gnu-emacs@HIDDEN>; Thu, 24 Aug 2023 23:44:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1692945856; x=1693550656;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=C5XLQO9+Ex4ecyLlcNq644Y9GCqbAGBy45fqO18EGFA=;
 b=jsHvMf7OSnluNfTNWqBx2Oltj7/fQLDy8qGig0Oex0chswkQBzhR+tZ0NVf4xQ5lF2
 snMJJfvfiwidFm1xFW9AuEuDJ/BWa0KDYc0bN62Xi+XJRJwWZV2VHftbtoZlPDJgOew0
 YoC+17GT0uDVCglCSxUTXNPwIOoc6BwSy1u8Atw/bjfr80XsO4w1O955KS0o2Grg02yg
 1cUT57vXoyotMYBtQ02+aY5gvoISQc9soECifXRjkt/JL3sY7ZWufgeQdryAgc+LC/vW
 si/ZSzXT6UZrhkvTYFWFvKwJZu2a7FCN/7eR/otg9XPlP6F0XFTXA2wtqGGl9swCAHxp
 BiCQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1692945856; x=1693550656;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=C5XLQO9+Ex4ecyLlcNq644Y9GCqbAGBy45fqO18EGFA=;
 b=jr1IlSKNCQVOVVKkGBqurpha2Ar+xDcRGwaIhp9762Mklo7TO+bIPKeP0Y+kmTXFqI
 e9Dz83NGoIbU3iJPuJyGeF8mZH66Q8lH4NwTJv0R/3iYI1Ej2Lf/PejFATBXbISR4745
 6HB2o6ClMicD357JyjxdFDHKDpgtWg5DbG9hsjelYvdtOWmHZ+YUAp/k39vs3VawbzjI
 bRa/TUoQqR7xuSqVt6UAiJS2hgNaPDtXqz7AT5XsqTqh3b6lPdvcWij1obcyFjTjL7VD
 iGQHRp4YJKrleso1Ihq2oJKrL7yoLEL07NhurAO5sEs1KToKJwPM0fwWx+7ZPQR6BmCs
 ix+Q==
X-Gm-Message-State: AOJu0YymSlK45PCsflFP/r5dDgWvgq2i/r4xXWaBYtWMQZNIEyTBRWxh
 5DLoOQkcVBoqJxI9dDAbbnN/1RxDYDCjQg==
X-Google-Smtp-Source: AGHT+IHiRWPcbgRPTp3o2CdP/eaRyB3P55NnXrTeqrU8L3o5qnqk59CDqPl5k5/g1TQHrb7MaWsmjQ==
X-Received: by 2002:aa7:c718:0:b0:52a:943:9abd with SMTP id
 i24-20020aa7c718000000b0052a09439abdmr11604346edq.30.1692945855625; 
 Thu, 24 Aug 2023 23:44:15 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36a34.dip0.t-ipconnect.de. [217.227.106.52])
 by smtp.gmail.com with ESMTPSA id
 b9-20020aa7d489000000b0052a401d8ef6sm656883edr.71.2023.08.24.23.44.15
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 24 Aug 2023 23:44:15 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; [FR Eglot] Completions over all workspace symbols
Date: Fri, 25 Aug 2023 08:44:14 +0200
Message-ID: <m24jknsjsx.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::530;
 envelope-from=gerd.moellmann@HIDDEN; helo=mail-ed1-x530.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

I'm in a C buffer with Eglot running, and I want to go to the definition
of something whose name I know, but point is not on an identifier naming
that thing.  For instance, I want to go the definition of Lisp_Package
(in an obsure branch having a struct Lisp_Package), while point is
somewhere.

C-u M-. offers some completions, but Lisp_Package is not among them.
Not using a completion and entering Lisp_Package works.

Feature request: Could the completions be made to contain all workspace
symbols. maybe as a n optional feature?  Lsp-mode has something doing
that, and I found it quite useful with Helm.

In GNU Emacs 30.0.50 (build 2, aarch64-apple-darwin22.6.0, NS
 appkit-2299.70 Version 13.5 (Build 22G74)) of 2023-08-24 built on
 Mini.fritz.box
Repository revision: 53c07bd04bf59f63e49af2c626714bf3fdd03ad6
Repository branch: scratch/pkg
Windowing system distributor 'Apple', version 10.3.2299
System Description:  macOS 13.5




Acknowledgement sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#65518; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 2 Sep 2023 16:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.