GNU bug report logs - #79809
Eglot does not yet parse LSP protocol parts FileSystemWatcher->GlobPattern->RelativePattern

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; Reported by: hkirsch@HIDDEN; dated Mon, 10 Nov 2025 14:40:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 79809) by debbugs.gnu.org; 3 Jan 2026 10:48:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 03 05:48:32 2026
Received: from localhost ([127.0.0.1]:33872 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vbzBP-0006Jn-Li
	for submit <at> debbugs.gnu.org; Sat, 03 Jan 2026 05:48:32 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:34438)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vbzBM-0006JB-VM
 for 79809 <at> debbugs.gnu.org; Sat, 03 Jan 2026 05:48:30 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vbzBH-0005HA-7O; Sat, 03 Jan 2026 05:48:23 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=Ixx1zZpxut9iHFjHa1wAdoySrtb7KQ58RM43Eua7mNg=; b=D98ehgFP7fj2DmKlm9JL
 +zrgDfG0hGjpwmdcR8Bq/a7OKKQ0NmD0cVTfodC52LNJuDl6S0f0BFJpHLYRFWdBPlFnkj7zjH8Rf
 cB40diE9wMln0kAV+cBJk4FYGaIzZDsRgTv2eMiiSwOcMtlqODnNf9Y2SGZnzl6alnhL11EFaUXzK
 MZVokHckR3pjPVo4XeNQHpEj82gcEjYspVAtd+tFdP718KsxdcMC4nsS5qcQfxFaa7h/5PG518TTd
 79FIduDCJNxIBLcxJE2g3ALSCOWot0UIsIhkPpcK3E5OA5Esm5ilh4VsYLPUqpn0N0yxA5orEMfTc
 lpTEVne6YGmC8g==;
Date: Sat, 03 Jan 2026 12:48:21 +0200
Message-Id: <86h5t3km4q.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: joaotavora@HIDDEN, Andreas Kurth <emacs@HIDDEN>
In-Reply-To: <87y0myua5x.fsf@HIDDEN> (message from Andreas Kurth on Fri, 19
 Dec 2025 09:51:22 +0100)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN>
 <CALDnm50B6rcDKbv+2-EPH9M0pzv8nY2fOOm+QpMLzh+5VsSXrA@HIDDEN>
 <87bjjx46c6.fsf@HIDDEN> <87cy4c59kr.fsf@HIDDEN>
 <87ecorhl89.fsf@HIDDEN> <87ike34rwm.fsf@HIDDEN>
 <87ecor49jn.fsf@HIDDEN> <87y0myua5x.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, dgutov@HIDDEN
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: -3.3 (---)

> Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
> From: Andreas Kurth <emacs@HIDDEN>
> Date: Fri, 19 Dec 2025 09:51:22 +0100
> 
> João Távora <joaotavora@HIDDEN> wrote:
> > So, I've downloaded jdtls to run an experiment closer to yours.
> > [..]
> > This was with the very latest Emacs, which has a slightly different
> > version than what I think you last tested.
> 
> Thanks for testing with jdtls!
> 
> I just rebuilt emacs from latest master, removed and regenerated all
> elc/eln files and did some more tests.
> 
> With my unchanged large parent dir "eclipse-workspace" the effect didn’t
> change: round about 10 seconds blocking.
> 
> When I gradually reduce the parent dir’s size – first by running make
> clean in all projects, then moving subdirs to a different parent
> directory one after the other – the blocking time decreases gradually.
> This looks more or less equivalent to the parent dir’s size.
> 
> Maybe the structure/complexity of the projects is also relevant and it
> cannot simply be simulated by some directories containing a lot of
> random files.
> 
> Anyway, for me it’s working fine with the help of
> eglot-watch-files-outside-project-root nil, and should I ever need that
> at some point, I know how to establish a directory structure which will
> be fast to scan.

João, should we now close this bug, or is there anything left to do
here?




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

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


Received: (at 79809) by debbugs.gnu.org; 21 Dec 2025 06:21:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 21 01:21:28 2025
Received: from localhost ([127.0.0.1]:60342 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vXCoq-00043v-7u
	for submit <at> debbugs.gnu.org; Sun, 21 Dec 2025 01:21:28 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:46314)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vXCon-00043V-RT
 for 79809 <at> debbugs.gnu.org; Sun, 21 Dec 2025 01:21:26 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vXCog-0007DA-Cu; Sun, 21 Dec 2025 01:21:18 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=KHrN5YkpBBuK1J3tLC2oz/bWHy8mt02xPQJhtD+twBA=; b=cvDH9H9QDHED
 HovzYCnKtEeF5/ehxvR4NGS3ck9MgI+GYoloCbLR1abf5mJLzdMt7F7hjJLMgBKU0WUMuJRmonean
 BmI+3eqf9hS2nHAxJmAQCo3I6EhZvwX+h1hqNiBcghkyeXBtKFmpncyRXBchffvCMp7li6engcHX1
 kiHtcGAeI5J5vTUL7230sbbCZXB/9zd4iOtbARAzickn9jypr96JfA6a62kMuEyrOwaCITJPFZoJG
 JN7Nq2uNKGLe5avcgV2FGtHopNl0vscOZ4bGDrjJVv3lSU/CMZZNV6dptf86ItNMNkFjyvTIFs8Yt
 FYRu8LK/B8LqhspJw4333g==;
Date: Sun, 21 Dec 2025 08:21:15 +0200
Message-Id: <86pl88xsmc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <dfa15484-1121-4b56-9e9a-40ab081a41d6@HIDDEN> (message from
 Dmitry Gutov on Sun, 21 Dec 2025 04:07:27 +0200)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN> <86qzss2txr.fsf@HIDDEN>
 <7de570e5-7b71-44bf-919c-d6c02b358e22@HIDDEN> <86pl8a296b.fsf@HIDDEN>
 <71daeae2-c1d4-4ae9-8e13-3f9f944380f7@HIDDEN> <86zf7dzf2t.fsf@HIDDEN>
 <dfa15484-1121-4b56-9e9a-40ab081a41d6@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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: -3.3 (---)

> Date: Sun, 21 Dec 2025 04:07:27 +0200
> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
> From: Dmitry Gutov <dgutov@HIDDEN>
> 
> On 20/12/2025 11:18, Eli Zaretskii wrote:
> >> Date: Sat, 20 Dec 2025 03:39:37 +0200
> >> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
> >> From: Dmitry Gutov <dgutov@HIDDEN>
> >>
> >> On 19/12/2025 10:00, Eli Zaretskii wrote:
> >>
> >>> I needed to fix a typo in the version threshold, but after that the
> >>> test still fails:
> >>>
> >>>     Test project-vc-supports-project-in-different-dir condition:
> >>>         (ert-test-failed
> >>>          ((should (equal '(".dir-locals.el" "foo") (mapcar ... ...))) :form
> >>> 	(equal (".dir-locals.el" "foo") ("foo")) :value nil :explanation
> >>> 	(proper-lists-of-different-length 2 1 (".dir-locals.el" "foo")
> >>> 					  ("foo") first-mismatch-at 0)))
> >>
> >> Thanks, maybe we should either skip the test, or alter the expectation
> >> if Git is too old.
> > 
> > Like not to expect .dir-locals to be in the list, perhaps?
> 
> Right.
> 
> >> What happens is an edge case. Our .gitignore has this at the beginning:
> >>
> >>     # Ignore all dot-files except for those under version control.
> >>     .*
> >>     ...
> >>     !.dir-locals.el
> >>
> >> Git does not apply ignores to files already under version control (while
> >> find doesn't know which those are), and more importantly, it honors
> >> "gitignore exclusions" - or negative ignores - lines that start with
> >> "!", which we do not support yet, in project--files-in-directory or the
> >> EXTRA-IGNORES argument to 'project-list-files'.
> > 
> > So maybe allow for .dir-locals to be in the list, but do not enforce
> > that, i.e. accept the list of "foo" alone be valid?
> I've pushed a more strict check, just because it seemed the shortest to 
> write (commit 66069812be5). If someone wants to rewrite it to accept 
> either of these more lax, please go ahead.
> 
> The condition of not allowing too many elements should still be there, 
> though - checking that not all/most files from the whole repository are 
> in the result. Only those from the specified dir.

Thanks, the test passes now.




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

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


Received: (at 79809) by debbugs.gnu.org; 21 Dec 2025 02:07:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 20 21:07:45 2025
Received: from localhost ([127.0.0.1]:57997 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vX8rI-00049Z-OF
	for submit <at> debbugs.gnu.org; Sat, 20 Dec 2025 21:07:45 -0500
Received: from forward500a.mail.yandex.net ([178.154.239.80]:41496)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vX8rE-00049F-5q
 for 79809 <at> debbugs.gnu.org; Sat, 20 Dec 2025 21:07:41 -0500
Received: from mail-nwsmtp-smtp-production-main-92.vla.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-92.vla.yp-c.yandex.net
 [IPv6:2a02:6b8:c1f:251b:0:640:cb7f:0])
 by forward500a.mail.yandex.net (Yandex) with ESMTPS id 0EE2CC0E6F;
 Sun, 21 Dec 2025 05:07:34 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-92.vla.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id V7O1LlcGIKo0-4aMMyka7; 
 Sun, 21 Dec 2025 05:07:33 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1766282853; bh=EJUIaR8bGuA44cadhz4uW0goYxmtFZm5csr38rTn888=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=q1nGAnwIXdsA9JtkeFScPSTgrZpVNml+HG9+V/Yxv3NF3PaRAgr+D/Mxwf4RwnOFY
 71GdasI1BM8r6l15hS8ib2g3fMoJdgAMSWSJNXFXZX2j2E785ySsbJD4l1EJOq5Sal
 /lPK6zZyl53LoDglQi8aHb441kQjopmO8nhCKeNE=
Authentication-Results: mail-nwsmtp-smtp-production-main-92.vla.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
 by mailfauth.phl.internal (Postfix) with ESMTP id 253B6F40068;
 Sat, 20 Dec 2025 21:07:31 -0500 (EST)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-05.internal (MEProxy); Sat, 20 Dec 2025 21:07:31 -0500
X-ME-Sender: <xms:YlZHadvewZ2RUH-SQabu1P1UNT7JvOGrV9TfNvCeW03MU-u3GXQJLg>
 <xme:YlZHaddl1xhqp7_HV0wP74OdHqhc9w7yLkYngRSb5LmRQHOrnj-QbyA0-q5FpA9qr
 EFPlu_liOJqM1HVjbOwVZeFcaO0x7F_mQEUIA774GvYZALL62ba8ng>
X-ME-Received: <xmr:YlZHaVyUU9uapih4CLaiu7gWAuSxjREkIabk2HStY47HV2b2XJx-_0ZjRWOjeesLAxLg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdehvdekvdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeeihfejueevteffffdvfeetffffkefhuedujeeiheehiedulefghefgffefudffuden
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuth
 hovhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudeffeefleelheehvddq
 vdelgeejjeejjeeiqdgughhuthhovheppeihrghnuggvgidrrhhusehfrghsthhmrghilh
 drtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht
 ohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgsh
 drghhnuhdrohhrghdprhgtphhtthhopehjohgrohhtrghvohhrrgesghhmrghilhdrtgho
 mhdprhgtphhtthhopegvmhgrtghssegrkhhurhhthhdruggv
X-ME-Proxy: <xmx:YlZHaTHh0N-1jChRfMX3fRo6JVbOD6RQHsXICKKR_psSGawRy2pBPw>
 <xmx:YlZHaZwdr7r7OS8f_TdUvD-bf7P61c6H_JzcOQrWh8QIEq4esjjkpQ>
 <xmx:YlZHaUsRkLM41ZN2IokinCBnHanqdGkAzOHLBtCPfOZwUR501MtILQ>
 <xmx:YlZHaW3S72ZSvU1-prZAQXTuEHD-EzbMB--S5SkRvD2H0sAmzlRorQ>
 <xmx:Y1ZHaf9s0-gUKixx5TcHCrwwqXVJxjBnktyQ1CfYJQ1WBpLsbKzV5aCY>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 20 Dec 2025 21:07:29 -0500 (EST)
Message-ID: <dfa15484-1121-4b56-9e9a-40ab081a41d6@HIDDEN>
Date: Sun, 21 Dec 2025 04:07:27 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN> <86qzss2txr.fsf@HIDDEN>
 <7de570e5-7b71-44bf-919c-d6c02b358e22@HIDDEN> <86pl8a296b.fsf@HIDDEN>
 <71daeae2-c1d4-4ae9-8e13-3f9f944380f7@HIDDEN> <86zf7dzf2t.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <86zf7dzf2t.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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 20/12/2025 11:18, Eli Zaretskii wrote:
>> Date: Sat, 20 Dec 2025 03:39:37 +0200
>> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
>> From: Dmitry Gutov <dgutov@HIDDEN>
>>
>> On 19/12/2025 10:00, Eli Zaretskii wrote:
>>
>>> I needed to fix a typo in the version threshold, but after that the
>>> test still fails:
>>>
>>>     Test project-vc-supports-project-in-different-dir condition:
>>>         (ert-test-failed
>>>          ((should (equal '(".dir-locals.el" "foo") (mapcar ... ...))) :form
>>> 	(equal (".dir-locals.el" "foo") ("foo")) :value nil :explanation
>>> 	(proper-lists-of-different-length 2 1 (".dir-locals.el" "foo")
>>> 					  ("foo") first-mismatch-at 0)))
>>
>> Thanks, maybe we should either skip the test, or alter the expectation
>> if Git is too old.
> 
> Like not to expect .dir-locals to be in the list, perhaps?

Right.

>> What happens is an edge case. Our .gitignore has this at the beginning:
>>
>>     # Ignore all dot-files except for those under version control.
>>     .*
>>     ...
>>     !.dir-locals.el
>>
>> Git does not apply ignores to files already under version control (while
>> find doesn't know which those are), and more importantly, it honors
>> "gitignore exclusions" - or negative ignores - lines that start with
>> "!", which we do not support yet, in project--files-in-directory or the
>> EXTRA-IGNORES argument to 'project-list-files'.
> 
> So maybe allow for .dir-locals to be in the list, but do not enforce
> that, i.e. accept the list of "foo" alone be valid?
I've pushed a more strict check, just because it seemed the shortest to 
write (commit 66069812be5). If someone wants to rewrite it to accept 
either of these more lax, please go ahead.

The condition of not allowing too many elements should still be there, 
though - checking that not all/most files from the whole repository are 
in the result. Only those from the specified dir.




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

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


Received: (at 79809) by debbugs.gnu.org; 20 Dec 2025 09:18:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 20 04:18:45 2025
Received: from localhost ([127.0.0.1]:46574 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWt6r-0002qY-10
	for submit <at> debbugs.gnu.org; Sat, 20 Dec 2025 04:18:45 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51502)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vWt6n-0002qI-OQ
 for 79809 <at> debbugs.gnu.org; Sat, 20 Dec 2025 04:18:42 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vWt6i-0005Ah-3p; Sat, 20 Dec 2025 04:18:36 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=s8U/6t1qLA67jw/gDTvH7RAdNB2o2hF9PAf6oS1j/Gg=; b=EJw6QD11jXSA
 z5nRlt280LSDkrVVxi0tkebBECW0Gb1Z6X7uWDYaNw0LppVWwlFB/jDXHoVsBOe7k3o49jSJu80NG
 Exhf9cybvXkXplgC5l3yC5osK+lUgNwIyapC/8OqSgeF2dBmGg328RqJLXtr+0virG9OgnWAxPOKr
 xiq4YkkxtN2BVQiOzPmEnR06E221zJrHKSrOn8xOygdVDqh6VIXRuVwSS5DXhEf88Avkpsb8rA3f5
 CRKYnc+YmbwRbpkPHrumV9RM+RRJI0r3uCUsxa/qJ2xQYrOSfgV0aBTe4nCWMXYTlbQXyIJolaK8V
 6jPjZAdD6tqjGFjPvFH57g==;
Date: Sat, 20 Dec 2025 11:18:34 +0200
Message-Id: <86zf7dzf2t.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <71daeae2-c1d4-4ae9-8e13-3f9f944380f7@HIDDEN> (message from
 Dmitry Gutov on Sat, 20 Dec 2025 03:39:37 +0200)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN> <86qzss2txr.fsf@HIDDEN>
 <7de570e5-7b71-44bf-919c-d6c02b358e22@HIDDEN> <86pl8a296b.fsf@HIDDEN>
 <71daeae2-c1d4-4ae9-8e13-3f9f944380f7@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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: -3.3 (---)

> Date: Sat, 20 Dec 2025 03:39:37 +0200
> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
> From: Dmitry Gutov <dgutov@HIDDEN>
> 
> On 19/12/2025 10:00, Eli Zaretskii wrote:
> 
> > I needed to fix a typo in the version threshold, but after that the
> > test still fails:
> > 
> >    Test project-vc-supports-project-in-different-dir condition:
> >        (ert-test-failed
> >         ((should (equal '(".dir-locals.el" "foo") (mapcar ... ...))) :form
> > 	(equal (".dir-locals.el" "foo") ("foo")) :value nil :explanation
> > 	(proper-lists-of-different-length 2 1 (".dir-locals.el" "foo")
> > 					  ("foo") first-mismatch-at 0)))
> 
> Thanks, maybe we should either skip the test, or alter the expectation 
> if Git is too old.

Like not to expect .dir-locals to be in the list, perhaps?

> What happens is an edge case. Our .gitignore has this at the beginning:
> 
>    # Ignore all dot-files except for those under version control.
>    .*
>    ...
>    !.dir-locals.el
> 
> Git does not apply ignores to files already under version control (while 
> find doesn't know which those are), and more importantly, it honors 
> "gitignore exclusions" - or negative ignores - lines that start with 
> "!", which we do not support yet, in project--files-in-directory or the 
> EXTRA-IGNORES argument to 'project-list-files'.

So maybe allow for .dir-locals to be in the list, but do not enforce
that, i.e. accept the list of "foo" alone be valid?




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

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


Received: (at 79809) by debbugs.gnu.org; 20 Dec 2025 01:39:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 19 20:39:54 2025
Received: from localhost ([127.0.0.1]:44125 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWlwn-00025Y-Mv
	for submit <at> debbugs.gnu.org; Fri, 19 Dec 2025 20:39:54 -0500
Received: from forward502d.mail.yandex.net
 ([2a02:6b8:c41:1300:1:45:d181:d502]:39490)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vWlwl-00025L-92
 for 79809 <at> debbugs.gnu.org; Fri, 19 Dec 2025 20:39:52 -0500
Received: from mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net
 [IPv6:2a02:6b8:c0c:9407:0:640:8fbc:0])
 by forward502d.mail.yandex.net (Yandex) with ESMTPS id C5BBAC111D;
 Sat, 20 Dec 2025 04:39:44 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id fdMZ71LGCKo0-LvG4Eb30; 
 Sat, 20 Dec 2025 04:39:44 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1766194784; bh=hom7zOCvncLlRjypnAuM7C1YU3a6+55YPZq3fYAO/gk=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=net/SIAc7TqfmlRvsGF+eKFLyal556EXB+DMzUWKNfANWMh0Up8blsLTiEO5oMu84
 YGVaEuGLk1O43LepyQeTPoX5/bNNn+byH9bLurM8mGdzcOZX8rz20Cj7m3O/k1ZKmq
 J1zBAbuz1jb9KNPPL6fWKoyOZ5Gfmkr9QM534aYU=
Authentication-Results: mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
 by mailfauth.phl.internal (Postfix) with ESMTP id BD992F40073;
 Fri, 19 Dec 2025 20:39:41 -0500 (EST)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-03.internal (MEProxy); Fri, 19 Dec 2025 20:39:41 -0500
X-ME-Sender: <xms:Xf5FaRwilwN9LLRo3tMSeRHVUyuvj3dAiIelT8O_jMV1YBWtcbCtRw>
 <xme:Xf5FaYRu_WwWjwxpYUOx3A1yg9amJp8m32N2JJZmIneQpccFgD0WZWLnJd1wsWPMZ
 eitTe0YWGbGV0tuIeLuzBbz8H2E9l5d_wJxpzIkfOchJeQQImNB30cV>
X-ME-Received: <xmr:Xf5FaQW0zODlewtRsS06QjPmCPKZ_FKbDVHKN6CeGIgdbn6VfOAqbSya0LQAt6JQ5RRX>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegleekkecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeeihfejueevteffffdvfeetffffkefhuedujeeiheehiedulefghefgffefudffuden
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuth
 hovhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudeffeefleelheehvddq
 vdelgeejjeejjeeiqdgughhuthhovheppeihrghnuggvgidrrhhusehfrghsthhmrghilh
 drtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht
 ohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgsh
 drghhnuhdrohhrghdprhgtphhtthhopehjohgrohhtrghvohhrrgesghhmrghilhdrtgho
 mhdprhgtphhtthhopegvmhgrtghssegrkhhurhhthhdruggv
X-ME-Proxy: <xmx:Xf5FaSYyocTwr4IXV4fjCV5ggPO4rMw3ifTDCJGwr4HM-MuRD30AhA>
 <xmx:Xf5Fae2z-WcijZOCr4rst4X3Tq-Ttam6Mv43N49Jgo7cSqDtDRrY7g>
 <xmx:Xf5FacjXClBmIhc7dudZnoHbygySRI5EJpAAgLpkV0CMQNy3a1EDHA>
 <xmx:Xf5FaaajxraMXNid_MTeN7nAI0GVq7MawZa8Wl2zctNpfayBVqr0bg>
 <xmx:Xf5FaUS4zzWHuYpAtpTkAxWCDSFyDqncuwjbiMgL1OySjDJ7CMc_cJVO>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 19 Dec 2025 20:39:40 -0500 (EST)
Message-ID: <71daeae2-c1d4-4ae9-8e13-3f9f944380f7@HIDDEN>
Date: Sat, 20 Dec 2025 03:39:37 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN> <86qzss2txr.fsf@HIDDEN>
 <7de570e5-7b71-44bf-919c-d6c02b358e22@HIDDEN> <86pl8a296b.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <86pl8a296b.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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.7 (-)

On 19/12/2025 10:00, Eli Zaretskii wrote:

>> We do have a fallback to 'find' available, and used it also in this
>> case. I'll re-add it now, to work with our vc-call-backend using impl.
>>
>> Commit 500f1478f79.
>>
>> It's significantly slower than using Git, but still not as much as the
>> Lisp snippet above.
> 
> Git is slow on Windows anyway.

Hopefully not by 10x, though.

> I needed to fix a typo in the version threshold, but after that the
> test still fails:
> 
>    Test project-vc-supports-project-in-different-dir condition:
>        (ert-test-failed
>         ((should (equal '(".dir-locals.el" "foo") (mapcar ... ...))) :form
> 	(equal (".dir-locals.el" "foo") ("foo")) :value nil :explanation
> 	(proper-lists-of-different-length 2 1 (".dir-locals.el" "foo")
> 					  ("foo") first-mismatch-at 0)))

Thanks, maybe we should either skip the test, or alter the expectation 
if Git is too old.

> Can you tell me which Find command is run in this case, so I could try
> that from the shell prompt and see what happens there?

What happens is an edge case. Our .gitignore has this at the beginning:

   # Ignore all dot-files except for those under version control.
   .*
   ...
   !.dir-locals.el

Git does not apply ignores to files already under version control (while 
find doesn't know which those are), and more importantly, it honors 
"gitignore exclusions" - or negative ignores - lines that start with 
"!", which we do not support yet, in project--files-in-directory or the 
EXTRA-IGNORES argument to 'project-list-files'.

(The find command that's invoked is pretty long, but it starts with 
"find -H . \\( -path \\*/.\\* -o").

A good way to fix this will be to add said support, but it's non-trivial 
to add on top of existing 'find' command line construction. Maybe it'll 
be easier to do if we just resigned to invoking the external process twice.




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

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


Received: (at 79809) by debbugs.gnu.org; 19 Dec 2025 08:51:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 19 03:51:36 2025
Received: from localhost ([127.0.0.1]:35239 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWWD1-0004UD-Pp
	for submit <at> debbugs.gnu.org; Fri, 19 Dec 2025 03:51:36 -0500
Received: from mout.kundenserver.de ([217.72.192.73]:58475)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <emacs@HIDDEN>) id 1vWWCz-0004Tg-Ll
 for 79809 <at> debbugs.gnu.org; Fri, 19 Dec 2025 03:51:34 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akurth.de;
 s=s1-ionos; t=1766134285; x=1766739085; i=emacs@HIDDEN;
 bh=skdm6jQ7wgJZp5u+AodhH97OAvt213kuHZx9IzhXS5Q=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=kNY6iasnh78i6a6A2N0nDWC1SpOBkgIB+iZ41dSbHb7rF81kYS8B8cw0RsoFK2Lw
 60Wh1gYhs/fcSvQieoc+TNXqhh60Drm6u5vv1oxGXGcENh0i7qveFisL3+cqDPaP2
 VcexdEXQie8dl4ZMm3y7Egh/5b3YjSsWy134VxVA2RsVcLEnTk0OQq09brWpwMkQt
 Tej6YanbrhXwGCDPSTY4YZ+Hc/Ea3qoCyeXwglfzC0ZMhyiDZlKewWyM1ersk9S22
 sCImiNErJP9eXDNdEhnfyAjYalyuGdk5WQOvutusEQBgPYeb1p5mo5q4K55nNVmuh
 fa+Mz1cO/qKL+k/jcg==
X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6
Received: from ravel ([82.165.232.202]) by mrelayeu.kundenserver.de (mreue107
 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MPXQi-1vJv2c3C54-00OR70; Fri, 19
 Dec 2025 09:51:24 +0100
From: Andreas Kurth <emacs@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <87ecor49jn.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN>
 <CALDnm50B6rcDKbv+2-EPH9M0pzv8nY2fOOm+QpMLzh+5VsSXrA@HIDDEN>
 <87bjjx46c6.fsf@HIDDEN> <87cy4c59kr.fsf@HIDDEN>
 <87ecorhl89.fsf@HIDDEN> <87ike34rwm.fsf@HIDDEN>
 <87ecor49jn.fsf@HIDDEN>
User-Agent: mu4e 1.12.13; emacs 31.0.50
OpenPGP: id=42E6E88E86E24E19; url=https://akurth.de/gpg/ak/pubkey.asc
Date: Fri, 19 Dec 2025 09:51:22 +0100
Message-ID: <87y0myua5x.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:YXfKu+6/xPXcAM++oE9sPe+SD2mhZqiebzzZ3uRyQuRlMBo6HcE
 PaInaOHnuHFR+hnojTli1OAH9w+JJ4K5MZUCFmH3+u2eW6m3Y2K/oCvEHmi6WKkU2N6kBel
 Oms5YE3tRLoImSxr15Dky3yPxsEk97xItZVZ7PcSc39YKaQznq5hlh+aHR4AW975RBIEqCY
 nPAkAOvi6pTeqDw1Um/tw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:CYe+b/x1iGI=;axjzQ3Jomdm9a+n/S0Gojqzc7vs
 7lU30sIrdoBzf2kVqmKpCJ22yEX8MAJpO8pecW/XbamujX5PnCloYC9ZYQssyfxX3rL8fvmpq
 GuqSlLLNqB8tcOIA3ZdPnrygwNT7FL48+LE0NLG7boYm0tJStntgtquyhNHzQ1L6ZXkRCwuBa
 33NlAzCrvlzVtO+sReKMvzXPn27R7bySM3RWNoiarTTL+ohlCIRlrv2WrXQ4xEXFd2brNuQoJ
 Xk3oY46uVJHxeXsFSnb7kbLzmvgB1FUIOBpqOG8G8oyE8OETqhP/zt9EzROG/IQZ1VSUqzasn
 UGPtH3+MSILpqmxejaZfIKzT5fK1wv1Y91NzNju1dzQpT/5tOcDXbTnchc8SEldlUlMRf5bRL
 DfSjg3g2ElkME8BDLCXA/ApubfnQQgoHbCDfPB6k16C+Cw884l7P9UfuhF9trNi2ZIyDGfHgx
 XQWw0lxQofS6n7h8Gap4x7cktDvIb6LwtGPaB0AxtWSYpg+/d+6BcHHzOgR0sqddj9YPNDwTq
 RJbjPP2Sl4TVNuSPW7yB6uSUobScBhe/QzQpi5uPC76nta4Z9eQ8yK7XgPi0rcir/lxXmKfqG
 TyQG1LIFjBrIXmT7N2s90nH6Yq178cvnQSE6Ph/8Qbjg6CeKeQIAKkLlSoqNUNww7W3vhrzTd
 gxhktquGe4fBNDMxMPJ5JDL0kXxBZUHnfSrkJFnpTWHbq0FK8a94vI7Wi+scTJWzSp8YlZe2f
 giQ2LpnuSsZiuGke3XsIILWAbbnSoiWcXo12vlSdJoqMFAe9rt6f+luZPnuRXyQHbSBjUXumx
 ixtMK4MNP3i6c7nHk1Hg5FyI2hX1dW33i8oNtYrCX73LwHIu4UBxLS6zM6L3FImC8uYPIgNRt
 mhftIwac9CtZhF7TI76fV7v6q0K7b3nt8xm1Vy5LhKspq7paGKGj83nsLE50tl/y7xq1RtGOS
 1zcz2DjyE++IGzmFdLm+L06FZqiozbGpIt2XLHuRK7tcW+gy1dsJZdkPRRslBMUeG5ktbchky
 usLxUtjUQvMDrMzf+CaBO27zu0hjuJfbCLKxO7tISs/h/0pmu2OCrWlsP3OUAlxG+B5o2OK12
 x5bOXxSZwfNvCuRnpwOyUcHcVEpIQjzgNrpyIOnLy6g0MWV9rCwRH/xZwtmG7g4hhrlc5b+mo
 L8CAsRuTRbMuWkQS5WuVjxlztTyDJUcHNrUC9pX2V4INCMhFgOnSH4FFP1/lnLeVDxdNK2bdc
 Ta9mrONz1A6FXTGKndi1P3ZYgtlmvu/I4v8HsZQklYQ0C1Ba5n3fmImKViIHdaXsUC1/YZ0h8
 cRBVH8cKgIZ1A0lIx2JyGtoM6HQ6hvH/GO4d2QInoflKzZo8Q+Sl4pqdXr4J/cQGpi6Ag2b0W
 nCCcay8jvwTiwxA+ph0l/gs/4wSazer4yzUqPFw/fClWG7KDElZdUNJcqpxe18BRG9UFNLIIm
 RA56C07F58zmEboC4tJvfGMO5x7greSfRkMbfzZ8v68WZGsJO8PIDJqQxLJg+F+pGBlSMepTC
 QTWGIc/GnlIaQiR5MPPa+cDkkt03MwMCFu29yZKSlurHNJgpgMYsvPh76f7IgGYQRvsUL25eJ
 14qiOwBbuMHVfx+an5iTcIDvGtVblnx6c6Rh5avw4fUPwmlM9OivGxoMtDBYovbco8je854QV
 C/C5/TStB+y6KDUdY2mbXbFCrwxocShjFD0OnZpUGJa6Gh+VZRd0ZxAmfJh0OztqsnrWsiXJ6
 HwXcozITpyP6VDYv8OwabIubQPDBwnI35li44OP9ES+XO5cnzaXtw0qh1HVqdByWKc0l1tjd7
 Ky9l
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
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> wrote:
> So, I've downloaded jdtls to run an experiment closer to yours.
> [..]
> This was with the very latest Emacs, which has a slightly different
> version than what I think you last tested.

Thanks for testing with jdtls!

I just rebuilt emacs from latest master, removed and regenerated all
elc/eln files and did some more tests.

With my unchanged large parent dir "eclipse-workspace" the effect didn=E2=
=80=99t
change: round about 10 seconds blocking.

When I gradually reduce the parent dir=E2=80=99s size =E2=80=93 first by ru=
nning make
clean in all projects, then moving subdirs to a different parent
directory one after the other =E2=80=93 the blocking time decreases gradual=
ly.
This looks more or less equivalent to the parent dir=E2=80=99s size.

Maybe the structure/complexity of the projects is also relevant and it
cannot simply be simulated by some directories containing a lot of
random files.

Anyway, for me it=E2=80=99s working fine with the help of
eglot-watch-files-outside-project-root nil, and should I ever need that
at some point, I know how to establish a directory structure which will
be fast to scan.

Cheers, Andreas.




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

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


Received: (at 79809) by debbugs.gnu.org; 19 Dec 2025 08:00:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 19 03:00:32 2025
Received: from localhost ([127.0.0.1]:34689 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWVPc-00008o-HM
	for submit <at> debbugs.gnu.org; Fri, 19 Dec 2025 03:00:32 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:37014)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vWVPa-00008V-VQ
 for 79809 <at> debbugs.gnu.org; Fri, 19 Dec 2025 03:00:31 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vWVPV-0001ds-40; Fri, 19 Dec 2025 03:00:25 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=XFYGm1EoR/s//I3UJm7BAaw8+2P+LJ6bbz2CSf4rP58=; b=sTVOZknA44k3
 1xYm/4NmikUobcWzbHmSj58M+w/4tZkbRYMO4GLYrA8Q9N20TjGfyH6LxqgSqHA27TqEktioEuKky
 TG5eBrvaHUy1gcc3zlNxmX7RN/KO5jifqxJzEI0Vrppm46biBeZjErcxNG/7bEqp0bLAINf0cWS4+
 +NyTF+gxkjE2NWmayQgsWZPBJU3mY8qFk32EsgUUyCflMMldf7C0zdH6eNlDlzDHMHZ0QE2AyfTPr
 uSkVEjHCIrqD2dzkg8L0J19x+DjryUuOA8pS8s76zqKc9syfw05iFirMCreO/s61c7ZjfePf9watW
 Kus02g6lT0gbCq0G5tmbBw==;
Date: Fri, 19 Dec 2025 10:00:12 +0200
Message-Id: <86pl8a296b.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <7de570e5-7b71-44bf-919c-d6c02b358e22@HIDDEN> (message from
 Dmitry Gutov on Fri, 19 Dec 2025 02:48:41 +0200)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN> <86qzss2txr.fsf@HIDDEN>
 <7de570e5-7b71-44bf-919c-d6c02b358e22@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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: -3.3 (---)

> Date: Fri, 19 Dec 2025 02:48:41 +0200
> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
> From: Dmitry Gutov <dgutov@HIDDEN>
> 
> On 18/12/2025 08:19, Eli Zaretskii wrote:
> 
> > Is there no way of doing this with some fallback Git commands, if this
> > one fails?  E.g., can't we filter the files ourselves?  But if push
> > comes to shove, maybe use Find or even find-lisp.el functions to get
> > the list of files?  Anything is better than flatly failing and forcing
> > users to upgrade.
> Filtering in Lisp is possible, but something naive like
> 
>    (let ((rere (mapcar #'dired-glob-regexp extra-ignores)))
>      (setq files (cl-delete-if (lambda (s) (cl-find-if
>                                       (lambda (re) (string-match-p re s))
>                                          rere))
>                                  files)))
> 
> creates too high of an overhead in my testing, even when extra-ignores 
> has 0 elements.
> 
> We do have a fallback to 'find' available, and used it also in this 
> case. I'll re-add it now, to work with our vc-call-backend using impl.
> 
> Commit 500f1478f79.
> 
> It's significantly slower than using Git, but still not as much as the 
> Lisp snippet above.

Git is slow on Windows anyway.

I needed to fix a typo in the version threshold, but after that the
test still fails:

  Test project-vc-supports-project-in-different-dir condition:
      (ert-test-failed
       ((should (equal '(".dir-locals.el" "foo") (mapcar ... ...))) :form
	(equal (".dir-locals.el" "foo") ("foo")) :value nil :explanation
	(proper-lists-of-different-length 2 1 (".dir-locals.el" "foo")
					  ("foo") first-mismatch-at 0)))

Can you tell me which Find command is run in this case, so I could try
that from the shell prompt and see what happens there?




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

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


Received: (at 79809) by debbugs.gnu.org; 19 Dec 2025 00:48:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 19:48:56 2025
Received: from localhost ([127.0.0.1]:59502 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWOfw-0005og-CJ
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 19:48:56 -0500
Received: from forward500d.mail.yandex.net
 ([2a02:6b8:c41:1300:1:45:d181:d500]:60012)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vWOfu-0005oL-Ix
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 19:48:55 -0500
Received: from mail-nwsmtp-smtp-production-main-63.klg.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-63.klg.yp-c.yandex.net
 [IPv6:2a02:6b8:c42:4f41:0:640:844:0])
 by forward500d.mail.yandex.net (Yandex) with ESMTPS id C784B8145E;
 Fri, 19 Dec 2025 03:48:47 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-63.klg.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id jmKQRQEG2Cg0-SMjIx0Me; 
 Fri, 19 Dec 2025 03:48:47 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1766105327; bh=SbFWkr3C1pI9xQpgxvtILayS0364rf45Lru5XB4QPXs=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=jeaXAR+M0HnYIz6tXhPjwpwBtybOnz79KCJNgj8cOHfAZTITweUdey89HxMf0Gl7U
 vpK72zc8RyapLIEzauFmfNlHjn+lRl8WmDtFyByQskLkwz/o/LH62ggND6C1MFvJph
 BCqo/tcBJCDV3HZeJbIFAkn6Km3X2hMAvtynKFWY=
Authentication-Results: mail-nwsmtp-smtp-production-main-63.klg.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51])
 by mailfauth.phl.internal (Postfix) with ESMTP id 066EFF4007B;
 Thu, 18 Dec 2025 19:48:44 -0500 (EST)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-11.internal (MEProxy); Thu, 18 Dec 2025 19:48:45 -0500
X-ME-Sender: <xms:7KBEad_LiBM54Dd6qdYd_8LrKQy4nrnQnRaOegZUEKfLFsiCwLddPw>
 <xme:7KBEaYvoK-_uw6jj80gDWLeo39ESqxB3xAtDuh-dSbXFQ8yFtDSaIDm4rxZi0rIdA
 HMYAZCGEOhDX-oQbSMJCGyXI-DDBxj3rvp0TAihSTzkwu11aWN0bg>
X-ME-Received: <xmr:7KBEaQDzrKBYzBslyPSR1IUX_Em06kUztnJ6vBn_JVkZbFyc_Z3Qm9zgqtAnT9uOFb6H>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegieeltdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeeihfejueevteffffdvfeetffffkefhuedujeeiheehiedulefghefgffefudffuden
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuth
 hovhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudeffeefleelheehvddq
 vdelgeejjeejjeeiqdgughhuthhovheppeihrghnuggvgidrrhhusehfrghsthhmrghilh
 drtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht
 ohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgsh
 drghhnuhdrohhrghdprhgtphhtthhopehjohgrohhtrghvohhrrgesghhmrghilhdrtgho
 mhdprhgtphhtthhopegvmhgrtghssegrkhhurhhthhdruggv
X-ME-Proxy: <xmx:7KBEaQWFFalcB7QUEQAZ_GFBuonnBRjj1D3pZV8AmeqM5gtzWs3wPA>
 <xmx:7KBEaeBWifeaWCi1g_pZXjoVGWyvwexjBeIRzEm0Me4VILymLedMzA>
 <xmx:7KBEaT-LnW7dI6_LmOgDEwFyV205uMnrGvyuygs8GOAS3lIC1Nb2pA>
 <xmx:7KBEaVH3LSwo23Z9uQmpq6z6fV6TdUOoJo152-bSW1qy0PGjuPM4yw>
 <xmx:7KBEaRP6nXMCjso8Q9Bsv1IhyzjuDWMbWXluguX0P9G87y6SnB6TdxfM>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 18 Dec 2025 19:48:43 -0500 (EST)
Message-ID: <7de570e5-7b71-44bf-919c-d6c02b358e22@HIDDEN>
Date: Fri, 19 Dec 2025 02:48:41 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN> <86qzss2txr.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <86qzss2txr.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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.7 (-)

On 18/12/2025 08:19, Eli Zaretskii wrote:

>> The latest version of Git that I've managed to see in the wild is 2.17.1
>> on fencepost, which corresponds to Ubuntu 18.04.
>>
>> Trisquel stable carries 2.25.1.
>>
>> Would it make sense for you to upgrade?
> 
> Not easily and not soon, not on my Windows system.

Okay then.

>> I'm tempted to issue a user-error for any version older than 2.17.1,
>> provided the user has used the corresponding option that would take
>> advantage of the pathspec excludes.
> 
> Is there no way of doing this with some fallback Git commands, if this
> one fails?  E.g., can't we filter the files ourselves?  But if push
> comes to shove, maybe use Find or even find-lisp.el functions to get
> the list of files?  Anything is better than flatly failing and forcing
> users to upgrade.
Filtering in Lisp is possible, but something naive like

   (let ((rere (mapcar #'dired-glob-regexp extra-ignores)))
     (setq files (cl-delete-if (lambda (s) (cl-find-if
                                      (lambda (re) (string-match-p re s))
                                         rere))
                                 files)))

creates too high of an overhead in my testing, even when extra-ignores 
has 0 elements.

We do have a fallback to 'find' available, and used it also in this 
case. I'll re-add it now, to work with our vc-call-backend using impl.

Commit 500f1478f79.

It's significantly slower than using Git, but still not as much as the 
Lisp snippet above.




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

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


Received: (at 79809) by debbugs.gnu.org; 19 Dec 2025 00:10:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 19:10:48 2025
Received: from localhost ([127.0.0.1]:59270 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWO52-0003kJ-8L
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 19:10:48 -0500
Received: from forward500b.mail.yandex.net ([178.154.239.144]:44968)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vWO4z-0003k0-Rp
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 19:10:46 -0500
Received: from mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net
 [IPv6:2a02:6b8:c1e:489c:0:640:8d6b:0])
 by forward500b.mail.yandex.net (Yandex) with ESMTPS id 246FAC0FEF;
 Fri, 19 Dec 2025 03:10:39 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id aAKwwFEGseA0-f2xxiJkI; 
 Fri, 19 Dec 2025 03:10:38 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1766103038; bh=UzSknweE8BxQzvahgYPxhtpL4BOBGRC6WY4Svll+seA=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=C9Yr1dOBmdmvvxuzkXuNb3PrijgbIOGpBk4ync1U23+D3I6C7VTiMlSK7WBhk6X16
 eXzKQ8PxkKx56PPD0Whr/V6/ZErOTh9j2D5O2sTa8P3fU/xdE7Hyp9+rvJ8kO0mKRZ
 tMTxVazbic4MsoUz4kmpmCY/9djvpGBGOyX/4WCg=
Authentication-Results: mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
 by mailfauth.phl.internal (Postfix) with ESMTP id E623AF40068;
 Thu, 18 Dec 2025 19:10:35 -0500 (EST)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-05.internal (MEProxy); Thu, 18 Dec 2025 19:10:35 -0500
X-ME-Sender: <xms:-5dEaY5CEPEhHWbm1CTzWyOtj-vn5nyXI7dE21wcIFcqFhkme8pLTg>
 <xme:-5dEaQ6rziGkrReXmgXdy8Gxm-SIRxJG38kaKCIM3UN0N7MrUveE4sNmxzYqboQxt
 lppOtH-81x-74qVnMV-bBY6lDIIkQUOsCl_UTmRXZrhzQhj6Ejrw4M>
X-ME-Received: <xmr:-5dEacd2f1XQy8L0imIIffc9bq4B0u_Wop3_8QPn56z34uXlq9CwSaZbE8U2-7xDnV3t>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegieekvdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeeihfejueevteffffdvfeetffffkefhuedujeeiheehiedulefghefgffefudffuden
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuth
 hovhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudeffeefleelheehvddq
 vdelgeejjeejjeeiqdgughhuthhovheppeihrghnuggvgidrrhhusehfrghsthhmrghilh
 drtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht
 ohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgsh
 drghhnuhdrohhrghdprhgtphhtthhopehjohgrohhtrghvohhrrgesghhmrghilhdrtgho
 mhdprhgtphhtthhopegvmhgrtghssegrkhhurhhthhdruggv
X-ME-Proxy: <xmx:-5dEacBqkNYUZdYxU7_MbQPCHUSsL2XwDLiVW8CmOO63aUWABvJw_w>
 <xmx:-5dEaX8pp7EUxMy6wjLPO1fhUcvdgZF3DYGk9LudEq6Z4H52fnBN8g>
 <xmx:-5dEafISH4WIY9sH3kvt6lSaR2LZsi6ZyLWx1afdwfETCvtozODKdg>
 <xmx:-5dEaYiQQ3RkJIjrC1QU8CurAIOKh7M1AeHJgiyD57tnh6bqavUsqg>
 <xmx:-5dEaX6gK300wN8G4soAZCSXfiJh5nLziopJrzmLoN2AG-fjP8pLw8kS>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 18 Dec 2025 19:10:34 -0500 (EST)
Message-ID: <779d781e-832f-426e-bd60-7c1e1c36aaf3@HIDDEN>
Date: Fri, 19 Dec 2025 02:10:31 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN>
 <19b76fae-5bf8-4e20-bcf5-739b68fd8d13@HIDDEN> <86ldj02suq.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <86ldj02suq.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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 18/12/2025 08:42, Eli Zaretskii wrote:

>    Test project-vc-supports-project-in-different-dir condition:
>        (ert-test-failed
>         ((should (equal '(".dir-locals.el" "foo") (mapcar ... ...))) :form
> 	(equal (".dir-locals.el" "foo") (".dir-locals.el" "etc" "foo"))
> 	:value nil :explanation
> 	(proper-lists-of-different-length 2 3 (".dir-locals.el" "foo")
> 					  (".dir-locals.el" "etc" "foo")
> 					  first-mismatch-at 1)))
> 
> Looks like "etc" is not filtered as we expect?  If I examine the
> output of the command
> 
>     git --no-pager ls-files -z -c --exclude-standard -o -- . ':(exclude,glob,top)
> **/etc'
> 
> (which is what I understand your change did) I see etc/* files in its
> output.  And this is no longer specific to my old version of Git,
> because I see the same on a GNU/Linux system with Git 2.34.1.

The test is for a specific 'etc' inside the dir 
test/.../project-resources, but you're quite correct that it fails. It 
seems the change was the wrong direction after all, I'll revert.

(Even removing the ".", the negative pathspec doesn't filter out the 
etc/ dir, but changing the pathspec to :(exclude,glob,top)**/etc/** 
does; it might be counter-intuitive, but that's a separate issue.)




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

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


Received: (at 79809) by debbugs.gnu.org; 19 Dec 2025 00:07:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 19:07:47 2025
Received: from localhost ([127.0.0.1]:59245 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWO27-0003Wm-7V
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 19:07:47 -0500
Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:48441)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vWO24-0003WW-BQ
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 19:07:45 -0500
Received: by mail-wm1-x329.google.com with SMTP id
 5b1f17b1804b1-47bdbc90dcaso8389425e9.1
 for <79809 <at> debbugs.gnu.org>; Thu, 18 Dec 2025 16:07:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1766102858; x=1766707658; darn=debbugs.gnu.org;
 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=UtEr3slQACaGMX/qe+GeLhaEE2ZnPE56xGIpfokOtoc=;
 b=O/hmSf5jl7kOF+SVT2b50TpqkdTbvE1PHSx9U/Wad6+d94eeVsA34KppxqGWzOcjyH
 XiCRwGV8Py5uSthtcbAxAF469u3bteeZEf4gqTAhF9XDpe9H9ZbrltK+tWAiSFo1CE4T
 gqf9ez6Q3QXgZzF1/z0w0Ic0/4G7zZsOMAaqyjX7GK86QBaa2HMMI9VnJJLuXeW6CYcy
 fs3646u0AHyrjVjPTorZYZ8FCnReGfJz720ufq3m+LDA8mVXgJX3mOsKP9xZWaL+ThiT
 jK2N6xfM6/3UVyoy30HbgW9tCdi2W9JWVelj+VdJCDXpbfK3kqLvc49Nc+cGArLouZ/k
 J6hw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1766102858; x=1766707658;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=UtEr3slQACaGMX/qe+GeLhaEE2ZnPE56xGIpfokOtoc=;
 b=ufYKMtiwgh1g0E2r+LU9HlnanwmRU1ezturSaI8UlJFoEVx7K5j05dqRF8MUbT/T0r
 uCVndOL7DyZJp/YwNmNn3TYUI0sTpnwTQ12KHOzvQP5p9iYJkP3oY4psahI7b+dc7AuM
 SLG9g5VBoskdhSbAKT+eweHqBUIv02BRQvKuRmOa2Ra1ByZx3x5/WWvgZWYfIq/GgRpt
 ZBG+xDbkeogfhPjSoTygKDl4qIrIsuU5Y+EVI9mtH8i30/f2j6+TeIJh1zl7ys6SXEtA
 plD/LG+8M1NU2KS1bfUdRdmZ/fTMG4yce9eImwW+qOAbyBtL0O+iKGjj8bsTXHbj6uL6
 npuw==
X-Forwarded-Encrypted: i=1;
 AJvYcCVb31LN+mHSPoeKBEB3L9XIpmH1XdULTiROBfjLc05TiqSWIFyAzQzAIxlKFWRXRuo/5dhoiw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzP1NMn0DDoyyUP6l4Yx/8+EILszRwCymf1yEd/C0GqMEFFWQuV
 ivuOUqgMRDgIvpxfU3dFmjslxCgF0dR8wnalWQHiuEVX6TXi1fu7ng6odbCgEg==
X-Gm-Gg: AY/fxX7bICvttW/d3VRExwN5nffYT7aOQ2UdarqPvJwK/7V9Q41LX1ejYdkwci/bBgd
 zjBIZWTYFTlo5wzvhjyRA7W4S0weJT0BVg9uRVetP2oPZuX9llKkFRJXOiVnlnPrO6ZpVw7WbBI
 2mAyHbZhaiNO6WUIcFVkH4OCJn94sMgyOPCkufmmtgwrKJ9TYXtp83/b7nGcmtsQH3AaIcNWHqR
 glFGbOyzLqLonZyzuI63RgbAHcU+jB89AWYRl6XCBIP52DLfysTAJEIL4wm0SChH2g3VDfgJv3R
 B7g5k4VAmOLK1mYtJJ0G7VrQHrp5geaVQGHeFxOlQM+5rePg8QrmCsw8DA69CrCElfN/EV3R1Gf
 qmS1oS5gMTVzkra8upUzEJTGEfCAEDgdamF9Yqw9ELrXrUn3Wouzv4ePkZBDdooydzZGAfIfJ18
 s1O2uSiNY8FxYzMCgU+fTCabhS7Q==
X-Google-Smtp-Source: AGHT+IHR/MmATSwpwxIyfEVBYcmiJOe5xII3sfh26QAxvkZpgZL/gd3/Ky/qXVrWl+snFtzg/nKfvQ==
X-Received: by 2002:a05:600c:3b8d:b0:477:7725:c16a with SMTP id
 5b1f17b1804b1-47d1953da58mr9653885e9.10.1766102857572; 
 Thu, 18 Dec 2025 16:07:37 -0800 (PST)
Received: from krug (87-196-72-85.net.novis.pt. [87.196.72.85])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-47be2723b2bsm67244345e9.3.2025.12.18.16.07.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 18 Dec 2025 16:07:37 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Andreas Kurth <emacs@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <87ike34rwm.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN>
 <CALDnm50B6rcDKbv+2-EPH9M0pzv8nY2fOOm+QpMLzh+5VsSXrA@HIDDEN>
 <87bjjx46c6.fsf@HIDDEN> <87cy4c59kr.fsf@HIDDEN>
 <87ecorhl89.fsf@HIDDEN> <87ike34rwm.fsf@HIDDEN>
Date: Fri, 19 Dec 2025 00:09:16 +0000
Message-ID: <87ecor49jn.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: 3.6 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  João Távora writes: > Andreas Kurth writes: > And anyway
    eglot--watch-globs as I demonstrated was fairly fast in my > tests to place
    watches a similarly sized hierarchy. 
 
 Content analysis details:   (3.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [87.196.72.85 listed in zen.spamhaus.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (joaotavora[at]gmail.com)
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:329 listed in]
                             [list.dnswl.org]
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
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.6 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  João Távora writes: > Andreas Kurth writes: > And anyway
    eglot--watch-globs as I demonstrated was fairly fast in my > tests to place
    watches a similarly sized hierarchy. 
 
 Content analysis details:   (2.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [87.196.72.85 listed in zen.spamhaus.org]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:329 listed in]
                             [list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (joaotavora[at]gmail.com)
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

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

> Andreas Kurth <emacs@HIDDEN> writes:

> And anyway eglot--watch-globs as I demonstrated was fairly fast in my
> tests to place watches a similarly sized hierarchy.

So, I've downloaded jdtls to run an experiment closer to yours.  I created a
directory with 7 Java "projects".

   =E2=9D=AF ls
   HelloWorld1/  HelloWorld2/  HelloWorld3/  HelloWorld4/  HelloWorld5/  He=
lloWorld6/  silly/

The hello worlds depend on each other with pom.xml files, for "realism"
I guess.  The "silly" has almost 200K files and 4K directories.  When I
start Eglot in HelloWorld6/src/main/java/HelloWorld6.java it eventually
requests watchers that leads to having to list the directories of nearby
"silly". From the request:

   {
     "watchers": [
       { "globPattern": "**/*.java" },       { "globPattern": "**/.project"=
 },
       { "globPattern": "**/.classpath" },   { "globPattern": "**/.settings=
/*.prefs" },
       { "globPattern": "**/src/**" },       { "globPattern": "**/*.gradle"=
 },
       { "globPattern": "**/*.gradle.kts" }, { "globPattern": "**/gradle.pr=
operties" },
       { "globPattern": "**/pom.xml" },
       {
         "globPattern": {
           "baseUri": "file:/mnt/bigone/Source/Java/",
           // very similar to yours, guess jdtls wants to know
           // if the project name itself changes?
           "pattern": "HelloWorld6"=20=20
         },
         "kind": 4
       }
     ]
   }

Anyway the request finishes pretty quickly in under a second.  This is
a 5yo SSD

   [jsonrpc] e[23:55:03.623] <-- client/registerCapability[6] {"jsonrpc":"2=
.0","id":"6","method":"client/registerCapability","params":{"registrations"=
:[{"id":"01144ae3-e721-42a9-9fba-a9ee0d4f3756","method":"workspace/didChang=
eWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.java"},{=
"globPattern":"**/.project"},{"globPattern":"**/.classpath"},{"globPattern"=
:"**/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globPattern":"**/*.g=
radle"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**/gradle.propert=
ies"},{"globPattern":"**/pom.xml"},{"globPattern":{"baseUri":"file:/mnt/big=
one/Source/Java/","pattern":"HelloWorld6"},"kind":4}]}}]}}
   [jsonrpc] e[23:55:04.287] --> client/registerCapability[6] {"jsonrpc":"2=
.0","id":"6","result":null}

The file watchers really were placed!

   (cl-loop for v hash-values of (eglot--file-watches (eglot-current-server=
))
            sum (length v)) ; =3D> 3997

This was with the very latest Emacs, which has a slightly different
version than what I think you last tested.  It shouldn't make a
difference to your case, but maybe there was a bug in your version that
I fixed inadvertently, so doesn't hurt to try.

Jo=C3=A3o




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 17:31:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 12:31:12 2025
Received: from localhost ([127.0.0.1]:55945 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWHqK-0004uY-Jn
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 12:31:12 -0500
Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:59774)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vWHqI-0004uK-Fb
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 12:31:11 -0500
Received: by mail-wm1-x335.google.com with SMTP id
 5b1f17b1804b1-47118259fd8so8797325e9.3
 for <79809 <at> debbugs.gnu.org>; Thu, 18 Dec 2025 09:31:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1766079064; x=1766683864; darn=debbugs.gnu.org;
 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=ZuMGmxBXqsbhGf4aTRpXoHOXJq9aaMhFEm1KdkzUxJw=;
 b=JL/4lYdi2OOOyUftz6NIQ4aCsljLGjB6SEO0tcEcxWAuv0V4q35HJRBvyMCA+n4iNL
 1m0nX59SNz4ozRX1V66aSuzfYaif84vt7+4r2fm/Ke/PcUaD3NnuY7ppvPtENxvGJwwR
 CCqeGUz4jfpao4OMvM05AH7i6W7Ljr5EeONxCX1dhf3I2buVQqsVg16SdBWK/VNp3R2S
 l0scQNgnB/79tf156zKyxjenCMNZykU88hWZxsfjKA70CGQDhlvXJAc9O5Dc3/5WfDOU
 NVPQQGDXklMlvoAw8sy8bsuNAsXqnuI3kD1UtSoAL2Ib9CS7MATu/rDtXxPBmGqCU34X
 jMHg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1766079064; x=1766683864;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=ZuMGmxBXqsbhGf4aTRpXoHOXJq9aaMhFEm1KdkzUxJw=;
 b=mOqMwba0WgALRJ2H/HLcfjYubshtyp7dSGBZsaSY7e3fTluGwB3B/noL7c13oNvBfW
 jcnw02tdCQwhpuTFEShWhay0t1pIDVQR5YmiObgLdINcKbOSgxf0IrZqYBEfgxOeFnbS
 ilk8QpUozWMbY0glxqPhLCOQrdDbvH+KUT0YSq52TCPx9K19QAbro1ilpizhRbRwBqoL
 BIb1jv+Utw58mes0Tsts1aOUwcBAId8jhWGYJS2z6QXnr4GHHjtu4mffojkM92ZtDdjn
 bq29le88+BpoFRuEg6iC/6UZC6Xx2c+YpGHWXhivypD5R1s29O5k70NX+tq4ct9X7Zup
 O77w==
X-Forwarded-Encrypted: i=1;
 AJvYcCVRmhsAxkr40BGTx2/IHfZ8uMOPejFt6Vf7Z6C6kaS/XH0TQDyj+yExIJVTA9SOu+gK3H24uA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxTixZIQbIQgN4DZYNJKKUU0gpta6FAtJsFMSFR4i58ZDe0OGCt
 J7GgTdLNPyGSx6ORVygo7j1YG7jsx2FHCS1MpUds1AgBRKcMXtnicQDXikriAw==
X-Gm-Gg: AY/fxX6MuwRa5US0EIsT0MkKEfHNFgYcqx94wmbgkz+QgT4CJSEdXsAnFWJS9/Xo9vO
 l2mMmRXoQqtkU9ctTYvF+UeWCqnV0KPMucxREmjuzuSDDlLRysIQUFs7XRBx8mkchVahx2Xpg3C
 Mru9+qcTQFHi7VQ4F6NB53Kh0VA89OoupEsrIJkKN2S6cCnLks3eOOAEeguZh5HZfUuoIgtp8fa
 OofRbVLIJFcMEOzECVfIUn54k1up9TkoiIglVCTlvp74fcaYcXWFl3QAE5BbqOqhTPhsGOWETbk
 /CWsTH9djuSFuLyPSTo7AHZoHeN5I8Qlmevntcle2rsavEO1FymYDn2JklUmdi+lN6a7jXKyZp+
 nkmbxzEd2pFGkKJaRZ4A6ncQv6L5HxUFTF92ihnPJmPnJ08+s0On2rgPQQtZRhC1f6RPngj3O6D
 KnCkSflObn0jI4pnNA44q1KVVSEg==
X-Google-Smtp-Source: AGHT+IGnjgZSZnV20uuiJRJrAwyehJ1G3/50VOLq2hf3OYGhGykCSDQba0dE7aOVGosutY7YfDPGAw==
X-Received: by 2002:a05:600c:890b:b0:47b:e2a9:2bd7 with SMTP id
 5b1f17b1804b1-47be2a92effmr28060575e9.19.1766079063742; 
 Thu, 18 Dec 2025 09:31:03 -0800 (PST)
Received: from krug (87-196-72-85.net.novis.pt. [87.196.72.85])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-47be3b3a80dsm18422375e9.7.2025.12.18.09.31.02
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 18 Dec 2025 09:31:02 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Andreas Kurth <emacs@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <87ecorhl89.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN>
 <CALDnm50B6rcDKbv+2-EPH9M0pzv8nY2fOOm+QpMLzh+5VsSXrA@HIDDEN>
 <87bjjx46c6.fsf@HIDDEN> <87cy4c59kr.fsf@HIDDEN>
 <87ecorhl89.fsf@HIDDEN>
Date: Thu, 18 Dec 2025 17:32:41 +0000
Message-ID: <87ike34rwm.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: 79809
Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
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 (-)

Andreas Kurth <emacs@HIDDEN> writes:

> I don=E2=80=99t really get why ~/eclipse-workspace is entirely searched a=
t all;
> none of the returned glob URIs point to it without specifying at least a
> sub directory or a file name as pattern:

Well there's=20

          {
            "globPattern": {
              "baseUri": "file:/home/ak/eclipse-workspace/",
              "pattern": "idapi"
            },
            "kind": 4
          }

Which means that in theory the pattern could be found anywhere inside
it.  I understand that if you have the smarts to know that that relative
pattern can only ever match for the immediate file
'home/ak/eclipse-workspace/idapi' you can probably skip the directory
listing.  But Eglot doesn't have those smarts and I hesitate to add
heuristics since not only does that get messy quickly, but breaks down
easily (the server could ask for pattern =3D idapi/* tomorrow).

And anyway eglot--watch-globs as I demonstrated was fairly fast in my
tests to place watches a similarly sized hierarchy.

I don't know what to suggest except that you use trace-function and
edebug on eglot--watch-globs and then M-x eglot in the problematic
project to understand exactly where this is taking a lot of time.

Jo=C3=A3o




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 17:21:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 12:20:59 2025
Received: from localhost ([127.0.0.1]:55852 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWHgR-0004Lt-4v
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 12:20:59 -0500
Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:43285)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vWHgI-0004Jz-Fm
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 12:20:51 -0500
Received: by mail-wm1-x332.google.com with SMTP id
 5b1f17b1804b1-4779a4fc95aso10555915e9.1
 for <79809 <at> debbugs.gnu.org>; Thu, 18 Dec 2025 09:20:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1766078444; x=1766683244; darn=debbugs.gnu.org;
 h=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=RrNbumghiRalxrmHOVpSZMz4QrDvqO8jOJRatSQmjRw=;
 b=k3+VyE5VeElnJ3rjQ34IoIppC7UI9mFU7VQ3/TG3EsAWO64JOw7qUd7JC+Z8WR0trY
 Sm637uF+FzpuuJ4s6WJL4JfSI5SAmWClFAiH9DBsOlodTOOi92nniSYGsEcxIXPbGh6S
 4C6mjNJq9t6UOJcow9qIAX7qLqWtqN9iiBcFzFWlM1GuPSA4XscJmmUb++f0hjOmHsVz
 47tgajXCKOu1S/1gOrcjs2uuq037m5bE+4t3nHf1Qpm6/VnWfVK7P3JsZlaKwD/NNg3c
 13M8EA38z8wfeoPu8Xx+k4zz96nSldg6OQL2VnHkOwTBsYf/rdDiWSzxYivvqqLOoKLv
 wvGw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1766078444; x=1766683244;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=RrNbumghiRalxrmHOVpSZMz4QrDvqO8jOJRatSQmjRw=;
 b=It832HAKQyUpPWQmRFvPf5D0aPM+TcWMpzmZj1iAjT9Rt+2GRks6q3tKR3W1Ew8ykR
 JofxQcTyntJHnG4huA6mcJ/ngtPZMDTwrr/SE/q7DCHRMufu6jyKOQf/79fWcnKA56vh
 iStvD2PUbwX5xaeaBsSA+ns/T/0BmBo8KIFOunNVQkVdgfxZqlf1Gy75l9K9SQM9K8ru
 rwNmnjxP/Ge4yheZL8KISrigvkb+Fot3rubzOpVYA2TPu/sCwCH+1YIptgl8dUwLuI1t
 fVYZ17W1C/DCGKdKNIMJlO99Sw3nh1epCBF9VjuJVxansQ+c6sl3x2HO0z8orM2HeVxg
 9piw==
X-Forwarded-Encrypted: i=1;
 AJvYcCVaS7rDM3fWxJ3FBeKVLKFZ5/d3WRDeR5r71rsoUe3zQ3FkZ8z/JDdMlChrbke/xwpg7IB2tw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyuDKN+Kpg4/zwWKvz8+l81PGjD5eHPx/st45Qw9+itN3gOqQPH
 66X8mu7qUwWMFmgOem/kCSnrL1DQiN6rgzgAd3O0ElnmiA/sUAeKoYrp
X-Gm-Gg: AY/fxX6GAg+2rWlH/ffykQjfay9N0YAMm6HfBZ+POHzXebB8U422iJLlIH1kA1ZOJdg
 YVx2SJcECIBu+XV3jMc4KHV2UJ9mlEYyRFZrBvKda1z1qApcRP35oDhXiy4oVl4cM7sNcHLuOlM
 3kjaSTlrQqwPtJob05GggdTFNCWdigLsFURG6A0IQcSlIg9ziUmXMkf09/8bujeajwRd899F5d9
 ew/VkSqiAMxENJUZF3JcCtarmpdQoFZYvYopVUxyvfpAN6AD9jrBNhVYaDOkIHz90wMq8ePjDBx
 5M2lW0hqy16VlLhIQb4le4E0v+m5non+GCUEfLz/vz5F8Bn/1HESo8TvYWuam0dRdNiamoXEo3D
 +030LgbhHub0QyD9etJ2APeg6Q1UvTc/3bqmfxEFrTqrEFgr5LXaTi03LWmdjZtFwYD80TF62TZ
 2h7Hsrz+aC6gCsYPgvzKS9bah5qA==
X-Google-Smtp-Source: AGHT+IFki+0GamnSXhKxiRNJb4M5m0GYDCo2EktN4i8YkOqjNhp/eFsouTA09ZqAGkLD1VeIgcvJIg==
X-Received: by 2002:a5d:5f53:0:b0:429:d3c9:b8af with SMTP id
 ffacd0b85a97d-4324e42eac2mr338307f8f.25.1766078444226; 
 Thu, 18 Dec 2025 09:20:44 -0800 (PST)
Received: from krug (87-196-72-85.net.novis.pt. [87.196.72.85])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-4324ea1af20sm15678f8f.2.2025.12.18.09.20.42
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 18 Dec 2025 09:20:42 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <865xa33mbs.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN>
 <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
 <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
 <8634593qn1.fsf@HIDDEN>
 <CALDnm53c3hx4UDKwMgeXQN+tcnz+cZorc7YW3ecjA-t9gNSdXw@HIDDEN>
 <86v7i42umd.fsf@HIDDEN> <878qf057om.fsf@HIDDEN>
 <CALDnm51L3zSq8iWU0tcjbTHAahH0FTm6UJE-ogTSd4o=xFL8ZQ@HIDDEN>
 <865xa33mbs.fsf@HIDDEN>
Date: Thu, 18 Dec 2025 17:22:21 +0000
Message-ID: <87ms3f4sdu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, emacs@HIDDEN, dgutov@HIDDEN
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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> I installed a different patch that just falls back to project-files + delete-dups
>> which still manages to be faster than the find-lisp in my tests.
>
> Thanks.

Now actually pushed.




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 17:20:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 12:20:33 2025
Received: from localhost ([127.0.0.1]:55842 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWHg0-0004Jb-Dn
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 12:20:32 -0500
Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:59779)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vWHfx-0004JE-Q2
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 12:20:30 -0500
Received: by mail-wr1-x435.google.com with SMTP id
 ffacd0b85a97d-430f2ee2f00so436436f8f.3
 for <79809 <at> debbugs.gnu.org>; Thu, 18 Dec 2025 09:20:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1766078423; x=1766683223; darn=debbugs.gnu.org;
 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=F15BSV04con89R0KECbbgkiR2mbau5VzcxEJEOAVeLE=;
 b=e6jL3tDtHofj1LdfS6Bmg8y6nWJbQqp/aHoHQegFno8fb+Fa8mAe5emGa7c5lpOV3T
 yp4r6uvRn2CqTMQJ2Txis+3Mic8Sfilv8Zs/gHbQoMehSrPEAwOfSv9T8mzt5fz7j+/n
 LWGZFsZdNvkuHq5UD5+XBd9Z8EL68Ao58HUm2rdN2E4PN0zHBk8e3Yaabs3lcvLAkAe3
 glFb1tX2BU/abJBZbrcHxEroIz4ee1HoeWal3mYNXJrYtVLvfxjzW+941oXaz0ULRobi
 CkvoZPreWk7WpkNigDQkfu5SztVzHFteP+P6zjvkUkZTOC1RUQ/gIM0xk2z+a1tC8Zvv
 qZGw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1766078423; x=1766683223;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=F15BSV04con89R0KECbbgkiR2mbau5VzcxEJEOAVeLE=;
 b=JvoPZ9Y88lMHCmscAVe2y26KvwOAd7VV1FKUsCnUmrsUOI1v/bugar+WTS5xRs9bVK
 zIw8ZykfSlOXPQpVrRIBMRR1rnZYH7/r5r6syOL4tfIk4cQqB7QvIHtOLJw6JjeQHYB2
 EtBflChyk6fJ5qMoQ87rKq78eLEzC13w/CqbWuHEGKs39st/HbszcH8piWxCDarWX5dN
 VgH2R2RV+DLKAVWWId+dTAkS7ffx6XK8kPNZeEaYMXPLf/de4oDmOZjr+alaYRretzPV
 kGREI6Z+TR1WyGT6o/VoqD+zH1/wlJfDCCO5VXqoTjylor2w9PMtBPvbDIEXFIk71exh
 1oag==
X-Forwarded-Encrypted: i=1;
 AJvYcCWLZp2Zgze+bt3t7iqUXE74Ezwai7JuNlE5mjVRmGeCp/z002qyKmRuXQ1CpD/aALY+7X3tXg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxNgTvRWST55Oq39mQkK98AtOJZ4bizjGCUaUOTnRxo+lHW1i1k
 3qw4w6bdxVn9oDrBoJ6HGDJYikTwY1FbrpKCZUkah8w8SwLLWXlL2Osa
X-Gm-Gg: AY/fxX5/OxB0sLMFPVHtpmrLAfZOf5hTHvB8DSbwRJ8WMxHz8yvMFbSggPmzOPXw7/O
 5gUZUQBBoDJf9ltgCIExHBUeuo70ZIy7Bhe/wxXXTxmL8pdjcXVB4oERqtZjHCrhpkiwJ7Ob4mz
 r3hkh+wquIMUVAo8Q4h7FpHHaOUIoNvdbu1bX/pa98KgFGJt44rrjQfXj4VorqBOXtXVKupDufJ
 Jn5BSlF9PMRvt36Sbi47bkbPpZ40BB8su10/h+OTwjHUoByjvfcUAFJBrrf6g8b1SK2Nk4o/kPR
 s7MKzHqCv+qf/Q2eh30HIkYoer/oia1/PVO3wCYwxMKKE0WJVzcLiI6AezbP3GanwhWAZNrm6KF
 ky7TOwYV9pr0rhkKGECs1ZXbppvdNDkqUbXdTnYD27I0fD2tnzdinJeJbOvzjPYkYeCtPd24OY7
 hk4xTbHzRR5Hzgnp8vFr+ubp4Lk1KZj6ONXYoN
X-Google-Smtp-Source: AGHT+IFxDLYitoe7VnLMxLjJx6hEHYy3C90GvDZbQtA0CY46W7GxpqywGIY2a9NSOeAb0EhjqfGWcw==
X-Received: by 2002:a5d:5f85:0:b0:431:6ba:38bd with SMTP id
 ffacd0b85a97d-4324e4c715fmr303394f8f.10.1766078423274; 
 Thu, 18 Dec 2025 09:20:23 -0800 (PST)
Received: from krug (87-196-72-85.net.novis.pt. [87.196.72.85])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-432449ae0ffsm5827244f8f.39.2025.12.18.09.20.22
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 18 Dec 2025 09:20:22 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <867buj3mgj.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN>
 <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
 <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
 <8634593qn1.fsf@HIDDEN>
 <CALDnm53c3hx4UDKwMgeXQN+tcnz+cZorc7YW3ecjA-t9gNSdXw@HIDDEN>
 <86v7i42umd.fsf@HIDDEN> <878qf057om.fsf@HIDDEN>
 <867buj3mgj.fsf@HIDDEN>
Date: Thu, 18 Dec 2025 17:22:00 +0000
Message-ID: <87qzsr4sef.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: 79809
Cc: 79809 <at> debbugs.gnu.org, emacs@HIDDEN, dgutov@HIDDEN
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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> In fact, eventually I think it will make sense to add this or something
>> like this to test/lisp/progmodes/eglot-resources.  Unfortunately Elisp
>> not having easy getline-style reads from stdin (please do correct me)
>> doesn't make it a good candidate for writing a toy server, else it would
>> be very easy to write one with jsonrpc.el.
>
> Maybe a pipe process could fit the bill (if I understand what you
> need).

For a "proper" server on GNU/Linux systems we need to be able to
construct something akin to bare 'cat' with Emacs.

   $ emacs --batch -l mistery.el
   bla
   bla
   ble
   ble
   ...

This more or less works, so=20

   $ emacs -Q --batch --eval '(while t (print (read)))'
   Lisp expression: bla

   bla
   Lisp expression: ble
=20
   ble

but it's neither a getline or a POSIX-style read() primitive.  We
ideally need the latter to make something more sophisticated that we
then plug into jsonrpc.el. I think it's OK if it read characters and not
bytes (but the closer to read(2) the better, I'd think).

But if you can come up with a pipe process whose write end is connected
to Emacs' stdin, maybe it could be even simpler, as we can just hand
that to jsonrpc.el and be mostly done with it.

Jo=C3=A3o














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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 15:18:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 10:18:50 2025
Received: from localhost ([127.0.0.1]:54521 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWFmA-0004c1-N5
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 10:18:50 -0500
Received: from mout.kundenserver.de ([212.227.126.187]:43723)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <emacs@HIDDEN>) id 1vWFm4-0004bG-47
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 10:18:45 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akurth.de;
 s=s1-ionos; t=1766071113; x=1766675913; i=emacs@HIDDEN;
 bh=Ytf0zz9rS2eJ41UQEh3m+OWGZPxx7kV1cpPo/x9s2Wk=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=awrtpG7m3amEdCKoAEQWNuwXtmreenKmP906uN7IM+cnKLBPNt0GJnsWjyVaiHt1
 eWAQnu9M8qD9GtEf4hXX+g1jkU6tZS8x2AJaya3p7ZIvL5cqPm9pbLtEwj1Sz7ke/
 1GDiRPECf7UGOeKEE2dNDZeeykNcipI9hocrFxp1tPOuJzZKtd3Z25gbcp/hLTLk4
 02CrN7lTLattqkxv6X/Bj+GDjfmbnyRm9srujwmHGL18LV5UgDz66zzB3vpKWBzm4
 4/jl6nPohx2Xi9FSXGqu2AIzX+YjK6oiJ/WFHz6k1PBnIGM8KIa9OceBQ/SvpjDoC
 b6mmbRQIZe37kAF5aA==
X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6
Received: from ravel ([82.165.232.202]) by mrelayeu.kundenserver.de (mreue009
 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MVvCn-1vMje818cP-00KqJ9;
 Thu, 18 Dec 2025 16:18:33 +0100
From: Andreas Kurth <emacs@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <87cy4c59kr.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN>
 <CALDnm50B6rcDKbv+2-EPH9M0pzv8nY2fOOm+QpMLzh+5VsSXrA@HIDDEN>
 <87bjjx46c6.fsf@HIDDEN> <87cy4c59kr.fsf@HIDDEN>
User-Agent: mu4e 1.12.13; emacs 31.0.50
OpenPGP: id=42E6E88E86E24E19; url=https://akurth.de/gpg/ak/pubkey.asc
Date: Thu, 18 Dec 2025 16:18:30 +0100
Message-ID: <87ecorhl89.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:RBbvbm6WwrvtbSx2/RiZ9MNXIrfC84vRXOtFD6Mxuio0svW5Fvj
 OLLl4kOPJkfh505otkgQhnO5rul6en50YynLC3c66/BqYHkrqrsiKS9DfnMdpxB/AS6/x0X
 mvwt90iKwSHj8LZDgLL8nOn6W+dX1mGsCqh1jwOsAX3p/pWwgPWTQCfY7IZv3H2NrpkBSwV
 dbC7H4mrYULL5qDaqRncw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:1yYjknZ8mLQ=;bWOhogDRRcCdyk3K+glcWEIHWky
 1HgQRnmDceqnnZi3zup9l4TKs0L6kVRwlugBXXMen/PoM8GiyiKNfBQgdg3PK67SzGlTYsnrL
 A5eA3ZhJf2KumHwrIbGX5kkRXTwH64MIYkuDk4YciSUeZt9PEeccCKkiB5htlPOzWxRuh25f7
 R96XJpMnFxhMPkVsUGF4kQiTc3kQIEEqD+rHVmeFJXjxzhfmyw8R8IwwLDPZ0+AEegw16+J6e
 T5EtjxWs7ZMm8m744fb4x0r+0q6l1T+SnWooHBVjOl5UHL2pB7Rpk1YYjSpk/eLUoOjrTesgL
 fsV4Q3ozD53nGF119plDlJXpLR0z5QgNApN+4MGTOTWJuXnCkK9ofVmeBaBHNA60/4I1pcOOO
 qYgDqFf1gA0FhuuaDdH99KCD7wrsjN1cPJihdWbG3T75YS5KNlrT+Cn/RsvNyv7+iVfN8DFpa
 AL9e6ecYMTSCDfkbPwBRQ5UIHnjm4bKGM34ev5u5ZQAj+DRMzGkQRToffgbLPMbhH3PpYjWGF
 /P3aDME6QaWhjueWJp7La1LpPuzr+n0jd4s7yVZ99KTbI9s0bMGkq0ae1Da4n7Sh+Qpw7mpH3
 bfuwh1megkgXzp3kcJm8nLAQXY/ZHCKP4oJHezZ752LyFCVXEls9F3zok6Ud+YyAWtdD15g9x
 3+qm5t+y5v2W3Rr5zF5YEs7NiXMZb9/C8aOoRqNFsBGeZi/Fjekm0un8LxPgVhR1NhpeHdyE3
 Ef/GXeC3MIDRDo3hmLeEYOSEmX5T9vH00g0RMP7LKSPE65LxvFx3Zxd/oydHa0CGhMGdr70iW
 +uh3sxv8AIaULkOuzFqz7loUB72PYVulQgdRFZ+GAGirbs+E38O3Qxs16syTciHeB5OUj2llH
 mSw7Kb2O4K2Rh41su4M4Xyfqq97a/L2tfsijkz13wdKVq4HVs+2cYFmC0aKoKV1hfQd0DQ7R4
 K4Xrlf7SClY5pWk+oU5DK1gGY2+6unmahrkX2Z0d7XK5ga//++7iurbeugMII+PJ+6Z6YkrsX
 qRJJxlLZBwdtsFLppn2+NBoXOCkDbG2h+WxuUP4x8t/bUtkSu9Jbgloy+N6crjvD6xu9IVNrU
 NRSPpHBvX6v6NlKPZemOI5Tpqgibkr3c8QoJJ36eMdbMMkxD+7ET2PCesMdozE9xLj4rz2KwV
 vHqbe3nUy9pcRP1bDNlB1I2sNMYRMcdPJoqjxjbPGAzR2rbDsjrRiIKRinaPRE6LNLCvak38O
 b47ySHVPYAON5yrGF2oFFvK7grPE1ApoIuGjivUcQNxNDXm9fH34shlt3qqfVs8Uf4uiXhsDA
 DD/lQuAlem4PazSwvh7Y7E/E9t4avhzn6PoEwAzvOR+1ksLAoa3F8e1ug6Pj8XjcuhKdkRAxM
 rNNRKKxvwu1DZmcveqAR9cyvQvUNt5V3LrtfW3YMuqrIDzkBHL26gcGjLELTP9zlzv6VbEeBc
 cSGpWWhQhLJfGE+cheI6/O4d7hKRZE7+UyumX4Z2TFSUmdXr7TK2kpf52vNowzaSpB1GfZA9d
 iCfC5vNFVFbS2a4p33W5Ja03+r+LJFrMhnuhSBXkd9/L5rbhHeQ+txAB+JIO/Odb1lRuGhM3C
 nSnIW/ervIdcX52xAH0F2+ygWv4TtxW/bLPz3nVacf7IvzPrFQUl3t8GYOcf2fBYX/yIunK4d
 COruv8AwQGgjomkOuNUl9x0QO4xyv5sgFpS4DtSsSxnKDzOcaMm5XlsqD/p6swVgZW80KjTny
 cQ6nWxiP/Pf817R8BMGGH/aKCVOaNXi72CQ6j2Wt0ZXnbOofgkr/1/xWxqpQnarlZ2H3liKdh
 lDmV
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
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 wrote:
> So either you're not really using the optimization of this commit=20
>
>     commit f0912d5cb06961395cba4637d2afd5fe92774731
>     Author: Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN>
>     Date:   Wed Dec 17 12:04:24 2025 +0000
>=20=20=20=20=20=20
>         Eglot: speed up file watching outside project (bug#79809)
>
> because you forgot to load the new eglot.el or something, or something
> very fishy is going on.  You can't be in a 'find'-less system otherwise
> it would have been very fast to fail and you would have seen the "Can't
> list directories" warnings.  And we know the slowness doesn't come from
> the in-root listing because you confirmed it's much much faster when you
> set eglot-watch-files-outside-project-root to nil.
>
> So I'd double-check if you really are running the latest.  Else, your
> 'find' program may be abnormally slow or those directories are in a
> very slow network mount, or sometihng...
>
> Try to execute
>
>    time find ~/eclipse-workspace -type d


The commit is included in my build. The .elc and .eln files have been
newly generated, too.

If I checkout the test project in /tmp, eglot is super fast. In
~/eclipse-workspace it still takes around 10 seconds.

~/eclipse-workspace contains 88 projects with 230.483 total files
(including .git/*), of which 11.808 are java files.

Everything is within a local harddisk partition, no NFS etc.

find is from GNU findutils 4.10.0 and is super fast in zsh.


I don=E2=80=99t really get why ~/eclipse-workspace is entirely searched at =
all;
none of the returned glob URIs point to it without specifying at least a
sub directory or a file name as pattern:


[jsonrpc] e[15:38:32.064] <-- client/registerCapability[14] {"jsonrpc":"2.0=
","id":"14","method":"client/registerCapability","params":{"registrations":=
[{"id":"d8d91e9b-d07e-492c-bdbc-a434f94bdf89","method":"workspace/didChange=
WatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.java"},{"=
globPattern":"**/.project"},{"globPattern":"**/.classpath"},{"globPattern":=
"**/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globPattern":"**/*.gr=
adle"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**/gradle.properti=
es"},{"globPattern":"**/pom.xml"},{"globPattern":"/home/ak/eclipse-workspac=
e/idapi/api/target/generated-sources/annotations/**"},{"globPattern":"/home=
/ak/eclipse-workspace/idapi/service/target/generated-sources/annotations/**=
"},{"globPattern":"/home/ak/eclipse-workspace/idapi/service/target/generate=
d-test-sources/test-annotations/**"},{"globPattern":"/home/ak/eclipse-works=
pace/idapi/api/target/generated-test-sources/test-annotations/**"},{"globPa=
ttern":{"baseUri":"file:/home/ak/.local/share/lsp/jdtls/","pattern":"eclips=
e-formatting.xml"}},{"globPattern":{"baseUri":"file:/home/ak/eclipse-worksp=
ace/idapi/","pattern":"api"},"kind":4},{"globPattern":{"baseUri":"file:/hom=
e/ak/eclipse-workspace/","pattern":"idapi"},"kind":4},{"globPattern":{"base=
Uri":"file:/home/ak/eclipse-workspace/idapi/","pattern":"service"},"kind":4=
}]}}]}}




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 14:19:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 09:19:43 2025
Received: from localhost ([127.0.0.1]:52681 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWEr1-0008EG-7v
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 09:19:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:37252)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vWEqz-0008E2-3I
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 09:19:42 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vWEqt-0006FK-Iq; Thu, 18 Dec 2025 09:19:35 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=2EUWM8n8uSh+5wN8rARPfFWgiEju/IObjDfdxtJlOWQ=; b=Ch8+ZMxUkKnUulzQzr0t
 +Ep/S5ZZmtr79tx7yXHRjxPoEZxtAB87sg2IxRZCa853JG0QHP1qD80v2oB4ztlKU80+4aHndRHU3
 hwAmbxFaWpN0HQl1zNTKtUl7t4ucLC6btPbz1KTAnXiw0ClP6pIGYLNgOAgehiuuZoOOLJ64VH6bu
 5VVrjIt8PCN4J7mJYLTFz0t3osLjaDIETzht0I6VMvep4Zlzh9s6E+3RzeMw3BHji3TZVOEJ3S2Mt
 mbI608NKqzeA6V+A1LCayt7uawYeMr8FDhPEBwrr0R9Wfc40i4ZfikKlELD8OPA2iDwgnBxqmKIqK
 N2sS68YXNQa/qg==;
Date: Thu, 18 Dec 2025 16:18:31 +0200
Message-Id: <865xa33mbs.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
In-Reply-To: <CALDnm51L3zSq8iWU0tcjbTHAahH0FTm6UJE-ogTSd4o=xFL8ZQ@HIDDEN>
 (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Thu, 18 Dec 2025 13:11:38
 +0000)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
 <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
 <8634593qn1.fsf@HIDDEN>
 <CALDnm53c3hx4UDKwMgeXQN+tcnz+cZorc7YW3ecjA-t9gNSdXw@HIDDEN>
 <86v7i42umd.fsf@HIDDEN> <878qf057om.fsf@HIDDEN>
 <CALDnm51L3zSq8iWU0tcjbTHAahH0FTm6UJE-ogTSd4o=xFL8ZQ@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, emacs@HIDDEN, dgutov@HIDDEN
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: -3.3 (---)

> From: João Távora <joaotavora@HIDDEN>
> Date: Thu, 18 Dec 2025 13:11:38 +0000
> Cc: dgutov@HIDDEN, 79809 <at> debbugs.gnu.org, emacs@HIDDEN
> 
> On Thu, Dec 18, 2025 at 11:50 AM João Távora <joaotavora@HIDDEN> wrote:
> 
>  Eli Zaretskii <eliz@HIDDEN> writes:
> 
>  >> From: João Távora <joaotavora@HIDDEN>
>  >> Date: Wed, 17 Dec 2025 19:56:12 +0000
>  >> Cc: Dmitry Gutov <dgutov@HIDDEN>, 79809 <at> debbugs.gnu.org, 
>  >>      Andreas Kurth <emacs@HIDDEN>
>  >> 
>  >> Ok, then feel free to add that as a fallback, else I will eventually.
>  >
>  > Thanks.  I can propose the code patch, but I will have difficulty
>  > testing it as part of Eglot, because I don't have any LSP server I
>  > could use set up.  Would it be okay to suggest a patch and ask you or
>  > someone else to test it in Eglot?
> 
>  If it's as trivial as you said, you've already proposed it and I will
>  test it myself.  I'm not particularly in love with the use of
>  "-internal" functions though, but it's not a deal-breaker.
> 
> I installed a different patch that just falls back to project-files + delete-dups
> which still manages to be faster than the find-lisp in my tests.

Thanks.




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 14:16:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 09:16:19 2025
Received: from localhost ([127.0.0.1]:52623 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWEnj-00083K-9j
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 09:16:19 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:33752)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vWEng-000834-KX
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 09:16:17 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vWEnZ-0003fg-VI; Thu, 18 Dec 2025 09:16:10 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=2f5tC16Z2qKY06+igSq0TE5l121YS12eMw5KC92IAWk=; b=gmCy9NOTp0pjMGALixRQ
 GDdr7Dlo7CJYI+eqZtgWUPUCLXgNRs8i2Pa1U9TW76HmThXTZ+5jiOuUHO2/WRnf31mGfHCrKVsrD
 nbtDSrB6fnh0XNXXd+ATElcbCBJX24SyYfgDRh3UeGQ3v+IDine+IRoQGiMyzcgeOLYY/dMMQdjfQ
 V2RSNpidquXgCaLTuKv41Q7GxcbXVJh18HAwLzTzw4KobH7O5G4CQkoOb/K3isovwnhsbRuha9mqH
 IinqkaZ139G6ZV2br7ruMiOK55VmJUEWEN8S+6YY2Wof73UCXLqbrl1e9+rUgDbNH15JSj55ao+yu
 RugeFfwShWGung==;
Date: Thu, 18 Dec 2025 16:15:40 +0200
Message-Id: <867buj3mgj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
In-Reply-To: <878qf057om.fsf@HIDDEN> (message from =?utf-8?B?Sm/Do28g?=
 =?utf-8?B?VMOhdm9yYQ==?= on Thu, 18 Dec 2025 11:51:53 +0000)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN>
 <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
 <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
 <8634593qn1.fsf@HIDDEN>
 <CALDnm53c3hx4UDKwMgeXQN+tcnz+cZorc7YW3ecjA-t9gNSdXw@HIDDEN>
 <86v7i42umd.fsf@HIDDEN> <878qf057om.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, emacs@HIDDEN, dgutov@HIDDEN
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: -3.3 (---)

> From: João Távora <joaotavora@HIDDEN>
> Cc: dgutov@HIDDEN,  79809 <at> debbugs.gnu.org,  emacs@HIDDEN
> Date: Thu, 18 Dec 2025 11:51:53 +0000
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: João Távora <joaotavora@HIDDEN>
> >> Date: Wed, 17 Dec 2025 19:56:12 +0000
> >> Cc: Dmitry Gutov <dgutov@HIDDEN>, 79809 <at> debbugs.gnu.org, 
> >> 	Andreas Kurth <emacs@HIDDEN>
> >> 
> >> Ok, then feel free to add that as a fallback, else I will eventually.
> >
> > Thanks.  I can propose the code patch, but I will have difficulty
> > testing it as part of Eglot, because I don't have any LSP server I
> > could use set up.  Would it be okay to suggest a patch and ask you or
> > someone else to test it in Eglot?
> 
> If it's as trivial as you said, you've already proposed it and I will
> test it myself.  I'm not particularly in love with the use of
> "-internal" functions though, but it's not a deal-breaker.

We could add to find-lisp a non -internal function for users outside
the package.  I just didn't see any such function in find-lisp,
besides tyhis one, which is the workhorse of the package.

> I think installing a single LSP server for any language is a low-cost
> investment any Emacs maintainer can make for high returns in engaging
> with simple Eglot issues, and could save time vs reading the source.
> There are hundreds to choose from and many don't need an associated
> language toolchain.  I recommend clangd for C/C++ or 'pip install ty'
> for python.  If the concern is licensing, I even have a GPL-3 dummy LSP
> server python implementation with no dependencies at all.

Thanks.  I will try, but I'm not sure I will have time, and on the
GNU/Linux system I use I'm not the admin, so I will have to ask.

> In fact, eventually I think it will make sense to add this or something
> like this to test/lisp/progmodes/eglot-resources.  Unfortunately Elisp
> not having easy getline-style reads from stdin (please do correct me)
> doesn't make it a good candidate for writing a toy server, else it would
> be very easy to write one with jsonrpc.el.

Maybe a pipe process could fit the bill (if I understand what you
need).




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 13:10:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 08:10:19 2025
Received: from localhost ([127.0.0.1]:51697 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWDlq-0002Sp-Rp
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 08:10:19 -0500
Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]:46430)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vWDln-0002Oq-Cs
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 08:10:16 -0500
Received: by mail-oo1-xc2f.google.com with SMTP id
 006d021491bc7-65b3d3ac90fso185163eaf.1
 for <79809 <at> debbugs.gnu.org>; Thu, 18 Dec 2025 05:10:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1766063409; x=1766668209; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=CtJi8JlWbY1+ANqH7Iuijw8wZxdPPxnI7xq90ggr3Mw=;
 b=A1DvBdIgDEjuvEV6b1JOgwRHj4ARaEu7qpLL0IE/pxK80ZwwgHcFLaZQ+koG6M+04u
 xpzK+PDNROTgVUB9XV+I62ymeV6BbsTq5lVUR5QSTM2HhLP2p90FGoFJZYQiY/2ArMCN
 lmxFGHLo9MfzlnOFR+zcAqguIQqL0/9Z9SrZ9kooXfh1WYY1YZWMl2hHzHgsIasXOdVY
 feetgMPCSQn+UO3h0e1EhwLSi+crvOL+q+A20Rv9FdzmFSZYTGDbDNz7uXzymvFkrJWT
 2STCgway+MJfLSdcVLT32FMD7aIxR8zD6kK2uOuHpgC+z11X3gWEkD4GDo/YDxkLJHsZ
 2vFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1766063409; x=1766668209;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=CtJi8JlWbY1+ANqH7Iuijw8wZxdPPxnI7xq90ggr3Mw=;
 b=uZ4E6msVJpKZW1WKDrHpDN34JpZkS4sGh3jS8YjgsXkufHkcOVQZgYUKpKb55KBoAD
 bKNag/++WbLqGSjq1gUJLJdBPKKNN8M/ZoWWXRLp3sLmJ/l2FPrpVm3uqqMuiZet88i+
 m0d5NQtXNAA6qrLc8cdrzYI1M7GbYVS0I7G+jaoUeEh4CoE9bAxHf5jmUb0SvEJBB7UV
 lhn3geiHSvmRYyJgfXPAeLXS5aDui6vvvQF73088FIQ+b0mAeJM+sxPA4o86NWSmC2J+
 pOTAEft/Iur/y2UlekMhIyyPJsbRz8F1VuLgrs0d/+Xh6qsBraiue537GHqTgv4u7M8t
 Xa7w==
X-Forwarded-Encrypted: i=1;
 AJvYcCWoF6EqzSW+M0ltpYf6vAOEoB6KbkYEb9OHucQJ9Uq3LN+UlcoYnm79kmRJJlRyLY31JrrI9w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yzs4Kr4IqaqM7xvuL5VvSPxSnQWWCychfHlYdiVuI4oiuVHL+fl
 tlKUulAn9rwtstxCmfHFglXzrLAKOmPakBVTLl/ybc6BCIcwaZxnOWPFgOm770E6AS3gEQpeqfE
 ZXp1jxx9qaVFBl310ZqTG42n64JHDmN4=
X-Gm-Gg: AY/fxX4hSWg94u32zC+Nej8bP0EnCp725i0HYHvIFOZYOv0d+L6TAzZBMuLLGSqBS4S
 2TyFYkXpShk+ulowJJo6GGp+BtP2YycZIoppVK2uA1twtbuvzZFFcM9aDmKmrFN45rHNG57ud5O
 eVhjOBv00wnBd0W2bF/YrDGShXDIoXWpbvQNGBZsx+vXsh49q2KZhpJK5ZtjMx4i/GVS8vCWwRM
 WkGjXxUNrGBmiv5Wzp5NieoqqQo56LtvxrZWy9O2cyTYlNPX6kdyXDhoe5fmYjGi7hQtw==
X-Google-Smtp-Source: AGHT+IF6WHT1MSnfG47cMLmJ3PTS0g8102hohTyoJKym0dzqn9ssJIcXmZ1MpfpT1VPxiS7EN+ME9dis4diH7Qz2bMY=
X-Received: by 2002:a05:6820:2214:b0:65d:2d2:6d4c with SMTP id
 006d021491bc7-65d02d2718cmr586605eaf.22.1766063409443; Thu, 18 Dec 2025
 05:10:09 -0800 (PST)
MIME-Version: 1.0
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
 <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
 <8634593qn1.fsf@HIDDEN>
 <CALDnm53c3hx4UDKwMgeXQN+tcnz+cZorc7YW3ecjA-t9gNSdXw@HIDDEN>
 <86v7i42umd.fsf@HIDDEN> <878qf057om.fsf@HIDDEN>
In-Reply-To: <878qf057om.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Thu, 18 Dec 2025 13:11:38 +0000
X-Gm-Features: AQt7F2rgCvR1FBtto_lGDWXedmHvIFXwJVeufLfpwO9xPRGo7m2UwkdbcAZlTpw
Message-ID: <CALDnm51L3zSq8iWU0tcjbTHAahH0FTm6UJE-ogTSd4o=xFL8ZQ@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000002bb773064639aead"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, emacs@HIDDEN, dgutov@HIDDEN
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 (-)

--0000000000002bb773064639aead
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 18, 2025 at 11:50=E2=80=AFAM Jo=C3=A3o T=C3=A1vora <joaotavora@=
gmail.com> wrote:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
> >> From: Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN>
> >> Date: Wed, 17 Dec 2025 19:56:12 +0000
> >> Cc: Dmitry Gutov <dgutov@HIDDEN>, 79809 <at> debbugs.gnu.org,
> >>      Andreas Kurth <emacs@HIDDEN>
> >>
> >> Ok, then feel free to add that as a fallback, else I will eventually.
> >
> > Thanks.  I can propose the code patch, but I will have difficulty
> > testing it as part of Eglot, because I don't have any LSP server I
> > could use set up.  Would it be okay to suggest a patch and ask you or
> > someone else to test it in Eglot?
>
> If it's as trivial as you said, you've already proposed it and I will
> test it myself.  I'm not particularly in love with the use of
> "-internal" functions though, but it's not a deal-breaker.


I installed a different patch that just falls back to project-files +
delete-dups
which still manages to be faster than the find-lisp in my tests.

Jo=C3=A3o

--0000000000002bb773064639aead
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Thu, Dec 18, 2025 at 11:50=E2=80=AFAM =
Jo=C3=A3o T=C3=A1vora &lt;<a href=3D"mailto:joaotavora@HIDDEN">joaotavor=
a@HIDDEN</a>&gt; wrote:</div><div class=3D"gmail_quote gmail_quote_conta=
iner"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex">Eli Zaretskii &lt;<=
a href=3D"mailto:eliz@HIDDEN" target=3D"_blank">eliz@HIDDEN</a>&gt; write=
s:<br>
<br>
&gt;&gt; From: Jo=C3=A3o T=C3=A1vora &lt;<a href=3D"mailto:joaotavora@gmail=
.com" target=3D"_blank">joaotavora@HIDDEN</a>&gt;<br>
&gt;&gt; Date: Wed, 17 Dec 2025 19:56:12 +0000<br>
&gt;&gt; Cc: Dmitry Gutov &lt;<a href=3D"mailto:dgutov@HIDDEN" target=3D=
"_blank">dgutov@HIDDEN</a>&gt;, <a href=3D"mailto:79809 <at> debbugs.gnu.org"=
 target=3D"_blank">79809 <at> debbugs.gnu.org</a>, <br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 Andreas Kurth &lt;<a href=3D"mailto:emacs@akur=
th.de" target=3D"_blank">emacs@HIDDEN</a>&gt;<br>
&gt;&gt; <br>
&gt;&gt; Ok, then feel free to add that as a fallback, else I will eventual=
ly.<br>
&gt;<br>
&gt; Thanks.=C2=A0 I can propose the code patch, but I will have difficulty=
<br>
&gt; testing it as part of Eglot, because I don&#39;t have any LSP server I=
<br>
&gt; could use set up.=C2=A0 Would it be okay to suggest a patch and ask yo=
u or<br>
&gt; someone else to test it in Eglot?<br>
<br>
If it&#39;s as trivial as you said, you&#39;ve already proposed it and I wi=
ll<br>
test it myself.=C2=A0 I&#39;m not particularly in love with the use of<br>
&quot;-internal&quot; functions though, but it&#39;s not a deal-breaker.</b=
lockquote><div><br></div><div>I installed a different patch that just falls=
 back to project-files=C2=A0+ delete-dups</div><div>which still manages to =
be faster than the find-lisp in my tests.</div><div><br></div><div>Jo=C3=A3=
o=C2=A0</div></div></div>

--0000000000002bb773064639aead--




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 12:07:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 07:07:55 2025
Received: from localhost ([127.0.0.1]:51194 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWCnT-0004Lb-34
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 07:07:55 -0500
Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:61793)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vWCnQ-0004LL-1h
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 07:07:53 -0500
Received: by mail-wm1-x32a.google.com with SMTP id
 5b1f17b1804b1-477770019e4so4938505e9.3
 for <79809 <at> debbugs.gnu.org>; Thu, 18 Dec 2025 04:07:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1766059666; x=1766664466; darn=debbugs.gnu.org;
 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=yCLZExMDN4tYPk5VnphUoQixxMV6S2irXiKyTAb8x5M=;
 b=bdz1OFGkCffAJSyH+5xPq8MZiMy9NIptHU5Yhq5VjIRx/4yFlU3RCJBu3ts4F3kRfd
 6gOEyD77+FW60Wd8s4SJJcigfGRXgXNCGNhtw9Cbxn1ri8vEA/MePiM534uWOyqf6Vw3
 9g0nchxxb0f8lDdoBWpFFvy6xXmIf9xHOijpmH+OQ209sPmjy4RWysvssTv9QJPqbx/H
 dSaQVFtPvCZhvo9NRcmFf/D1f3U2O02QT2lhBHyK9K5gEi55eNj4gTz9rQ/ogFqumdfW
 FtC6zZ7aDGePg5aK/d/Izh8mefEGYcu+FptjUKNI/dKtqA1puYtsZTlLiwQTQB/kcfkf
 /jvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1766059666; x=1766664466;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=yCLZExMDN4tYPk5VnphUoQixxMV6S2irXiKyTAb8x5M=;
 b=sHNrWA6UfQauqIxmkJE6xVKM24A6Z+uZZ43WYi6Dw1beTpoD4uzyq/2+C3MhKWUXPj
 Hl75aKLLkYK4rU7/fmYySF97p4WXSkk2rGRMOnaWLmDGv25x6uv4ohE/PCPMRtfeCU3a
 Z+1GVYHYo4OFKQVOTmnpRGxDADQHZ4xsZEq+mGPTAsMmI3QWWPMu5/2pjSPUkTFWgt+O
 xGMbvjmNsueFLqVNE9dcMs+R18llKabZOVbf4pUPKtnFmCwMYn+Ixx2kpi0sYQUzBb8t
 QfDRQWWaV4wPeE2/vKkKNzKcAMw1Z9x5jbmnI4q4lkRSfSMEYPhO7GbOq2MiMrRUMhH/
 k2Vw==
X-Gm-Message-State: AOJu0Yx+xsnhJHDE8PKXoUyDzFzjs8nDAp4zv6YFgsoNSR3+hH0wqcG7
 nVVWmF408+iP3dHJ7hc+3jF27tEz05MpPkmIUt9twslIaiHrfOfPT33n+/Z38w==
X-Gm-Gg: AY/fxX6NCNR31RBDwLc8d4d7bLkZA/OrTIbAtjChb9Zg55AZZMNPXJbQWhiC0D0pr5/
 x+IcTfWsHlpwGD4/Mdk9oLIRBL4/Xzzz9l6RrW0KT07cB4BymKs6FFnH/3SGlB7pLzIzGvdu3De
 2AWIH+zvgb4bO3JWP3hsNQPS/V8EeCHEwpLOLDkaq+KxXjmkQilJFox4nFMKY/Cwn+CN7QEJZJn
 Li70kWcj0fXV2SVasJwejcp7xy95i2IKFi+XfJrKjIr+lugDVoZ5exLj1kIKyGO/ZDqiaO/+c/y
 RCeXRE1nt+sfwBJRlKgTw93lkCvgOcLy8mGWNcvD1UTo6VviE1V8SUqJjNxCloJfjfvVqcuP4wk
 irS9UXtlFo56PZ7j8/4HsqtrpALrxnanSqAy/TkfK4lcln77B9BjgyJLAtAJLsdi/tTgiW5xXVl
 t6JkwTcUOR0WHo/M7mqTNnpadsnZoVSmB6xgLa
X-Google-Smtp-Source: AGHT+IH4R74vXMf3bzA/1PiXdWT9wlUfYd19hS2SL51jrORj+y4yDxP3/FppRm6Zv8oj8Zu+ZgnSRw==
X-Received: by 2002:a05:600c:4f4a:b0:477:28c1:26ce with SMTP id
 5b1f17b1804b1-47a8f8a717dmr234700555e9.7.1766059665655; 
 Thu, 18 Dec 2025 04:07:45 -0800 (PST)
Received: from krug (87-196-72-85.net.novis.pt. [87.196.72.85])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-47be2723d19sm44711795e9.2.2025.12.18.04.07.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 18 Dec 2025 04:07:44 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <7363a8b4-224d-45f9-a608-8809fc9b0080@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN>
 <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <87h5tp5qo4.fsf@HIDDEN>
 <7363a8b4-224d-45f9-a608-8809fc9b0080@HIDDEN>
Date: Thu, 18 Dec 2025 12:09:24 +0000
Message-ID: <87v7i43saz.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: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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 (-)

Dmitry Gutov <dgutov@HIDDEN> writes:

>   (setq subdir (file-name-as-directory subdir))
>   (setq time-naive
>         (benchmark-run 3
>           (setq files-naive
>                (cl-remove-if-not (lambda (f) (string-prefix-p subdir f))
>                                   (project-files project)))))

Right string-prefix-p is much better (I suppose you have enough
experience with it to know that it's always as correct as the
f-in-dir-p)

> the difference becomes trivial in most cases.

Certainly not all.

     =E2=9D=AF ~/Source/Emacs/emacs/src/emacs --batch -l ~/tmp/benchmark-pr=
oject-files-subdir.el lib
     Subdirectory to benchmark: /home/joao/Source/Cpp/linux/lib
     Emacs version: GNU Emacs 31.0.50 (build 19, x86_64-pc-linux-gnu, GTK+ =
Version 3.24.51, cairo version 1.18.4)
      of 2025-12-17
     Project root: ~/Source/Cpp/linux/
     Target subdirectory: /home/joao/Source/Cpp/linux/lib
=20=20=20=20=20=20
     Method 1: (remove-if-not (lambda (f) (string-prefix-p f subdir)) (proj=
ect-files ...))
     Method 2: (project-files project (list subdir))
=20=20=20=20=20=20
     =E2=9C=93 Both methods return the same 784 files
=20=20=20=20=20=20
     Results (3 iterations each):
     Method 1 (naive filter):     1.362 seconds (0.071 GCs)
     Method 2 (subdirs argument): 0.062 seconds (0.000 GCs)
=20=20=20=20=20=20
     Speedup: 22.10x

So since you're saying you don't object I'll bump the project.el version
soon.

Jo=C3=A3o




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 11:50:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 06:50:24 2025
Received: from localhost ([127.0.0.1]:50981 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWCWW-0003K3-1n
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 06:50:24 -0500
Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:57842)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vWCWU-0003Ji-0V
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 06:50:22 -0500
Received: by mail-wm1-x331.google.com with SMTP id
 5b1f17b1804b1-477a1c28778so5694805e9.3
 for <79809 <at> debbugs.gnu.org>; Thu, 18 Dec 2025 03:50:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1766058616; x=1766663416; darn=debbugs.gnu.org;
 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=5PAVKSYECOrtfvGRgeYvhn5GNH8bHaUhLmwi3u6ZTiQ=;
 b=d8s5jSSEQwsihlJXw+grSqzq7KBvE64KSjPCELg/nEUp9X4hUievELQyHJNQF8I4X7
 hluycJan3r7VzwcSr4hQ21Lnkqi2IM7PBJTkEGjN+zOIKQxHnw4mFw6ak4G6NeXHDWTt
 yTjEWLrRFY9Pa9Skfe3vmXByI+o+WMqP55mQxWm9rzwli5nTJOP5Srjsa6MlwpC4lNlb
 /KRue0DUMScnaKjbnkzul2zrDFxpZvQeZ9oS1MLlbdgO0Fs1IVDYanf+SSJxXoEKgCgh
 97ju5dHApvv9EN4L7vRFQUhzH0LIwfZ71fOsHoqta5mODMoyRbazKq/FfYa5ZdjgLO8y
 WbeA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1766058616; x=1766663416;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=5PAVKSYECOrtfvGRgeYvhn5GNH8bHaUhLmwi3u6ZTiQ=;
 b=nb/rHnE9w0TOd/0bKYQg73bzPimjoOdws6TwTQxk4hpO7wwbxsD7y7d8SqhJQ32o4Z
 3t+8vW8S6Y/mffu4JEkjsNzYB8qEiB5s6XzSh7olqAumv6Ke6a25dA2XnxlZ3lXTC5gJ
 VtyozFoOg+HMhVMGm0sbhUzY1wg2WAOdnbF9lNG0HctV1sEiLvMZq6kQlT4LgZzaqtP2
 1fBM0xyrQi1XLo9EVL9WMsBQINBO3nDVy6XU/PQxXJ4hRZkdya/QMnVW3W8qIRLUb10f
 YNLt27FMYXxrD/b7PAwAtxXKR4rt3PT1++M/tJQAKwPnIq/RO+EyoeuRIA9pIFABTRe5
 7yPQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWVGj7outhqbwPz8A77ZPENmAXz7D3SpiCjb2ngsuG3EbBkd9MPI7t95zMnywMoTcQb6HkiBA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yxdu1quDFRl3mJrO9Cpm5z7agesNGmSug4leHlvlcuRKnZrnOoV
 W+4ZSCFnQXFVBeS8HI92zFsHb1S9hr3Uh2q1q/gd0vfABQIK0pDY4mSJ
X-Gm-Gg: AY/fxX6HNG1iDdUBSiuW/NT8DHVqy8hNrGYOirx03kRwKatrhHYDIHppel9f2/qXhpL
 iajSUJNyZ+otxFBIJYJpnvyWHMJUCHuU0no42cb+go+Be8kROIVIOdMDepH2fNklp3yebzDtfkH
 sAwBMXdDTuUOKIigymECyGfBDqQxswociNMdIhVeyJl0hyAOUKBYAYOWkTJUqLkpIdsqQFFH6fq
 8e9VPHo4cbcukR0vn8gc4wORvFgdQcBn8FK0zy4oCkrnEVuwdgFRUR4lLuwDabbHjCch1JosLLx
 6dCHB7cejM/SX0Mz9mYXtHscoO50LiH5Db3bng6uPcTme6wskzny4bhL8APxaGk1JxmGrqPq6oe
 O9ekDwt+MYeaheEVh3GrZupLPodFl3Dncbd8WXjC4jViD7K+FxOBIksxSLfTgTrlE/rGKmaL+ZD
 WxdhLQIVKpa0t49LhRjt+Oticq2A==
X-Google-Smtp-Source: AGHT+IGjWAWDMcZ+KKAzQhHZZdbGbjRibtQ0IhdAYiehzNxDWKXoh1LEz6OQ7CmMuQ77TtTTPaFuBg==
X-Received: by 2002:a05:600c:8115:b0:477:a36f:1a57 with SMTP id
 5b1f17b1804b1-47a8f8a9c26mr214513615e9.3.1766058615717; 
 Thu, 18 Dec 2025 03:50:15 -0800 (PST)
Received: from krug (87-196-72-85.net.novis.pt. [87.196.72.85])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-4324493fda5sm4685306f8f.17.2025.12.18.03.50.14
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 18 Dec 2025 03:50:14 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <86v7i42umd.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN>
 <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
 <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
 <8634593qn1.fsf@HIDDEN>
 <CALDnm53c3hx4UDKwMgeXQN+tcnz+cZorc7YW3ecjA-t9gNSdXw@HIDDEN>
 <86v7i42umd.fsf@HIDDEN>
Date: Thu, 18 Dec 2025 11:51:53 +0000
Message-ID: <878qf057om.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: 79809
Cc: 79809 <at> debbugs.gnu.org, emacs@HIDDEN, dgutov@HIDDEN
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 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN>
>> Date: Wed, 17 Dec 2025 19:56:12 +0000
>> Cc: Dmitry Gutov <dgutov@HIDDEN>, 79809 <at> debbugs.gnu.org,=20
>> 	Andreas Kurth <emacs@HIDDEN>
>>=20
>> Ok, then feel free to add that as a fallback, else I will eventually.
>
> Thanks.  I can propose the code patch, but I will have difficulty
> testing it as part of Eglot, because I don't have any LSP server I
> could use set up.  Would it be okay to suggest a patch and ask you or
> someone else to test it in Eglot?

If it's as trivial as you said, you've already proposed it and I will
test it myself.  I'm not particularly in love with the use of
"-internal" functions though, but it's not a deal-breaker.

I think installing a single LSP server for any language is a low-cost
investment any Emacs maintainer can make for high returns in engaging
with simple Eglot issues, and could save time vs reading the source.
There are hundreds to choose from and many don't need an associated
language toolchain.  I recommend clangd for C/C++ or 'pip install ty'
for python.  If the concern is licensing, I even have a GPL-3 dummy LSP
server python implementation with no dependencies at all.

In fact, eventually I think it will make sense to add this or something
like this to test/lisp/progmodes/eglot-resources.  Unfortunately Elisp
not having easy getline-style reads from stdin (please do correct me)
doesn't make it a good candidate for writing a toy server, else it would
be very easy to write one with jsonrpc.el.

Jo=C3=A3o




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 11:09:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 06:09:33 2025
Received: from localhost ([127.0.0.1]:50716 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vWBsz-00014S-3q
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 06:09:33 -0500
Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:51459)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vWBsv-00014B-Kw
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 06:09:30 -0500
Received: by mail-wr1-x42e.google.com with SMTP id
 ffacd0b85a97d-42e33956e76so196180f8f.3
 for <79809 <at> debbugs.gnu.org>; Thu, 18 Dec 2025 03:09:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1766056163; x=1766660963; darn=debbugs.gnu.org;
 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=vxehTK+fKGmMn2FMso+kcGQeIDxkIYpYNsDo1J+Vzj0=;
 b=cktD0IpGss8vVhQHWeQRtdBjdbSeLiP1J6jQkALLbbaG5x4oGvezu7LLrquNSFp3RK
 MIoxg74NKmorrodLrVXSoydIqU87bL8GkVFAW38tq0miitiXRYqLhhfSIS4CybsKcvaW
 EsOGSWizGGHMOLVhlEPJY8sL+0bWhZQlXKyDNqyW2EMiX1T4VZIQSJQ3KWaRr6cjqr2m
 GvwFcwcV4gWHoHg+Ouulz7rxkXkUKM3NBPJnX7Um1nsJZbTwOn7qJ4mcKvs4+8ADogRj
 xXbI3q0RZfQFoDNJ+5tFKxXjGFbKa3jowL/VqhD8fKrIZ4zpx+4J1kBIansOgR2PkPKa
 B1bQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1766056163; x=1766660963;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=vxehTK+fKGmMn2FMso+kcGQeIDxkIYpYNsDo1J+Vzj0=;
 b=PbzX/uuPsJqpCkoDnra0EiieuZJZWHjTwRhYORQIuQWDPDI2n/OMPu6PyUSJ9SkIy9
 AolNNjM2TYBNgWAOe42AWyPIQdqlfIvsoNXJIArG9ek7g2aVCxW3G1x+K+r8Xz/Vf0g6
 8/otNpx385KTT97Xcv1scZVKYR9FdaDDjTeDtm7jSWwCd3Cp5+G/fp9joEh87h+uRdw5
 NchiehnBODMKw00anjNro13m+wIJWBGAslyQMa6onGmHBH28WZ2UiIPKV3jxYoNDYT2T
 ZqVTDQr9DlGDGPQqUAf3/Lp5v4sfUU9velcMgEqFB4gNpPecOe2P52IY6fSeHyTnayeX
 XtRw==
X-Forwarded-Encrypted: i=1;
 AJvYcCU/lqg5PCdULGx4gjAPzwEnEkMcZjVItQl8Wx0Cr1fJmo24EecsiLO8N0oHQAox+X5VdJrbag==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yz69mV/W8FihY0fyk9QYn+uLtOWD1zYYiO0juBeNQKt+nx7iVuB
 VPRAMlVWhNTODm0ZNKBCZ/um9pBgXzeAlS2xvYKfuJGZZRJOJiN3W0BVQ4GEdw==
X-Gm-Gg: AY/fxX7U2tZlO5aBBH+aaZEfzbMVwBppyyNxweBZ9UkXrMadixY+79vj+aCvdP+QBp+
 nb0Gcdax4MZKlbuA22O0nwuuayZdmWMXKjDBmtxpW1RscOuqZUBbNlOpMPdXqR7hZ8vtU/KR0Pj
 Ahff+zx+x6bcT+2fdH4Vd8Bfldn3xfdcvjQYlGciHLsQgwNp8cM3SnbBS37ahO7Q1FnI89Li2w6
 s2PsjbuaO7M6yOulLzjcY/XoF7qt8jgP82yjb5jT1k7/8AP50DXYmEvwfME1ll75ZdadngYdyE+
 KXjubFI+SyIIiCUPe3FylhfitQ1lFKpD7+T0tJxaefzklQQuj8h2RtY2x+F4GSue6HblQr6zOEK
 /3evcEBZRm+hFUqYjDwkRgBopZz5jPJQKmb0g5mZb0CW2mNYrJ0WKLXE4e6TNCCvywwHptDcoOP
 vHIR83ZqXwxBrBDLyYCTD7jBX+jw==
X-Google-Smtp-Source: AGHT+IEmA/BwUGE+TQv+chFICEiJPXwSTGMfW7jFYJZbzkhc1JvvvTTVxb+xxkJS86hB3Jzdl+j6uw==
X-Received: by 2002:a05:6000:2481:b0:42f:f627:3a8c with SMTP id
 ffacd0b85a97d-42ff6273cbfmr16882875f8f.7.1766056162780; 
 Thu, 18 Dec 2025 03:09:22 -0800 (PST)
Received: from krug (87-196-72-85.net.novis.pt. [87.196.72.85])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-43244940148sm4525275f8f.15.2025.12.18.03.09.21
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 18 Dec 2025 03:09:22 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Andreas Kurth <emacs@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <87bjjx46c6.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN>
 <CALDnm50B6rcDKbv+2-EPH9M0pzv8nY2fOOm+QpMLzh+5VsSXrA@HIDDEN>
 <87bjjx46c6.fsf@HIDDEN>
Date: Thu, 18 Dec 2025 11:11:00 +0000
Message-ID: <87cy4c59kr.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: 79809
Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
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 (-)

Andreas Kurth <emacs@HIDDEN> writes:

>> Can you set that variable back to t and try again with the latest changes
>> I pushed?  It should be faster than those 10 seconds, but not sure how
>> much.
>
> Not really, unfortunately:
>
> [jsonrpc] e[13:48:20.715] <-- client/registerCapability[9]
> {"jsonrpc":"2.0","id":"9","method":"client/registerCapability","params":{=
"registrations":[{"id":"e6f3e28c-5f8a-404b-b1a1-b901350dbb5d","method":"wor=
kspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern"=
:"**/*.java"},{"globPattern":"**/.project"},{"globPattern":"**/.classpath"}=
,{"globPattern":"**/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globP=
attern":"**/*.gradle"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**=
/gradle.properties"},{"globPattern":"**/pom.xml"},{"globPattern":"/home/ak/=
eclipse-workspace/idapi/api/target/generated-sources/annotations/**"},{"glo=
bPattern":"/home/ak/eclipse-workspace/idapi/service/target/generated-source=
s/annotations/**"},{"globPattern":"/home/ak/eclipse-workspace/idapi/service=
/target/generated-test-sources/test-annotations/**"},{"globPattern":"/home/=
ak/eclipse-workspace/idapi/api/target/generated-test-sources/test-annotatio=
ns/**"},{"globPattern":{"baseUri":"file:/home/ak/.local/share/lsp/jdtls/","=
pattern":"eclipse-formatting.xml"}},{"globPattern":{"baseUri":"file:/home/a=
k/eclipse-workspace/idapi/","pattern":"api"},"kind":4},{"globPattern":{"bas=
eUri":"file:/home/ak/eclipse-workspace/","pattern":"idapi"},"kind":4},{"glo=
bPattern":{"baseUri":"file:/home/ak/eclipse-workspace/idapi/","pattern":"se=
rvice"},"kind":4}]}}]}}
> [jsonrpc] e[13:48:30.707] --> client/registerCapability[9] {"jsonrpc":"2.=
0","id":"9","result":null}

I don't have the Eclipse server and I don't plan on installing it, but
inside one of the out-of-root directories watched by the `ty` LSP server
for a project of mine, I placed a dummy subdirectory with 781
directories (4 levels deep, 5 directories per level) and around 130k
files.

Before the optimization using 'find -type d' it takes 25 seconds to
respond to the workspace/didChangeWatchedFiles request.

    [jsonrpc] e[10:47:25.171] <-- client/registerCapability[1] {"jsonrpc":"=
2.0","id":1,"method":"client/registerCapability","params":{"registrations":=
[{"id":"ty/workspace/didChangeWatchedFiles","method":"workspace/didChangeWa=
tchedFiles","registerOptions":{"watchers":[{"globPattern":{"baseUri":"file:=
///home/joao/.virtualenvs/supernew/lib/python3.13/site-packages","pattern":=
"**"},"kind":7},{"globPattern":{"baseUri":"file:///home/joao/.virtualenvs/s=
upernew/lib64/python3.13/site-packages","pattern":"**"},"kind":7},{"globPat=
tern":{"baseUri":"file:///home/joao/Source/Python/rassumfrassum","pattern":=
"**"},"kind":7}]}}]}}
    [jsonrpc] e[10:47:50.002] --> client/registerCapability[1] {"jsonrpc":"=
2.0","id":1,"result":null}

Afterwards it takes less than a second

    [jsonrpc] e[10:49:07.359] <-- client/registerCapability[1] {"jsonrpc":"=
2.0","id":1,"method":"client/registerCapability","params":{"registrations":=
[{"id":"ty/workspace/didChangeWatchedFiles","method":"workspace/didChangeWa=
tchedFiles","registerOptions":{"watchers":[{"globPattern":{"baseUri":"file:=
///home/joao/.virtualenvs/supernew/lib/python3.13/site-packages","pattern":=
"**"},"kind":7},{"globPattern":{"baseUri":"file:///home/joao/.virtualenvs/s=
upernew/lib64/python3.13/site-packages","pattern":"**"},"kind":7},{"globPat=
tern":{"baseUri":"file:///home/joao/Source/Python/rassumfrassum","pattern":=
"**"},"kind":7}]}}]}}
    [jsonrpc] e[10:49:08.162] --> client/registerCapability[1] {"jsonrpc":"=
2.0","id":1,"result":null}

So either you're not really using the optimization of this commit=20

    commit f0912d5cb06961395cba4637d2afd5fe92774731
    Author: Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN>
    Date:   Wed Dec 17 12:04:24 2025 +0000
=20=20=20=20=20
        Eglot: speed up file watching outside project (bug#79809)

because you forgot to load the new eglot.el or something, or something
very fishy is going on.  You can't be in a 'find'-less system otherwise
it would have been very fast to fail and you would have seen the "Can't
list directories" warnings.  And we know the slowness doesn't come from
the in-root listing because you confirmed it's much much faster when you
set eglot-watch-files-outside-project-root to nil.

So I'd double-check if you really are running the latest.  Else, your
'find' program may be abnormally slow or those directories are in a
very slow network mount, or sometihng...

Try to execute

   time find ~/eclipse-workspace -type d

In a shell and report the results.

Jo=C3=A3o




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 06:43:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 01:43:31 2025
Received: from localhost ([127.0.0.1]:49031 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vW7jW-0002za-G6
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 01:43:30 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:54572)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vW7jT-0002zC-Bf
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 01:43:28 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vW7jL-0005m5-Fd; Thu, 18 Dec 2025 01:43:21 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=HlewqGs5yZfmPLIx067g2j8z0gRXg0G53kaTnykVhSo=; b=gfkwyvFAqyby
 ifdAk4mo0HcDLHSnID3XWncMw0Lxvw6q1EBwFVLsB7QCy9u0YkfEeAVEFH9CFYo/INSIj4gEhz6J2
 SlAxmiDpApr0WLOWW9WH54FYexGkqfAT9Xqe7p1tWJzMT807EUzEHayAiiceXCBX7itl42voY+zG/
 5jMsM2EDq8iQm8oIIAd5wkHorhq2HDizBg5OVdwHMFgX2t/B+A9ovQPs4Uqg7Ck3Ty47xkgtYeHls
 iMv5s+KjlSg8a9/NRI2h9SCBtAawYliwQNwtM93wvWCfhNvUkprQAF9eZJ+V17FomjtmsdH2yxqdo
 rGIlXy+BloYotiV+CKBU5Q==;
Date: Thu, 18 Dec 2025 08:42:53 +0200
Message-Id: <86ldj02suq.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <19b76fae-5bf8-4e20-bcf5-739b68fd8d13@HIDDEN> (message from
 Dmitry Gutov on Thu, 18 Dec 2025 02:01:53 +0200)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN>
 <19b76fae-5bf8-4e20-bcf5-739b68fd8d13@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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: -3.3 (---)

> Date: Thu, 18 Dec 2025 02:01:53 +0200
> From: Dmitry Gutov <dgutov@HIDDEN>
> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
> 
> On 17/12/2025 23:47, Dmitry Gutov wrote:
> > Indeed, thanks. I've tested it out on a Ubuntu 16.04 VM and I'm seeing 
> > the same error.
> 
> I've found the version which "fixed" it, and the specific change - which 
> is to add a "." pathspec at the beginning, if all provided pathspecs are 
> negative: https://github.com/git/git/commit/859b7f1d
> 
> A fuller story is in the commit message here too: 
> https://www.spinics.net/lists/git/msg440022.html
> 
> So it seems easy enough to restore compatibility by prepending that "." 
> pathspec ourselves. Done that now in 821c0d36dfa, please retest.

Thanks.  Almost there, it seems:

  Test project-vc-supports-project-in-different-dir backtrace:
    signal(ert-test-failed (((should (equal '(".dir-locals.el" "foo") (m
    ert-fail(((should (equal '(".dir-locals.el" "foo") (mapcar #'file-na
    (if (unwind-protect (setq value-118 (apply fn-116 args-117)) (setq f
    (let (form-description-120) (if (unwind-protect (setq value-118 (app
    (let ((value-118 'ert-form-evaluation-aborted-119)) (let (form-descr
    (let* ((fn-116 #'equal) (args-117 (condition-case err (list '(".dir-
    (let* ((dir (let* ((testfile (and t "d:/gnu/git/emacs/trunk/test/lis
    #f(lambda () [cl-struct-project-tests--trivial-tags t] (let* ((fn-96
    #f(compiled-function () #<bytecode -0x59e4eb3d1514189>)()
    handler-bind-1(#f(compiled-function () #<bytecode -0x59e4eb3d1514189
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name project-vc-supports-project-in-differ
    ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
    ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
    ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
    ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
    eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
    command-line-1(("-L" ";." "-l" "ert" "--eval" "(setq treesit-extra-l
    command-line()
    normal-top-level()
  Test project-vc-supports-project-in-different-dir condition:
      (ert-test-failed
       ((should (equal '(".dir-locals.el" "foo") (mapcar ... ...))) :form
	(equal (".dir-locals.el" "foo") (".dir-locals.el" "etc" "foo"))
	:value nil :explanation
	(proper-lists-of-different-length 2 3 (".dir-locals.el" "foo")
					  (".dir-locals.el" "etc" "foo")
					  first-mismatch-at 1)))

Looks like "etc" is not filtered as we expect?  If I examine the
output of the command

   git --no-pager ls-files -z -c --exclude-standard -o -- . ':(exclude,glob,top)
**/etc'

(which is what I understand your change did) I see etc/* files in its
output.  And this is no longer specific to my old version of Git,
because I see the same on a GNU/Linux system with Git 2.34.1.




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 06:19:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 01:19:43 2025
Received: from localhost ([127.0.0.1]:48891 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vW7MU-0001aP-Gk
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 01:19:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:36438)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vW7MQ-0001a5-Sy
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 01:19:40 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vW7ML-00073E-37; Thu, 18 Dec 2025 01:19:33 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=TZCMe7AWHEKHiSZmjgrsJ2wkK39ePm/Y2lXXNLIJGVM=; b=KMi6xBTkQIkt
 kBVPWCAE88AKpIpM7/71Wc2jeNY8DXjWBPhPDCm+lKnaWhm0wCtpTam8Ov3UQJxyF3Ogh4AtUFv9t
 9ChoDD2KXWGpTwUTTag1y3DMLBHCEiSbi58A9+0O2Lplb1OIbHR9XBKNnZjZZHF+ZHnUOC86WxsEb
 KwlOzo2sMnGrmz+OZhhXq92fLgbIc7rF40tscb5VTUX5Wt1wh9KnKK3ImfWykFDYMkxMSmmaz5ppJ
 Z/BBrJZdC5pYVlwFiYK+uO1Z0WKbiseEZl3i09xXBhhfZ3nNdimeYXG5ICNEqmWymB8fNInnjiqLX
 GpFemO9ayvPejCfN1e8dPg==;
Date: Thu, 18 Dec 2025 08:19:28 +0200
Message-Id: <86qzss2txr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN> (message from
 Dmitry Gutov on Wed, 17 Dec 2025 23:47:07 +0200)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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: -3.3 (---)

> Date: Wed, 17 Dec 2025 23:47:07 +0200
> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
> From: Dmitry Gutov <dgutov@HIDDEN>
> 
> On 17/12/2025 16:22, Eli Zaretskii wrote:
> > I think the problem is indeed in insufficient support for 'exclude',
> > because if I type this command:
> > 
> >    git --no-pager ls-files -z -c --exclude-standard -o -- ':(exclude,glob,top)**/etc'
> > 
> > at the Git Bash prompt, I get the same error:
> > 
> >    fatal: There is nothing to exclude from by :(exclude) patterns.
> >    Perhaps you forgot to add either ':/' or '.' ?
> 
> Indeed, thanks. I've tested it out on a Ubuntu 16.04 VM and I'm seeing 
> the same error.
> 
> Importantly, the respective documentation for "pathspec" in 
> https://git-scm.com/docs/gitglossary/2.7.6 doesn't look different from 
> its latest version.

Yes, already did that exercise.

> The latest version of Git that I've managed to see in the wild is 2.17.1 
> on fencepost, which corresponds to Ubuntu 18.04.
> 
> Trisquel stable carries 2.25.1.
> 
> Would it make sense for you to upgrade?

Not easily and not soon, not on my Windows system.

> I'm tempted to issue a user-error for any version older than 2.17.1,
> provided the user has used the corresponding option that would take
> advantage of the pathspec excludes.

Is there no way of doing this with some fallback Git commands, if this
one fails?  E.g., can't we filter the files ourselves?  But if push
comes to shove, maybe use Find or even find-lisp.el functions to get
the list of files?  Anything is better than flatly failing and forcing
users to upgrade.




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 06:04:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 18 01:04:59 2025
Received: from localhost ([127.0.0.1]:48749 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vW78F-0000QH-8u
	for submit <at> debbugs.gnu.org; Thu, 18 Dec 2025 01:04:59 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:38744)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vW78B-0000Q0-OE
 for 79809 <at> debbugs.gnu.org; Thu, 18 Dec 2025 01:04:56 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vW785-00076G-NZ; Thu, 18 Dec 2025 01:04:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=2O0xC/QzY+d7JiRw9rTPDpJipYH3EQlySyPMwI5Vco0=; b=c1crabhG6wCGsiK3s0ET
 xg7Tp2R8R8cgEd09qkoqJz5yRaK/Ue9rIPKiI058qx4xtIdjU4RC94MYb9SmbtXt5h+1xuwhmTwla
 lZJzQqn3c/zTYv5TL3AZk9sYYzRaYoxVUZ/vuo0j0vDkU2PhCidhmKOTiHAv9iZFbKOfAbaUE2LUm
 68daRzRjA02Z6+Gtkt03alThlwLCi5beFU1tamNJ5s7rhhMBd2awPQwesuTgJjX2fBvTPBvLb8IJL
 Y4GGZ9Mrh3ladMj3wq9rxvBrLqj12K/ShNSDuJyXdT62Mv51H08CBjhpc6lFRM+1LIO0kJoobb3YT
 TracgVoi3nexeQ==;
Date: Thu, 18 Dec 2025 08:04:42 +0200
Message-Id: <86v7i42umd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
In-Reply-To: <CALDnm53c3hx4UDKwMgeXQN+tcnz+cZorc7YW3ecjA-t9gNSdXw@HIDDEN>
 (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Wed, 17 Dec 2025 19:56:12
 +0000)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
 <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
 <8634593qn1.fsf@HIDDEN>
 <CALDnm53c3hx4UDKwMgeXQN+tcnz+cZorc7YW3ecjA-t9gNSdXw@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, emacs@HIDDEN, dgutov@HIDDEN
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: -3.3 (---)

> From: João Távora <joaotavora@HIDDEN>
> Date: Wed, 17 Dec 2025 19:56:12 +0000
> Cc: Dmitry Gutov <dgutov@HIDDEN>, 79809 <at> debbugs.gnu.org, 
> 	Andreas Kurth <emacs@HIDDEN>
> 
> Ok, then feel free to add that as a fallback, else I will eventually.

Thanks.  I can propose the code patch, but I will have difficulty
testing it as part of Eglot, because I don't have any LSP server I
could use set up.  Would it be okay to suggest a patch and ask you or
someone else to test it in Eglot?




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 01:44:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 20:44:12 2025
Received: from localhost ([127.0.0.1]:47769 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vW33s-0003Ci-3q
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 20:44:12 -0500
Received: from forward501d.mail.yandex.net
 ([2a02:6b8:c41:1300:1:45:d181:d501]:52554)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vW33o-0003CG-3v
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 20:44:10 -0500
Received: from mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net
 [IPv6:2a02:6b8:c0c:11a5:0:640:79ad:0])
 by forward501d.mail.yandex.net (Yandex) with ESMTPS id 5409481962;
 Thu, 18 Dec 2025 04:44:01 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id whK5It2GDKo0-hwVwZRak; 
 Thu, 18 Dec 2025 04:44:00 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1766022240; bh=LUD+ruXbe+qk/Xa6SlMLz0BlKU06rXlxX4HpBd6SmVo=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=m0J3YLgXwduaOyrub59zwDxqDynDYFu0llq8JVJTcTn1oLI0Qwy/65TrpPYkGKxIC
 0dkP09cXlLWEu5aerKBkX8ktSgs0f3jAY/ADJ6vNB/0x07SADqsKvVt3fuhgRcqTnK
 4klaf5lWsYnMk5BrGNZdAhbE7ZSRWfxjE41HR/U0=
Authentication-Results: mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
 by mailfauth.phl.internal (Postfix) with ESMTP id 52D9EF40079;
 Wed, 17 Dec 2025 20:43:58 -0500 (EST)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-05.internal (MEProxy); Wed, 17 Dec 2025 20:43:58 -0500
X-ME-Sender: <xms:XlxDaYIMuw5xryonvfhwPC5yTZiiszOfGQaaAg4y8OJ4OW3QhAeHUg>
 <xme:XlxDafLf5_nPr6GPLujXsS-EfTg8HctMnjA1vJgoTG4XsRkUyHmuVlu987RkoYZsT
 0-elw2pz0rZz-cc0XMrpP9ZuzZE589YmF173lBEFDhNOpbJLFZgFA>
X-ME-Received: <xmr:XlxDadvT73cCLer6X74fGv1YMt8ICRNwKShv1iFbIGgNvv2wuHZTxZqQpxsfagAGOJaj>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeggeduhecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuhffvvehfjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeekffeuveejtdefgfeujeetveelueeltdefteeuiefggfekkefhveevgefftdehkeen
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuth
 hovhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudeffeefleelheehvddq
 vdelgeejjeejjeeiqdgughhuthhovheppeihrghnuggvgidrrhhusehfrghsthhmrghilh
 drtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht
 ohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgsh
 drghhnuhdrohhrghdprhgtphhtthhopehjohgrohhtrghvohhrrgesghhmrghilhdrtgho
 mhdprhgtphhtthhopegvmhgrtghssegrkhhurhhthhdruggv
X-ME-Proxy: <xmx:XlxDaUQEeJrxsDjvEsu44Pcv53Dik4HEOPRWbipRVK0UUm7T7Tlchg>
 <xmx:XlxDabMe4CxUkrz7rmz-c1pgu1UcBzZHVwBNgsXBKbz3AJJckDDCLw>
 <xmx:XlxDaRYynExuUV0BNXa7WWQIUlvX5A7pZi5Y_56p1WyskC2lh5ZtJQ>
 <xmx:XlxDadwqtLvigBzDstZrJs5sAU1PoWwQUpqkz5YSxgSi6VU_3LBCTA>
 <xmx:XlxDaULONDBr_mRDvogAuf6vMZ2x0_OyOHO8e4ZitPFqBSHvg2NleePs>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 17 Dec 2025 20:43:56 -0500 (EST)
Message-ID: <d97a2fdc-655c-4f6b-8c1c-b6c515b80e4d@HIDDEN>
Date: Thu, 18 Dec 2025 03:43:54 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
From: Dmitry Gutov <dgutov@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN>
 <19b76fae-5bf8-4e20-bcf5-739b68fd8d13@HIDDEN>
Content-Language: en-US
In-Reply-To: <19b76fae-5bf8-4e20-bcf5-739b68fd8d13@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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.7 (-)

On 18/12/2025 02:01, Dmitry Gutov wrote:
> So it seems easy enough to restore compatibility by prepending that "." 
> pathspec ourselves. Done that now in 821c0d36dfa, please retest.

... but for some reason it's incompatible with the (top) instruction in 
the negative pathspecs after it. So the file listing can come empty.

For example, this behaves wrong in a project subdirectory:

git ls-files -c "--exclude-standard" -o -- "." ":(exclude,glob,top)**/*.eld"

And correctly if I just remove the "." argument.

Unless somebody has better ideas, I intend to revert.




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 01:12:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 20:12:29 2025
Received: from localhost ([127.0.0.1]:47595 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vW2ZA-0001Th-Sw
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 20:12:29 -0500
Received: from forward502b.mail.yandex.net
 ([2a02:6b8:c02:900:1:45:d181:d502]:41002)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vW2Z7-0001TP-In
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 20:12:26 -0500
Received: from mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net
 [IPv6:2a02:6b8:c1c:405:0:640:8814:0])
 by forward502b.mail.yandex.net (Yandex) with ESMTPS id 725A482057;
 Thu, 18 Dec 2025 04:12:17 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id ECKRvT3GAmI0-kZUejGHQ; 
 Thu, 18 Dec 2025 04:12:16 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1766020337; bh=vc16toZS3dBUg/mcaOO3++G6AvOipORZf4E95gtwd34=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=k9y/9cWHlzuYDU2hI648kgsg475VirJsdscexA1BKT/U3EyRyWqSYdllfOIrllFjr
 XCOyP+2hcrbykPCjEBBARqFMDD857Pw1QbC7hDND8Gt0eFNgMQoGZkJKX10MtASrpo
 YpwfDuarR5VTCUwFvQcmkR0x/Kt5fN8b0I83x3+Y=
Authentication-Results: mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51])
 by mailfauth.phl.internal (Postfix) with ESMTP id 8F36BF40076;
 Wed, 17 Dec 2025 20:12:14 -0500 (EST)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-11.internal (MEProxy); Wed, 17 Dec 2025 20:12:14 -0500
X-ME-Sender: <xms:7lRDaSvWRlGfO7tacGuPDWi0XHh1nQVNsVYYKigpTyDXHKndPCZlFg>
 <xme:7lRDae7JCatkIH5kUxMYrpvXoCoAP799IIQ5nD0fSNZUBtCDIssYbCnrrFsieMOel
 XpvFBiXKZ-AjTRIPaS1wj2VF1lmkmLiEK0iAhtWRcG_BmvqtalyJY8>
X-ME-Received: <xmr:7lRDabLWfF4fQOEhX8VXL8TQccch_BRWPvIQ7Ks8eHd6DEASbNdfNgLqRwiZ0rHgPUmI>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeggedtlecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuhffvvehfjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeekffeuveejtdefgfeujeetveelueeltdefteeuiefggfekkefhveevgefftdehkeen
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuth
 hovhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudeffeefleelheehvddq
 vdelgeejjeejjeeiqdgughhuthhovheppeihrghnuggvgidrrhhusehfrghsthhmrghilh
 drtghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht
 ohepjhhorghothgrvhhorhgrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepjeelkedtle
 esuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvmhgrtghssegrkhhurhht
 hhdruggv
X-ME-Proxy: <xmx:7lRDaW7Z7ZQhVzrxilVG7Gf-LCebzuF0msZ4I6CrsMTSQ53Qm3lfMg>
 <xmx:7lRDaWzjZ1rH7KbtOUWLL-t1IqGJfqN1OzedfpUPmxmlTfqUwkGjwQ>
 <xmx:7lRDaSZesC6tqtEgnFIH5Gac6Shufe77KIDhInZhF410_NgbdYVk3w>
 <xmx:7lRDaQREiYI_rSWPZ6NFxJNRo7iUGQnAHAy4RYulEllFNgqkdnCREA>
 <xmx:7lRDaUxObHaCV2lY3jaYHLgpq5Bl9Dh5O85TGvQIklsq6FKS4DhznVgN>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 17 Dec 2025 20:12:12 -0500 (EST)
Message-ID: <cd6242e4-6624-4df1-b319-0a52152c4053@HIDDEN>
Date: Thu, 18 Dec 2025 03:12:11 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
From: Dmitry Gutov <dgutov@HIDDEN>
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <87pl8e5m4p.fsf@HIDDEN>
 <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN> <87h5tp5qo4.fsf@HIDDEN>
 <7363a8b4-224d-45f9-a608-8809fc9b0080@HIDDEN>
Content-Language: en-US
In-Reply-To: <7363a8b4-224d-45f9-a608-8809fc9b0080@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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.7 (-)

On 18/12/2025 02:55, Dmitry Gutov wrote:
> Or you could call project--files-in-directory directly with empty 
> IGNORES, reusing that implementation. This one is worth graduating to an 
> independent helper someday.

Ah sorry, not directly, of course. But it could become a shared helper 
with a type argument.




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 00:55:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 19:55:50 2025
Received: from localhost ([127.0.0.1]:47559 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vW2J3-0000fO-Uj
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 19:55:50 -0500
Received: from forward500d.mail.yandex.net ([178.154.239.208]:60258)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vW2J0-0000f4-1k
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 19:55:47 -0500
Received: from mail-nwsmtp-smtp-production-main-84.klg.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-84.klg.yp-c.yandex.net
 [IPv6:2a02:6b8:c42:26c5:0:640:cf7d:0])
 by forward500d.mail.yandex.net (Yandex) with ESMTPS id 2F1EB82C0C;
 Thu, 18 Dec 2025 03:55:38 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-84.klg.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id ZtJPTK3GsuQ0-rNOSCfyj; 
 Thu, 18 Dec 2025 03:55:37 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1766019337; bh=mgW8/RiNxBi27ei2mtCch/Dxjxepp2iSDjwVbj/SES0=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=vIF7tKjXfW23Ve94NddyzLjOFORciKJaFoh6WFIMlmGg7trxuUlvk74036Bqk4uV4
 PxtXLGhKy+EwLIMP0Zn1Pw5NPplDrNTTf2s9kXJwzQjGgNKmdE/kQKwIfp6P9b7+74
 liPDo8u+I7FYI7YNWZuzoytjjaWPd5eNPuHRnK4Y=
Authentication-Results: mail-nwsmtp-smtp-production-main-84.klg.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51])
 by mailfauth.phl.internal (Postfix) with ESMTP id C25E9F40092;
 Wed, 17 Dec 2025 19:55:35 -0500 (EST)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-11.internal (MEProxy); Wed, 17 Dec 2025 19:55:35 -0500
X-ME-Sender: <xms:B1FDaZar7NMObB59JDlNWHQwBSZN2k83SXFniuzlkSM7NutULefj6g>
 <xme:B1FDaX3KB9IZHmkOjndUiCoapzhRo9uZ10e7cddwIuB1vraZDVA0x4UY3NsVOAT5l
 HIRKa3LiybDBanMSaisKNK69ZGgZ739xtnKL25esxubRlbuK7uoaA>
X-ME-Received: <xmr:B1FDaZWN97L0zK07R6X24xYu1X2qwFVUgTBpHts8KTPnnOeRZSx30I57ySXPWpVcHHk->
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeggedtiecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeehgeeljedugeeuffdujedtueekleehudeihfelveekieefueeghfdtvedvgeeuleen
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuth
 hovhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudeffeefleelheehvddq
 vdelgeejjeejjeeiqdgughhuthhovheppeihrghnuggvgidrrhhusehfrghsthhmrghilh
 drtghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht
 ohepjhhorghothgrvhhorhgrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepjeelkedtle
 esuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvmhgrtghssegrkhhurhht
 hhdruggv
X-ME-Proxy: <xmx:B1FDaRWqwUAgbl4OHAhqKtKN1FyHij175Tgr0NgI7y76KrbwIXw8IQ>
 <xmx:B1FDaYfEAf3VB81WDGd3JK2UG39QcXPwccErA4vSd5yzs8wxy-jkFg>
 <xmx:B1FDaaV4V5lQYCJzpMVNAyZlc6khsja1Pz9Qgl-tmyUjjcD9qXq33w>
 <xmx:B1FDaRemkZygVzdrxbqJ2EJXxdqVJVFx7hQ3GR7kTLDVl5BW69oLVg>
 <xmx:B1FDaWMin_cKMvci2MSmam90PoGQgcQweqTawPcBTfMYEv2Ewr18fZ2F>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 17 Dec 2025 19:55:34 -0500 (EST)
Message-ID: <7363a8b4-224d-45f9-a608-8809fc9b0080@HIDDEN>
Date: Thu, 18 Dec 2025 02:55:32 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <87pl8e5m4p.fsf@HIDDEN>
 <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN> <87h5tp5qo4.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <87h5tp5qo4.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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 17/12/2025 12:49, João Távora wrote:
> Dmitry Gutov <dgutov@HIDDEN> writes:
> 
>> On 16/12/2025 20:15, João Távora wrote:
>>> Dmitry Gutov <dgutov@HIDDEN> writes:
>>>
>>
>> The reservation was about having to scan the whole project anyway, but
>> looks like (after re-reading the thread) the use case is about having
>> an external directory added, so it's okay.
>>
>>> but I did test this and found a sizeable improvement versus the naive
>>> (remove-if-not (lambda () (file-in-directory-p...))  (project-files...))
>>> strat, some 7x times when finding files in the src of the Emacs repo
>>> itself.  I don't understand what you mean by "smaller change", but if
>>> there's still some relatively low hanging fruit, I think it's good to
>>> grab it.
>>
>> That was the smaller change. It only affected listing files using Git,
>> and for directories outside the project we use 'find' anyway. So this
>> looks good, no need to even bump the 'project' dependency, I think.
> 
> I may be missing something, but I think we should bump it.

I'm just saying you don't have to - but you can, too.

It seems to me that the main scenario is when the added globPattern is 
for an external directory. For which neither the behavior nor 
performance had changed (in project-files).

For subdirs inside the project, the improvement is indeed there - if you 
have to issue a separate project-files call.

> My tests
> show it to be stricly better in speed and correctness.  In fact, the 7x
> number previously reported was off, see attached
> benchmark-project-files-subdir.el and see if you can reproduce . An LLM
> wrote that bench, with some coaching, but it looks alright.

Your bench reproduces right away, with two caveats:

- The slowest part of the "naive filter" solution is file-in-directory-p 
which IIUC performs IO. If you replace it with normalizing the SUBDIR 
value (to either abbreviate or not) matching the files, and then use 
string-prefix-p, like this:

   (setq subdir (file-name-as-directory subdir))
   (setq time-naive
         (benchmark-run 3
           (setq files-naive
                (cl-remove-if-not (lambda (f) (string-prefix-p subdir f))
                                   (project-files project)))))

the difference becomes trivial in most cases.

- In the regular scenario you probably already have the whole-project 
list of files from another watch being set up. Just filtering it using 
string-prefix-p will be significantly faster in most cases than calling 
the subprocess again.

The list of globPattern-s in our example begins from unanchored entries 
after all.

>      ✓ Both methods return the same 1607 files
>       
>      Results (3 iterations each):
>      Method 1 (naive filter):     9.697 seconds (0.519 GCs)
>      Method 2 (subdirs argument): 0.031 seconds (0.000 GCs)
>       
>      Speedup: 314.91x

I saw ~80x speedup, but see above. After switching to string-prefix-p, 
but still doing the project-files call, it got like this:

Results (3 iterations each):
Method 1 (naive filter):     0.153 seconds (0.076 GCs)
Method 2 (subdirs argument): 0.117 seconds (0.051 GCs)

>> (If we don't really need it to be affected by Git/Hg/etc's ignores
>> configuration, the caller might as well use custom code for this
>> case.)
> 
> Perhaps.  Indeed Eglot's file-watching case is not necessarily concerned
> with ignores.  But it is _extremely_ concerned with speed.  I still
> think a project-directories should exist.  IOW I could make a
> eglot--list-directories based on 'find -d`, but even without ignores I'm
> worried I'll bump into a lot of stuff already handled in project.el.
> Does 'find' more or less always exist?

Except for MS-Windows, I suppose.

And macOS tends to have a slower 'find', but we just let them deal with 
that.

> Does project.el have a fallback?

It does not.

> Any other typical gotchas?

We've had some tweaks in project--files-in-directory over the years, but 
looks like they've had to do with ignores one way or another.

Maybe consider "Permission denied" messages, like in commit 7dedba1cc0205.

Or you could call project--files-in-directory directly with empty 
IGNORES, reusing that implementation. This one is worth graduating to an 
independent helper someday.




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Dec 2025 00:11:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 19:11:24 2025
Received: from localhost ([127.0.0.1]:47360 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vW1c3-0006lO-TL
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 19:11:24 -0500
Received: from forward500b.mail.yandex.net ([178.154.239.144]:48422)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vW1c0-0006l4-7g
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 19:11:21 -0500
Received: from mail-nwsmtp-smtp-production-main-89.sas.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-89.sas.yp-c.yandex.net
 [IPv6:2a02:6b8:c08:ec27:0:640:5ac1:0])
 by forward500b.mail.yandex.net (Yandex) with ESMTPS id 21C44C1859
 for <79809 <at> debbugs.gnu.org>; Thu, 18 Dec 2025 03:11:13 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-89.sas.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id ABJvK13GOeA0-Zd3vmrGH; 
 Thu, 18 Dec 2025 03:11:12 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1766016672; bh=cVQCmNOeaqHwUxCPC9mStXmsbIbMexSDlVW74QCEJA8=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=IaA5JtC2XuSNDZNie5LxZ5hJPYHuBgmbTlR/7v1l2i5hUQS1cTI2u670USjVoSKNW
 Ti4ydyJWWkiQTgo4eZIjxvqPxmKtGZn+Bdk0uY+AWcDYvdU74bHi9kW86/xbrs7uME
 NEPa4XQOTQRrW87BYvqpbh0MhSJguAd3kFgY0dfw=
Authentication-Results: mail-nwsmtp-smtp-production-main-89.sas.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46])
 by mailfauth.phl.internal (Postfix) with ESMTP id 55ED6F4006E;
 Wed, 17 Dec 2025 19:01:58 -0500 (EST)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-06.internal (MEProxy); Wed, 17 Dec 2025 19:01:58 -0500
X-ME-Sender: <xms:dkRDaYQ5wNl5YE1dDcQ_iu28pkGrOJIUjwmsI6NErYUNaB9Uuqng5A>
 <xme:dkRDaczVY0s-5RWAVpfAmnTR70PhlMhmEauaZ_zf-yxQ6E0sclJhJBBVq-QUCCbN7
 h8eT6401XT6-oO25soSoNjSvUUoqN2mCjrtpNVR4oPMnY94VyOfarI>
X-ME-Received: <xmr:dkRDaa1dkTk0w9aGSWzyi9roKilzAeQ6nk1ow2b1smUG3iHwgPyfaeWKYxZZQ2yLgnR4>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeelhecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuhffvvehfjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeejjeegtdfgieeifeevteffjeefgfefteehudeuheehveffjedufeeuteehgeeggeen
 ucffohhmrghinhepghhithhhuhgsrdgtohhmpdhsphhinhhitghsrdhnvghtnecuvehluh
 hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughguhhtohhvodhm
 vghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqddufeeffeelleehhedvqddvleegje
 ejjeejiedqughguhhtohhvpeephigrnhguvgigrdhruhesfhgrshhtmhgrihhlrdgtohhm
 pdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlh
 hiiiesghhnuhdrohhrghdprhgtphhtthhopeejleektdelseguvggssghughhsrdhgnhhu
 rdhorhhgpdhrtghpthhtohepjhhorghothgrvhhorhgrsehgmhgrihhlrdgtohhmpdhrtg
 hpthhtohepvghmrggtshesrghkuhhrthhhrdguvg
X-ME-Proxy: <xmx:dkRDaa5eqlcrupToDgQ7C1TmxRAvR28MPups6qDGzpw-9G3EqE5cIg>
 <xmx:dkRDadXZQz46HA8auMR_Aqb2xMBPI-1nBl1E_yZYuCkJuINj8DrYdw>
 <xmx:dkRDaZBri01Hgr5wfEbuDlx0q8dTvkj7TIwIXU2iUjJ35NS3eJuVng>
 <xmx:dkRDac4_q9fgwxOM1dqjdtQwyJeb_QMr8T1GzZlmUeQC7wf__EQV-A>
 <xmx:dkRDaUwlUkAtafcvHOiO-v_nBJp1emcm5FNb2wV4-GIAfTIJvjJUl93o>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 17 Dec 2025 19:01:56 -0500 (EST)
Message-ID: <19b76fae-5bf8-4e20-bcf5-739b68fd8d13@HIDDEN>
Date: Thu, 18 Dec 2025 02:01:53 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
From: Dmitry Gutov <dgutov@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
 <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN>
Content-Language: en-US
In-Reply-To: <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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 17/12/2025 23:47, Dmitry Gutov wrote:
> Indeed, thanks. I've tested it out on a Ubuntu 16.04 VM and I'm seeing 
> the same error.

I've found the version which "fixed" it, and the specific change - which 
is to add a "." pathspec at the beginning, if all provided pathspecs are 
negative: https://github.com/git/git/commit/859b7f1d

A fuller story is in the commit message here too: 
https://www.spinics.net/lists/git/msg440022.html

So it seems easy enough to restore compatibility by prepending that "." 
pathspec ourselves. Done that now in 821c0d36dfa, please retest.




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 21:47:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 16:47:24 2025
Received: from localhost ([127.0.0.1]:46716 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVzMi-0007dA-0B
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 16:47:24 -0500
Received: from forward500b.mail.yandex.net ([178.154.239.144]:51182)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vVzMe-0007cc-Pk
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 16:47:21 -0500
Received: from mail-nwsmtp-smtp-production-main-67.sas.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-67.sas.yp-c.yandex.net
 [IPv6:2a02:6b8:c23:143b:0:640:90e9:0])
 by forward500b.mail.yandex.net (Yandex) with ESMTPS id BCE92C1829;
 Thu, 18 Dec 2025 00:47:13 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-67.sas.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id Ald3aC2GPmI0-RnXUM6VV; 
 Thu, 18 Dec 2025 00:47:13 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1766008033; bh=eVO6qmvkDcM4r+5wM2TU+0VlzbjgeIzE+Feztcl1hXo=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=Xx3nIRWAeHXUDCJzLOXU89em7vQn8O4Rc+QmA54CKSP/9dER4ZAmjPv1HaWWxDLzh
 S8/A0jt0sXlA4ujyCPFsoqpip27lx7bgqM5OEiY4oTyzg4YB6Y5AI2Zu3h+ZVbg97e
 F3P6xmsTWaMEEaYwOemhNOY7TvMEiRl3HQ2Ie+qg=
Authentication-Results: mail-nwsmtp-smtp-production-main-67.sas.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51])
 by mailfauth.phl.internal (Postfix) with ESMTP id B7F2BF4007E;
 Wed, 17 Dec 2025 16:47:10 -0500 (EST)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-11.internal (MEProxy); Wed, 17 Dec 2025 16:47:10 -0500
X-ME-Sender: <xms:3iRDab7NAjRvT-Sx20oNb_4e9g2BQnghG23rSiDfeu4g4p7cOOKWvQ>
 <xme:3iRDaX4OYXyxfW1vptYyJBTwOY0U9EISurCx9oeEYBfLke-fU31Mr5mmVlWaaokq8
 9PQOrcbzYQibg5JMdqJ0iSZ5ZQN-Z9JsUmy6X22sEMNJ_uz0QNbWg>
X-ME-Received: <xmr:3iRDaXdtajY5PJqgvVbn3zGMhJSfBhYPEdhXcFAH1Jz_SViR-Rx4kkyqGATzYAV_GT84>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdegfeeikecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeehleelffduieejteevjeevleevteekteetfeeivdeiveehfffgudfgvdejgfehveen
 ucffohhmrghinhepghhithdqshgtmhdrtghomhenucevlhhushhtvghrufhiiigvpedtne
 curfgrrhgrmhepmhgrihhlfhhrohhmpegughhuthhovhdomhgvshhmthhprghuthhhphgv
 rhhsohhnrghlihhthidqudeffeefleelheehvddqvdelgeejjeejjeeiqdgughhuthhovh
 eppeihrghnuggvgidrrhhusehfrghsthhmrghilhdrtghomhdpnhgspghrtghpthhtohep
 gedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpd
 hrtghpthhtohepjeelkedtleesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthho
 pehjohgrohhtrghvohhrrgesghhmrghilhdrtghomhdprhgtphhtthhopegvmhgrtghsse
 grkhhurhhthhdruggv
X-ME-Proxy: <xmx:3iRDabCTfb44v6rDacMD7mYQjeWHO0mV9pOFKrdL8oXHcO6wsmEvnA>
 <xmx:3iRDaa83qWHk_PiA-inORJdUFScfuME_cYdtEWUS0u0fq5rKLK6KUQ>
 <xmx:3iRDaWI9_gJrJOYeIC-kWNbz0HpwGGBE6at_Da8y5Y5UqjTn0-5hnQ>
 <xmx:3iRDaThCqcsyczuZFqnj3H2SrUjpNERkXlHqFA_RnaiKWIvlS1EuBg>
 <xmx:3iRDaW5oXH_nIF_kTxI6C_DM-3z4XdoIqD3glO--PqNvoTnk15WOxBw8>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 17 Dec 2025 16:47:09 -0500 (EST)
Message-ID: <9332c52e-3635-4293-8f2f-1c84c79e0657@HIDDEN>
Date: Wed, 17 Dec 2025 23:47:07 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> <86o6nx4298.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <86o6nx4298.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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 17/12/2025 16:22, Eli Zaretskii wrote:
> I think the problem is indeed in insufficient support for 'exclude',
> because if I type this command:
> 
>    git --no-pager ls-files -z -c --exclude-standard -o -- ':(exclude,glob,top)**/etc'
> 
> at the Git Bash prompt, I get the same error:
> 
>    fatal: There is nothing to exclude from by :(exclude) patterns.
>    Perhaps you forgot to add either ':/' or '.' ?

Indeed, thanks. I've tested it out on a Ubuntu 16.04 VM and I'm seeing 
the same error.

Importantly, the respective documentation for "pathspec" in 
https://git-scm.com/docs/gitglossary/2.7.6 doesn't look different from 
its latest version.

The latest version of Git that I've managed to see in the wild is 2.17.1 
on fencepost, which corresponds to Ubuntu 18.04.

Trisquel stable carries 2.25.1.

Would it make sense for you to upgrade? I'm tempted to issue a 
user-error for any version older than 2.17.1, provided the user has used 
the corresponding option that would take advantage of the pathspec excludes.




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 19:56:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 14:56:32 2025
Received: from localhost ([127.0.0.1]:46088 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVxdP-0001KQ-BQ
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 14:56:32 -0500
Received: from mail-oo1-xc2e.google.com ([2607:f8b0:4864:20::c2e]:47348)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vVxdN-0001KC-Ig
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 14:56:30 -0500
Received: by mail-oo1-xc2e.google.com with SMTP id
 006d021491bc7-65cb1d8aa3eso373905eaf.2
 for <79809 <at> debbugs.gnu.org>; Wed, 17 Dec 2025 11:56:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1766001384; x=1766606184; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=WEawTNkvGv4EclyU2YZdHRiPAEPjE0UqjFRPu+uafXU=;
 b=N+rc7ApH/S0FLb3TL1Fs2FE6rBs2GH8IgbNlp65Tmz+m9BjuwpBrKoUWb8NnC1+7lx
 DNUeSvZsSwWT7VXc1sxcVA89ctu7N0O1V3JotF40j/gQozPOXVAgurKZjuMgeCj8JWBD
 ztTvO+N6hPnYbOpIRP2b9cLK5MV8NbPGLEm4rccDuaNZObjz+TDMzZZs/SpgvXvs2Y3w
 5vtLgrR01xXB6NwRJ81Tvp3TQfLE5qhqvd6WXH94XGLSHUmuc9poKeMh/a11/GF1YQcp
 Mng+sYHEvahd/KQ0HAZEr3D6lPvTquSn7NlN/trdAcgeYH0tvJTgny3Fponrs0n1rvNQ
 HYrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1766001384; x=1766606184;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=WEawTNkvGv4EclyU2YZdHRiPAEPjE0UqjFRPu+uafXU=;
 b=muVQ8+pcAhAaM9l8AoWc3gEgCCS/Qn/6s+rtVUlP6CBdvj1Qj6kS2l/qzi6ApUNWAx
 Vf/0V/gjuDgi2sxDnoph7OO/p7+QU9gH7bVb2wN34sPP6q+PbKuNcN8Mh7F0Kpm6Afoj
 OgJlaP0Z4HlcHcHSEh2oR8MQRuDQaNQ49Kwy7R5SLLpwAfvWngLIaPHruqV7efyxSjSp
 U/q4fmUqzoL3nfdL42w0f1OeTfhrkCf9ck5PUtf2W6W+PDsbfYnJpo78h1E7TbQ+pOVK
 PBR2YDOpM7X26f8NM90sgw0gVPrV7EP2Z0kWz5fctXg7fVvUmSzHfCDbiEXvZ2qno+EZ
 SPRQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCUu9BcmfPkrlhyJpNhc3T/NvoK2Z7ic5CTYU5P4EQ3oNn9x6cqtXY7/5V+fpwO04Sp39DHsfg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxXnqnNEKbgcNZelsaQyITxaEg8R8lY/PshLdwc2p/l9GdOIaZy
 teoTLZXAObeEymFoGyzj8VYzoqr5xOoTrPVW4RSlQ3pELEi3kf56NOfv36a5XZ4RlSsZ4FopQG9
 saLJIKenwGfkBG4jK0/SYkQHb4qXFwGY=
X-Gm-Gg: AY/fxX7eMABxZKRE8kmwvLAYeiemhGruJe4RoMUahpu+vtfom3s/DeC61iXOQ276ZlQ
 0ycM0Ey1qz3XxDwdSN/cIosp7AQk1WoWKFHJOOsF8bycS7HaE6v6808w7uBtK3acB73BhswO3rc
 nJWUrNZmOcgAnhcAq9cfsKIfEf27fsRntoPEdVTP7j/6Jj2zLbPWsF4oE4stb8fN3T9/lPgRsqn
 BdJw13Hu55eTfpemwJThoz8BgwXFDGwnxZJewBrbBUCs/hVaJLcFHvOtfdklgF/BV6mTg==
X-Google-Smtp-Source: AGHT+IGF4Ozj60FM4GRyJ4c/NwtQBxbAMJWor9MukJcocJ9JlMBx8G9GC4SbhF8N0cQkdpFqH/c0z5Bo1vKkubOkj6w=
X-Received: by 2002:a4a:b24c:0:b0:65c:cfc0:c66c with SMTP id
 006d021491bc7-65ccfc0c6cemr1149404eaf.10.1766001383650; Wed, 17 Dec 2025
 11:56:23 -0800 (PST)
MIME-Version: 1.0
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
 <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
 <8634593qn1.fsf@HIDDEN>
In-Reply-To: <8634593qn1.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Wed, 17 Dec 2025 19:56:12 +0000
X-Gm-Features: AQt7F2rPats3KflzXDIQYIN-O4skRBlagDQguGJyI25AngwWJMP4eQPCQL9wNbY
Message-ID: <CALDnm53c3hx4UDKwMgeXQN+tcnz+cZorc7YW3ecjA-t9gNSdXw@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000253d6706462b3de7"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>,
 Dmitry Gutov <dgutov@HIDDEN>
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 (-)

--000000000000253d6706462b3de7
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Ok, then feel free to add that as a fallback, else I will eventually.

Jo=C3=A3o T=C3=A1vora

On Wed, Dec 17, 2025, 18:33 Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN>
> > Date: Wed, 17 Dec 2025 17:59:46 +0000
> > Cc: Dmitry Gutov <dgutov@HIDDEN>, 79809 <at> debbugs.gnu.org,
> >       Andreas Kurth <emacs@HIDDEN>
> >
> >    (call-process find-program nil t nil dir "-type" "d" "-print0")
> >
> >  But this requires Find to be installed, and it has to be GNU Find.
> >  What about systems where there's no Find at all, or it doesn't support
> >  the -print0 option?  At the very least, let's have a fallback that
> >  uses find-lisp or even directory-files-recursively, instead of
> >  signaling an error.
> >
> > Why bother? The error is caught, no?  The overall situation has
> improved: yesterday you had no out-of-root
> > file watching LSP support, today you do on GNU systems. Supporting GNU
> is a priority right?
>
> Supporting GNU is a priority, but supporting the other systems is also
> important when it's feasible.  Emacs strives to present as much an
> OS-independent environment as reasonably practical.
>
> > Anyway we can fallback to slower methods if find isn't available, but
> I'm not keen on adding much more
> > complexity to Eglot for basic OS things that should live in a supportin=
g
> library (desirably a :core ELPA
> > one...).
>
> I don't really see why that would add any tangible complexity, given
> that what you want is a list of directories.  Finding all the
> subdirectories of a directory DIR boils down to
>
>   (find-lisp-find-files-internal DIR
>                                  'find-lisp-file-predicate-is-directory
>                                  'find-lisp-default-directory-predicate)
>
> As a nice bonus, the directories are returned as absolute file names,
> so the expand-file-name call can be avoided in this case.
>

--000000000000253d6706462b3de7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>Ok, then feel free to add that as a fallback, else I=
 will eventually.</div><div><br></div><div data-smartmail=3D"gmail_signatur=
e">Jo=C3=A3o T=C3=A1vora</div></div><br><div class=3D"gmail_quote gmail_quo=
te_container"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Dec 17, 2025, 1=
8:33 Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt;=
 wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; Fro=
m: Jo=C3=A3o T=C3=A1vora &lt;<a href=3D"mailto:joaotavora@HIDDEN" target=
=3D"_blank" rel=3D"noreferrer">joaotavora@HIDDEN</a>&gt;<br>
&gt; Date: Wed, 17 Dec 2025 17:59:46 +0000<br>
&gt; Cc: Dmitry Gutov &lt;<a href=3D"mailto:dgutov@HIDDEN" target=3D"_bl=
ank" rel=3D"noreferrer">dgutov@HIDDEN</a>&gt;, <a href=3D"mailto:79809@d=
ebbugs.gnu.org" target=3D"_blank" rel=3D"noreferrer">79809 <at> debbugs.gnu.org<=
/a>, <br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0Andreas Kurth &lt;<a href=3D"mailto:emacs@ak=
urth.de" target=3D"_blank" rel=3D"noreferrer">emacs@HIDDEN</a>&gt;<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 (call-process find-program nil t nil dir &quot;-type&quot=
; &quot;d&quot; &quot;-print0&quot;)<br>
&gt; <br>
&gt;=C2=A0 But this requires Find to be installed, and it has to be GNU Fin=
d.<br>
&gt;=C2=A0 What about systems where there&#39;s no Find at all, or it doesn=
&#39;t support<br>
&gt;=C2=A0 the -print0 option?=C2=A0 At the very least, let&#39;s have a fa=
llback that<br>
&gt;=C2=A0 uses find-lisp or even directory-files-recursively, instead of<b=
r>
&gt;=C2=A0 signaling an error.<br>
&gt; <br>
&gt; Why bother? The error is caught, no?=C2=A0 The overall situation has i=
mproved: yesterday you had no out-of-root<br>
&gt; file watching LSP support, today you do on GNU systems. Supporting GNU=
 is a priority right? <br>
<br>
Supporting GNU is a priority, but supporting the other systems is also<br>
important when it&#39;s feasible.=C2=A0 Emacs strives to present as much an=
<br>
OS-independent environment as reasonably practical.<br>
<br>
&gt; Anyway we can fallback to slower methods if find isn&#39;t available, =
but I&#39;m not keen on adding much more<br>
&gt; complexity to Eglot for basic OS things that should live in a supporti=
ng library (desirably a :core ELPA<br>
&gt; one...).<br>
<br>
I don&#39;t really see why that would add any tangible complexity, given<br=
>
that what you want is a list of directories.=C2=A0 Finding all the<br>
subdirectories of a directory DIR boils down to<br>
<br>
=C2=A0 (find-lisp-find-files-internal DIR<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&#39;find-lisp-file-predicate-=
is-directory<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&#39;find-lisp-default-directo=
ry-predicate)<br>
<br>
As a nice bonus, the directories are returned as absolute file names,<br>
so the expand-file-name call can be avoided in this case.<br>
</blockquote></div>

--000000000000253d6706462b3de7--




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 18:33:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 13:33:41 2025
Received: from localhost ([127.0.0.1]:45535 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVwLF-00058p-8c
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 13:33:41 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48314)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vVwLC-00058Y-8g
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 13:33:39 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vVwL6-0006Cb-8k; Wed, 17 Dec 2025 13:33:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=+/G1chUY8tQr0ccQG0eb0AxTcUQpeamVtIQazA3SWKk=; b=YJiOC+ECp3Vn+FtOp/py
 SHGadbQ96P3RxVTmVM5IsXtWjgPsoJnUi1ZmvwCxE/aeXFx+RXVjEQDYvgGmbR2bDF6UBSbHaUZR3
 GeFQK240ToS4QjcsxAxQROEVobRu79ypIA+OAHriP6r3oLMLDJwnG7Ei1gFdrU0jrN2X0T2iCmg+J
 EXqgzZo6tyGveLzSFi4m5CKHiY+bzykimvg/4AVRz5YCFUaLsNd90oM/OASLCqawU4okaioCBjzdY
 6H6wmrMmbnnEGu2kJZkVhny3uMjt1TYiHstrQdC0VhYMpd6CCDF5IwhbhVbhJW8eSREqO1wJg0Mkj
 ulSkU8zjvsGRvg==;
Date: Wed, 17 Dec 2025 20:33:06 +0200
Message-Id: <8634593qn1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
In-Reply-To: <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
 (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Wed, 17 Dec 2025 17:59:46
 +0000)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
 <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, emacs@HIDDEN, dgutov@HIDDEN
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: -3.3 (---)

> From: João Távora <joaotavora@HIDDEN>
> Date: Wed, 17 Dec 2025 17:59:46 +0000
> Cc: Dmitry Gutov <dgutov@HIDDEN>, 79809 <at> debbugs.gnu.org, 
> 	Andreas Kurth <emacs@HIDDEN>
> 
>    (call-process find-program nil t nil dir "-type" "d" "-print0")
> 
>  But this requires Find to be installed, and it has to be GNU Find.
>  What about systems where there's no Find at all, or it doesn't support
>  the -print0 option?  At the very least, let's have a fallback that
>  uses find-lisp or even directory-files-recursively, instead of
>  signaling an error.
> 
> Why bother? The error is caught, no?  The overall situation has improved: yesterday you had no out-of-root
> file watching LSP support, today you do on GNU systems. Supporting GNU is a priority right? 

Supporting GNU is a priority, but supporting the other systems is also
important when it's feasible.  Emacs strives to present as much an
OS-independent environment as reasonably practical.

> Anyway we can fallback to slower methods if find isn't available, but I'm not keen on adding much more
> complexity to Eglot for basic OS things that should live in a supporting library (desirably a :core ELPA
> one...).

I don't really see why that would add any tangible complexity, given
that what you want is a list of directories.  Finding all the
subdirectories of a directory DIR boils down to

  (find-lisp-find-files-internal DIR
                                 'find-lisp-file-predicate-is-directory
                                 'find-lisp-default-directory-predicate)

As a nice bonus, the directories are returned as absolute file names,
so the expand-file-name call can be avoided in this case.




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 18:00:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 13:00:07 2025
Received: from localhost ([127.0.0.1]:45159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVvok-0002ru-3h
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 13:00:06 -0500
Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]:49180)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vVvoh-0002qq-DG
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 13:00:04 -0500
Received: by mail-oo1-xc2b.google.com with SMTP id
 006d021491bc7-657490df6f3so3412594eaf.2
 for <79809 <at> debbugs.gnu.org>; Wed, 17 Dec 2025 10:00:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1765994397; x=1766599197; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=rpCMfYPYFWXBqx3HeVGkYPHMqvoxF9LoxrFEWQgTSTc=;
 b=J/Fzuoptvom6BObetqMbCt4oXAU7tq3mP6Hzks/2/hr+cU19/ASt39MZBSUBmp0BVL
 7wf24pyDPGGqhC0d5+07PSBWYTEhLXXZ4szsBf+0LIASlD4rVWUvTushKvd2pJJRgScq
 hJB6cEszBjl/iCYJJgiT/NaiD5xFumE7lK6grEnrW/a3CRJXiBLiYJaEcI4LD1Kn4GLr
 taKFFmEwqcK+PXGK9Y24TVBRF/wQUdUHNtdIj+gTSz8GTUrCOn+TA/30fNMgLczmyldA
 b30rsxDnG34BPigqQnIaerYEQQGi8uvjN16rbuJoOB95//J7ivhL31mdX1+h0rtBGzMr
 hJHQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1765994397; x=1766599197;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=rpCMfYPYFWXBqx3HeVGkYPHMqvoxF9LoxrFEWQgTSTc=;
 b=OA5eXmhI0sVk2nj4RUHfJRnGkjtBdbakYtziYEV2DNKd9LIbETkuKy5iXMdOHd+EEz
 oBQSLY9HV89COWzzsSsE8rQxq+ZgSvCTrE1B+eWvI10gBQASdMHGXRwzMctvqAZdoxQx
 XSwjOy6xAsi74RmGyKIK1MQoTjAc8shoQpVnXzb4jCDUeFXjlIhSgogqo73HRc1nFHMG
 TBFEZNs6nD6f3cA8k2damQzaR826DuT1/DMpAGwIjoxHBofU1ADLydZ9msGU742Vrlxt
 4mEchWtYfGr9AYvhmU+Q2lLdGwcI7Wmnc+cfvXiK9Zum3yjMFBMqy4LjPmzj+r8JqrW1
 VR8Q==
X-Forwarded-Encrypted: i=1;
 AJvYcCXxVgL25NcUSYF3cbrpMjLjB6J4s+l8K4k6Qikt6RRnaHbl3vSXA3NYgUGTDHNkPwrfMXGmmw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yxxu+TEzKnpw5AUC6sWgfKtSiitrFD7gFePEZbOpeNhnlauOUn2
 K8VbH3vSDzBfjM/AHqg/kWvrIwY7g4GRxgbcybtPdh42VlUqJAMpEwcaWSP+mtij9Ml1c3evqOn
 W6uqXaHDYb3IxijsoBZve175xTiugH7w=
X-Gm-Gg: AY/fxX7ZcOyyLSHAYP3MXyURkD7ftJJEkFolZWA/cYo/B+ig3PBW1EkGBqy61kcRaeR
 Qy8015ii3QQumupRLH/6ShEMdzaRVmalh/JYsS5XzeCiSfgTRnwmdcripmqxfT9QB5nlepeJcSl
 AcvZglJIg/fnQ1pprJQ8wCbHfnOPNhpd4HNmgn6NzTazWe2eyx0DiVvPf2kpnmQ447quYHFs1vh
 FUpbVKxKg8n1eAWYKxJ9esEqUy88Cx1zOfsJOlDMeA0Xsi/KTqYnbuJzpPkkRuOM/L6zOE=
X-Google-Smtp-Source: AGHT+IGU25Q2AoCzui7cxISe1l5tKSb2jVY6cuPoL/wCFc4Q0iqxJJAzEfvYEqk6zRiLSp7uwJ+LrmCM3z9GMubO+aQ=
X-Received: by 2002:a05:6820:2299:b0:65b:380a:ce85 with SMTP id
 006d021491bc7-65b45288994mr8020151eaf.62.1765994397398; Wed, 17 Dec 2025
 09:59:57 -0800 (PST)
MIME-Version: 1.0
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
 <86ms3h420a.fsf@HIDDEN>
In-Reply-To: <86ms3h420a.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Wed, 17 Dec 2025 17:59:46 +0000
X-Gm-Features: AQt7F2o57tsI8Cd8NqK8xicHq3i1MErPIskZGgI2zYebsEIF7ZkQcWrJ7xTSevg
Message-ID: <CALDnm52kG=dqSO9s=S2Q-xxcgpQwGAu+Nrt3hbcZF8G3ydwebA@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000bb7e620646299cab"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>,
 Dmitry Gutov <dgutov@HIDDEN>
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 (-)

--000000000000bb7e620646299cab
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 17, 2025, 14:27 Eli Zaretskii <eliz@HIDDEN> wrote:

> > Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
> > Date: Wed, 17 Dec 2025 03:29:45 +0200
> > From: Dmitry Gutov <dgutov@HIDDEN>
> >
> > > Anyway, I pushed the fix to Eglot to this issue (heads up Andreas,
> > > please test) that relies on this latest version of project.el, or at
> > > least works more efficiently with it.  See the commit
> > >
> > >     commit 06f31dc2d6305191bd35ad3e6017ba6e81a8b84d
> > >     Author: Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN>
> > >     Date:   Tue Dec 16 17:45:36 2025 +0000
> > >
> > >         Eglot: support relativePatternSupport for file watching
> > >         (bug#79809)
> > >
> > > I also benchmarked a little more the idea of a project-directories
> based
> > > on 'find', 'find -type d', and 'git ls-files'.  It's also always
> faster than
> > > the naive (delete-dups (mapcar #'file-name-directory (project-files
> ...)))
> > > but not always spectacularly so.  Only 'find -type d'  provides a
> > > sizeable improvement (again around 7 times), but with false positives
> > > (directories with nothing but project-ignored files).  Let me know if
> > > you want to see the code or the benchmarks.
> >
> > I wonder if you will get a comparable performance improvement by just
> > binding grep-find-ignored-files and vc-directory-exclusion-list to nil
> > around the existing call - maybe only when the directory is "external",
> > but those are only uses in non-VC implementation of project-ignores
> anyway.
> >
> > 'find .' without arguments for ignoring files has always been very fast=
,
> > usually close to our 'git ls-files' call because we have to use '-o' at
> > least when project-vc-include-untracked is non-nil.
>
> Bother: I see that Jo=C3=A3o already installed a change which runs
>
>   (call-process find-program nil t nil dir "-type" "d" "-print0")
>
> But this requires Find to be installed, and it has to be GNU Find.
> What about systems where there's no Find at all, or it doesn't support
> the -print0 option?  At the very least, let's have a fallback that
> uses find-lisp or even directory-files-recursively, instead of
> signaling an error.
>

Why bother? The error is caught, no?  The overall situation has improved:
yesterday you had no out-of-root file watching LSP support, today you do on
GNU systems. Supporting GNU is a priority right?

Anyway we can fallback to slower methods if find isn't available, but I'm
not keen on adding much more complexity to Eglot for basic OS things that
should live in a supporting library (desirably a :core ELPA one...).

Jo=C3=A3o

>

--000000000000bb7e620646299cab
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div dir=3D"auto"><br></div><div dir=3D"auto">On Wed, Dec=
 17, 2025, 14:27 Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@gnu=
.org</a>&gt; wrote:</div><div class=3D"gmail_quote gmail_quote_container" d=
ir=3D"auto"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=
.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; Cc: <a h=
ref=3D"mailto:79809 <at> debbugs.gnu.org" target=3D"_blank" rel=3D"noreferrer">7=
9809 <at> debbugs.gnu.org</a>, Andreas Kurth &lt;<a href=3D"mailto:emacs@akurth.=
de" target=3D"_blank" rel=3D"noreferrer">emacs@HIDDEN</a>&gt;<br>
&gt; Date: Wed, 17 Dec 2025 03:29:45 +0200<br>
&gt; From: Dmitry Gutov &lt;<a href=3D"mailto:dgutov@HIDDEN" target=3D"_=
blank" rel=3D"noreferrer">dgutov@HIDDEN</a>&gt;<br>
&gt; <br>
&gt; &gt; Anyway, I pushed the fix to Eglot to this issue (heads up Andreas=
,<br>
&gt; &gt; please test) that relies on this latest version of project.el, or=
 at<br>
&gt; &gt; least works more efficiently with it.=C2=A0 See the commit<br>
&gt; &gt; <br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0commit 06f31dc2d6305191bd35ad3e6017ba6e81a8b84=
d<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0Author: Jo=C3=A3o T=C3=A1vora &lt;<a href=3D"m=
ailto:joaotavora@HIDDEN" target=3D"_blank" rel=3D"noreferrer">joaotavora=
@gmail.com</a>&gt;<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0Date:=C2=A0 =C2=A0Tue Dec 16 17:45:36 2025 +00=
00<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 <br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Eglot: support relativePatternSu=
pport for file watching<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(bug#79809)<br>
&gt; &gt; <br>
&gt; &gt; I also benchmarked a little more the idea of a project-directorie=
s based<br>
&gt; &gt; on &#39;find&#39;, &#39;find -type d&#39;, and &#39;git ls-files&=
#39;.=C2=A0 It&#39;s also always faster than<br>
&gt; &gt; the naive (delete-dups (mapcar #&#39;file-name-directory (project=
-files ...)))<br>
&gt; &gt; but not always spectacularly so.=C2=A0 Only &#39;find -type d&#39=
;=C2=A0 provides a<br>
&gt; &gt; sizeable improvement (again around 7 times), but with false posit=
ives<br>
&gt; &gt; (directories with nothing but project-ignored files).=C2=A0 Let m=
e know if<br>
&gt; &gt; you want to see the code or the benchmarks.<br>
&gt; <br>
&gt; I wonder if you will get a comparable performance improvement by just =
<br>
&gt; binding grep-find-ignored-files and vc-directory-exclusion-list to nil=
 <br>
&gt; around the existing call - maybe only when the directory is &quot;exte=
rnal&quot;, <br>
&gt; but those are only uses in non-VC implementation of project-ignores an=
yway.<br>
&gt; <br>
&gt; &#39;find .&#39; without arguments for ignoring files has always been =
very fast, <br>
&gt; usually close to our &#39;git ls-files&#39; call because we have to us=
e &#39;-o&#39; at <br>
&gt; least when project-vc-include-untracked is non-nil.<br>
<br>
Bother: I see that Jo=C3=A3o already installed a change which runs<br>
<br>
=C2=A0 (call-process find-program nil t nil dir &quot;-type&quot; &quot;d&q=
uot; &quot;-print0&quot;)<br>
<br>
But this requires Find to be installed, and it has to be GNU Find.<br>
What about systems where there&#39;s no Find at all, or it doesn&#39;t supp=
ort<br>
the -print0 option?=C2=A0 At the very least, let&#39;s have a fallback that=
<br>
uses find-lisp or even directory-files-recursively, instead of<br>
signaling an error.<br></blockquote></div><div dir=3D"auto"><br></div><div =
dir=3D"auto">Why bother? The error is caught, no?=C2=A0 The overall situati=
on has improved: yesterday you had no out-of-root file watching LSP support=
, today you do on GNU systems. Supporting GNU is a priority right?=C2=A0</d=
iv><div dir=3D"auto"><br></div><div dir=3D"auto">Anyway we can fallback to =
slower methods if find isn&#39;t available, but I&#39;m not keen on adding =
much more complexity to Eglot for basic OS things that should live in a sup=
porting library (desirably a :core ELPA one...).</div><div dir=3D"auto"><br=
></div><div dir=3D"auto">Jo=C3=A3o</div><div class=3D"gmail_quote gmail_quo=
te_container" dir=3D"auto"><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
">
</blockquote></div></div>

--000000000000bb7e620646299cab--




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 14:27:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 09:27:46 2025
Received: from localhost ([127.0.0.1]:42291 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVsVF-0006CT-Ce
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 09:27:45 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:49146)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vVsVC-0006C5-8m
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 09:27:43 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vVsV6-0005co-8H; Wed, 17 Dec 2025 09:27:36 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=3+4eTGa9JtIV+mK5Vx2EQOv062tMqcvDrFJ7Akcft1w=; b=Z2ZQQo8lCenOnb6L7UKS
 XEth3TQbYvoJ9UdgOLZGGreElXZXR1hXVk/fCQo/9hmZMAEwssWgyyXurqIMTQBZyV0vgZE07dG53
 WARGunMjNc4RebKdrFImzhQ0jOqNMSTMQIQGJmjnq8a1c/Vdce3irXFQ2ahdj+D4EsYjavLLqu2ya
 Px40ZNJYZnPJeRfXH0HwHqEbRlKPmvcIjqDjpoZ4DgIl8Zqua9FNygWy5muDYgtFPdpfQ0EgElBGN
 Ml6rvuw2uBzDrfxfrBPjrpEEKDd6Ou2N8Fu45aUV17aHcMoUlTGlwQNiNRvjG9yzOJrzOnZVk/4XW
 mBSn/VCqQZeU6Q==;
Date: Wed, 17 Dec 2025 16:27:33 +0200
Message-Id: <86ms3h420a.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN> (message from
 Dmitry Gutov on Wed, 17 Dec 2025 03:29:45 +0200)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <87pl8e5m4p.fsf@HIDDEN>
 <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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: -3.3 (---)

> Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
> Date: Wed, 17 Dec 2025 03:29:45 +0200
> From: Dmitry Gutov <dgutov@HIDDEN>
> 
> > Anyway, I pushed the fix to Eglot to this issue (heads up Andreas,
> > please test) that relies on this latest version of project.el, or at
> > least works more efficiently with it.  See the commit
> > 
> >     commit 06f31dc2d6305191bd35ad3e6017ba6e81a8b84d
> >     Author: João Távora <joaotavora@HIDDEN>
> >     Date:   Tue Dec 16 17:45:36 2025 +0000
> >      
> >         Eglot: support relativePatternSupport for file watching
> >         (bug#79809)
> > 
> > I also benchmarked a little more the idea of a project-directories based
> > on 'find', 'find -type d', and 'git ls-files'.  It's also always faster than
> > the naive (delete-dups (mapcar #'file-name-directory (project-files ...)))
> > but not always spectacularly so.  Only 'find -type d'  provides a
> > sizeable improvement (again around 7 times), but with false positives
> > (directories with nothing but project-ignored files).  Let me know if
> > you want to see the code or the benchmarks.
> 
> I wonder if you will get a comparable performance improvement by just 
> binding grep-find-ignored-files and vc-directory-exclusion-list to nil 
> around the existing call - maybe only when the directory is "external", 
> but those are only uses in non-VC implementation of project-ignores anyway.
> 
> 'find .' without arguments for ignoring files has always been very fast, 
> usually close to our 'git ls-files' call because we have to use '-o' at 
> least when project-vc-include-untracked is non-nil.

Bother: I see that João already installed a change which runs

  (call-process find-program nil t nil dir "-type" "d" "-print0")

But this requires Find to be installed, and it has to be GNU Find.
What about systems where there's no Find at all, or it doesn't support
the -print0 option?  At the very least, let's have a fallback that
uses find-lisp or even directory-files-recursively, instead of
signaling an error.




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 14:22:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 09:22:23 2025
Received: from localhost ([127.0.0.1]:42188 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVsQ2-0005g0-KA
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 09:22:23 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:43570)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vVsQ0-0005fY-50
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 09:22:21 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vVsPu-0004Tn-Bu; Wed, 17 Dec 2025 09:22:14 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=z78r0WjhxDxXLvtnK0x06qCJ5IK8IotxPyHgmQDTSC8=; b=D3n8DOjG1Dsb
 aebzUw7PcY2TaPF8HMr4JpJJMH9Xk07lI1klr4vFcWrTyVHGFUYfUt5VKPgzCv+Qh7eiR4I4TKA2L
 3LJ5Amg/eKD6zg4irZQTLO43mnNXcVzdYQdL0j6oT17mQv82a903tOu0rUXPfdN8GLDVaPkqhNRzz
 NtWkrCShrLGMQMcMOoVoCd6DVQ5C5+XwG436FR3cJyKJCnDhfUKWkhdasNfjPpPdOh9HeW/O0dI8D
 BwipmBWqRnaiXexiH8IqCQ6ohrvJaYW2WECIXAylGsDtrKmnsqkpoNYAw54Nz57nDruWALtgB84Lv
 GckU3V2AXMNGcVlWNzueZQ==;
Date: Wed, 17 Dec 2025 16:22:11 +0200
Message-Id: <86o6nx4298.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN> (message from
 Dmitry Gutov on Wed, 17 Dec 2025 02:36:05 +0200)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
 <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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: -3.3 (---)

> Date: Wed, 17 Dec 2025 02:36:05 +0200
> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
> From: Dmitry Gutov <dgutov@HIDDEN>
> 
> >> Any chance your installation of Git is the one that doesn't support
> >> 'exclude' pathspecs still?
> > 
> > How do I find out?
> 
> Looking at the backtrace, the support is probably there. But we have 
> this error:
> 
>    There is nothing to exclude from by :(exclude) patterns.
>    Perhaps you forgot to add either ':/' or '.' ?
> 
> for this command:
> 
>    git --no-pager ls-files -z -c --exclude-standard -o -- 
> :(exclude,glob,top)**/etc
> 
> Where all arguments are passed separately as ARGS to 'process-file'.
> 
> This works fine here, but apparently fails on MS-Windows (at 
> asterisks?). This question/answer hits at such possibility: 
> https://superuser.com/questions/897599/escaping-asterisk-in-bash-on-windows
> 
> So maybe asterisks need quoting on MS-Windows? I wonder on which level 
> that should be done. Have we seen similar problem before?

Yes, the asterisk (and some other characters) need to be quoted on
Windows, even when using process-file and call-process.  But that is
already taken care of internally, see w32-quote-process-args (if we
didn't handle this correctly, subprocess support on Windows would be
completely broken).

I think the problem is indeed in insufficient support for 'exclude',
because if I type this command:

  git --no-pager ls-files -z -c --exclude-standard -o -- ':(exclude,glob,top)**/etc'

at the Git Bash prompt, I get the same error:

  fatal: There is nothing to exclude from by :(exclude) patterns.
  Perhaps you forgot to add either ':/' or '.' ?

> >> What is your Git version? If it's 1.8.x or older, any chance of
> >> upgrading it?
> > 
> > It's 2.10.0.
> That probably tells us that the bug was there on MS Windows whenever 
> project-vc-ignores is non-nil, we just didn't have a test for it.

Probably.




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 12:54:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 07:54:21 2025
Received: from localhost ([127.0.0.1]:41155 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVr2q-0008PE-Kz
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 07:54:20 -0500
Received: from mout.kundenserver.de ([212.227.126.133]:33777)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <emacs@HIDDEN>) id 1vVr2o-0008Ok-QL
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 07:54:19 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akurth.de;
 s=s1-ionos; t=1765976052; x=1766580852; i=emacs@HIDDEN;
 bh=h2EwhUzmDgLV6u7eQ9Tz/Zvj4WJggTSHGWiVC1tnVJY=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=wdi0igX4M6GP+/P6l/1L7u98P2oafL4TvzKHXwp+e8as1fbgyKgf0VF4kpmqb9SI
 H3jl1ll73KWovNyiGMm/N4AJSkS6fXFUEvf5nTfPTdFZA0TuDiMMEmaO/7NAbpqBx
 CtkeVlnzyEAUxWP3dlIZED4sRI7b2fVrarkO4JI/ew+8a7nIFv7rYle02evtIou+j
 ieo/Mrx2oLPtlqIb5aAQgDqpuP8vxzLybhlnEVD5azQFpRje0R727bGOf8QoYsdkn
 aXTSqUOnYhvbK+q5QYg2npXBRCvTIbD9gHRWQ3As84Pti2FjiC4wnxzlqjyJGWr6a
 AgO48ifSUYt86R02YA==
X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6
Received: from ravel ([109.250.30.32]) by mrelayeu.kundenserver.de (mreue012
 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MN67J-1vFh4L0IfF-00Jl3h; Wed, 17
 Dec 2025 13:54:12 +0100
From: Andreas Kurth <emacs@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <CALDnm50B6rcDKbv+2-EPH9M0pzv8nY2fOOm+QpMLzh+5VsSXrA@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN>
 <CALDnm50B6rcDKbv+2-EPH9M0pzv8nY2fOOm+QpMLzh+5VsSXrA@HIDDEN>
User-Agent: mu4e 1.12.13; emacs 31.0.50
OpenPGP: id=42E6E88E86E24E19; url=https://akurth.de/gpg/ak/pubkey.asc
Date: Wed, 17 Dec 2025 13:54:01 +0100
Message-ID: <87bjjx46c6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:LvOEWG82OV9iAp7eoWnGcme+b5emyn2LbMqsen3CcsY4iC0jb5i
 Ct8bTNxllvYfupRksG8/VShTUICUJcit0o381OcuX5jmD8LtVMhKorH8XsTSQP1hkY+ESV1
 wLRXv3X6zbAFoWgRVK8hQHlvxjudKUwgK7vVN79AtGZ48D2UfhEfqsVPUVLRlvMd8NHArXY
 M+xKUP5PrQIAzSE9mr2nA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:h9Sa2GXgNVs=;ze8GREgmdHANOLC2sxZ6T11cHSU
 z926+r3kJc5z3/8b6d702o+ROJQEQrmofbbJM9T92l3jyD4DAdp5fXiq1HGNdM6wEA+kPvVi3
 9IuRT75Qtzg5bozqFuqUa7iqAbgH+/Zw8hZqbhZjBUfFVhKdDxp3AJOl6ybz7KnT7c4lXfNos
 umB2h1ve3484mS0tJVUw9QkRR4c5fjjF5uYa0g1k7o1Keg+kNaQp4gti3HKKl+HOA2Z0m0z9Z
 hu4H5ACFtPQ1M4Sayl85+ZhJj1a1gr7OqsN3q5joQ8mAcndWDRNLS2GrVDGhh9szPSav28GoF
 vjALuYtRttHgmpC1s6ZhokejPBovn6OvlYpFNkjV9fU+imW5CDd4wOHz60Vrm0MBgq79JXefF
 jTVw0YLsuYjSWSwQTDqMSWMz6GA3HITf3qeldc7Q/S11t9tWk4Mpq4uz3u5IQJEDw67K3P115
 v6AFB9x7WFKkOtkI3tQ6zV5ByzQ5LBPONU2MxKmRf9/sEtWTpb1tSRFCobEjPLRPbCts5xp2q
 R7iqXFeebfSd0dATUxNqUOKvYCjfQ6CdE1I15Vg3KbFT2d3YC2Kvy8Ss7f/F1gOVJfZyVKTjt
 zi/F9E0crLxkJyjqa/PecnR+MPTvrogG5r6R/SZgrvO0fM1yq0ugjOma5kRnoBGARgcf5HvZ1
 bltUPFZXvga4N5jPJ/TFKtEJeFlBq7J5w9B0+ucmtJKRs6YxcsXYNRy40EjUmB7FShh9vxNNL
 h2sXCrLYnWRmIIhCW6D3SAvBv9kTkeTJhPsOXBq6/8q1iSfu2IKXvZqEn1oMA0ubOTRYcTlgu
 BXGifU7kCZztKCwn4doNoSfrx7WKzScJ5DjKMla96SlWeOkVeSu6uZ9+kg8x7lFFkLYImZ00M
 0iZrwvNnthoPdu7/vlMsF/IU96GmjRYdHEHGfXf4+fca/NQ+5lgcj9aGeoF11KTRvgxXcjhRP
 /15p9hZIoa+soE/i4fcH9nOnV0rfmyTgyPLV4Y9UQhQuQ70vLTXnA06acz3fjToGWebPpGpI4
 5Fvgadkf7FwLM3XIzmmxNDRDMML0/jnBnYpRJqeDKm9ZQKotyHpWBByqaqWqUpk4mSVFW/BQy
 eqETWt6SOXvLrCutSTMuFHPtLSYqjo1frNFE8PyFwfsucw/FB77ljv6zGO3F54aGFqjX78cmY
 59gNX9/0jxkzkmSa+3VX8IZtHZkt8nJlcg3VbejrhePFzZVWfotOxweFHrBM6PXn1O1fLewCN
 y7d4IKISJW7huBEzZQ+rriZSjIFTjgMwECBOjJAeRCSiWYKem2GQM9833w+7SsyLd8POYhqSx
 EhnExSyiGOqJSsUMYLxHsBwO7m44eGwjp7dX3a/yxac8j9fTPCDZT0XKUcQvWdieYhVBEHGp6
 TAghfDq53LqdGotXUQIiCbgRmmHbuAnavywfaoI8fpQ9LavC1o35bJiqcYwLiYuvbb/RMcxDR
 h0iNtvdZbeaBLX1C1RzdiWWFJKpzpRCJyhvtXRC2Ullb4z5URwMAuuU12xjGAYmlGTa9qenOC
 Dl9biKek2TGESTCuAaR80x26OfjkjA+9NTd2AEqAl5qnQEUh/XNKQjpURZ9PSfFIxjGzom4eI
 gNGfL/c0TvC7qOhkfeJrzDmeAVYoUDOt2b2j3528OyXqidr6FS1UtpD8khAIc+L9ZFy25hghN
 ZoSPRNUOQ7ldechEY9gj9ITr+SKEA2QcYy/E72cMFSd9JzaEllGZh/5GYsId9LIEAB/k+vx/e
 SftzGhVVHPGbjkkavzRFQ3pzzP1aBZfXbnAsdG+dJqCEP+Jt4t6kGr90=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
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 (-)

>> Well, setting eglot-watch-files-outside-project-root to nil makes a huge
>> difference. The time between the two consecutive log lines decreased to
>> 200 ms. Thanks for the hint.
>
> Can you set that variable back to t and try again with the latest changes
> I pushed?  It should be faster than those 10 seconds, but not sure how
> much.

Not really, unfortunately:

[jsonrpc] e[13:48:20.715] <-- client/registerCapability[9] {"jsonrpc":"2.0"=
,"id":"9","method":"client/registerCapability","params":{"registrations":[{=
"id":"e6f3e28c-5f8a-404b-b1a1-b901350dbb5d","method":"workspace/didChangeWa=
tchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.java"},{"gl=
obPattern":"**/.project"},{"globPattern":"**/.classpath"},{"globPattern":"*=
*/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globPattern":"**/*.grad=
le"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**/gradle.properties=
"},{"globPattern":"**/pom.xml"},{"globPattern":"/home/ak/eclipse-workspace/=
idapi/api/target/generated-sources/annotations/**"},{"globPattern":"/home/a=
k/eclipse-workspace/idapi/service/target/generated-sources/annotations/**"}=
,{"globPattern":"/home/ak/eclipse-workspace/idapi/service/target/generated-=
test-sources/test-annotations/**"},{"globPattern":"/home/ak/eclipse-workspa=
ce/idapi/api/target/generated-test-sources/test-annotations/**"},{"globPatt=
ern":{"baseUri":"file:/home/ak/.local/share/lsp/jdtls/","pattern":"eclipse-=
formatting.xml"}},{"globPattern":{"baseUri":"file:/home/ak/eclipse-workspac=
e/idapi/","pattern":"api"},"kind":4},{"globPattern":{"baseUri":"file:/home/=
ak/eclipse-workspace/","pattern":"idapi"},"kind":4},{"globPattern":{"baseUr=
i":"file:/home/ak/eclipse-workspace/idapi/","pattern":"service"},"kind":4}]=
}}]}}
[jsonrpc] e[13:48:30.707] --> client/registerCapability[9] {"jsonrpc":"2.0"=
,"id":"9","result":null}




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 12:07:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 07:07:12 2025
Received: from localhost ([127.0.0.1]:40584 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVqJE-0002De-AB
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 07:07:12 -0500
Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]:57481)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vVqJC-0002DO-AU
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 07:07:11 -0500
Received: by mail-ot1-x32c.google.com with SMTP id
 46e09a7af769-7cac8231d4eso3789809a34.2
 for <79809 <at> debbugs.gnu.org>; Wed, 17 Dec 2025 04:07:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1765973224; x=1766578024; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=QyNHUjcan6XgoAehn5hFitK9ojHCatgJNUOHSsRr9HE=;
 b=jTdOnMcOciwfj7vUipPhkkFqn3jFfXrzYZWWe8hrd5PkJgsts3XxrCbIfNfzSPArlS
 6OuZw/fE6vqDn976gh0nYskxMEPT37+zbJJpBXByfgM78DvlyBTrPBQ523+6afLyDl10
 1fq6+0xJKbCRQKkJOEl/0V6Qps8Zvn0+nGgReNS/qJSVvIuNIBDwJqWV+gWH75ahf8Ev
 XdSsUcIK5llBsYeCqAjlS6SWGE5xTf2KGs/N2Z1Vnz8w5MVDx9dclj2cgtbxZaNm5MXk
 8Ilr0tAj2QF3OVVQF5UaWCeT5Krket7dyZmrx0F0Y0G6ven/sufH8IrF4zOqTtRp18Y9
 fO5g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1765973224; x=1766578024;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=QyNHUjcan6XgoAehn5hFitK9ojHCatgJNUOHSsRr9HE=;
 b=DyLWRFupiEIm0s7bagInNtDnnXQJpDn37c8SI9pbPIjVrtmuhKUbSOvb2F37oS4PaY
 ekZlKIoHt3ocLKQbuU02fUY80TC/xyqPo6kSEIWWePNtKV8kDKpF46nfctrUFS0/0M2z
 iGZNo+sH+9GmrXThah0Ai3ydHa1OlHXPstc2vOXtXB52G1STtD0IEyTpKOm+xuhAP1i9
 2AeU8eHyru5DyQcWhetGtvRgqgW26gnEulLIwPNiZdJc2wbJ3iK2oar3SKwGEjMRUj7V
 VZhZYxd+6qRtJvL7pEnmhZLuzFInsVJBiQDGXgpvGdvDngZtUEYcykx1HSp9EFWljdUc
 HrSA==
X-Forwarded-Encrypted: i=1;
 AJvYcCUYeQ5qtvAak8jsmRut4O7qjysDUYNmthBA1ptwjtCkI/8QtE+EhnwkHXOYtO68epOCPHw+Jg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx7k1wq28fAEZUy+WRixjZPZU4YFeqUQIBvd1e0GyU5fxoCw6uA
 d0Mk4zM/8SETlGWyxXhaVh48FHjjCORrGzNZhYPb/15YPDBXwfnLZrRFCZyc1bAO8xZ4eEow/lf
 xGmCOJE9K3r49GrIHfG5jiXORag4AqWM=
X-Gm-Gg: AY/fxX71uTunCrJDwnKOMGOMKTTSnWGBxueBv5p8UrzGZ+mBDMjJAvCicfNJeV1jrFz
 EofdCeWHm32zLCn7veAtETeM4FouH2T2C2t67moi00ioAvbh/2cra10q5ecPYOT61PLeEtQSjOD
 cud0NRo9vdLnXVy9jUvtK72mwnJtS70PZ0SBrM7zvr0+wnZItwZ6iG2Vqb/T5laEOtceW4VKm6G
 Ba19LMxfIUyZ/RFW9yVVC4h4g55Gltl2qKhzSLv5ChZJrgo00Qi2QDuhmyfWphsc94QcA==
X-Google-Smtp-Source: AGHT+IHXe1wPAUQgthYM5dCw/3ZPYR2xJZ9JZXPqczngLRzKFHUYlmI7QNWjZ2Mm6yUOjXRf+2vUekFwq+xr91f1Vdw=
X-Received: by 2002:a05:6820:22aa:b0:659:9a49:8f3d with SMTP id
 006d021491bc7-65b4524bb30mr8277815eaf.78.1765973224219; Wed, 17 Dec 2025
 04:07:04 -0800 (PST)
MIME-Version: 1.0
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN>
In-Reply-To: <87a4zh1lmm.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Wed, 17 Dec 2025 12:08:32 +0000
X-Gm-Features: AQt7F2paCGT4_Lvseo4noS5NNSdVRFjmBOXC3DYZwMDVsapUSWCKa2gGfCMgUwY
Message-ID: <CALDnm50B6rcDKbv+2-EPH9M0pzv8nY2fOOm+QpMLzh+5VsSXrA@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Andreas Kurth <andreas@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000b66c75064624aeda"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>,
 Dmitry Gutov <dgutov@HIDDEN>
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 (-)

--000000000000b66c75064624aeda
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 17, 2025 at 9:52=E2=80=AFAM Andreas Kurth <andreas@HIDDEN> w=
rote:

> > Yup, I feared that.. Set eglot-watch-files-outside-project to nil, and
try
> > again...
> >
> > Or maybe that won't do much. Your logs show an interesting sub-case,
where
> > many different globs are asked of a single workspace for. I unoptimized
> > that...
>
> Well, setting eglot-watch-files-outside-project-root to nil makes a huge
> difference. The time between the two consecutive log lines decreased to
> 200 ms. Thanks for the hint.

Can you set that variable back to t and try again with the latest changes
I pushed?  It should be faster than those 10 seconds, but not sure how
much.

Jo=C3=A3o

--000000000000b66c75064624aeda
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Wed, Dec 17, 2025 at 9:52=E2=80=AFAM Andreas Kurth &lt;=
<a href=3D"mailto:andreas@HIDDEN">andreas@HIDDEN</a>&gt; wrote:<br><b=
r>&gt; &gt; Yup, I feared that.. Set eglot-watch-files-outside-project to n=
il, and try<br>&gt; &gt; again...<br>&gt; &gt;<br>&gt; &gt; Or maybe that w=
on&#39;t do much. Your logs show an interesting sub-case, where<br>&gt; &gt=
; many different globs are asked of a single workspace for. I unoptimized<b=
r>&gt; &gt; that...<br>&gt;<br>&gt; Well, setting eglot-watch-files-outside=
-project-root to nil makes a huge<br>&gt; difference. The time between the =
two consecutive log lines decreased to<br>&gt; 200 ms. Thanks for the hint.=
<br><br>Can you set that variable back to t and try again with the latest c=
hanges<br>I pushed?=C2=A0 It should be faster than those 10 seconds, but no=
t sure how<br>much.<br><br>Jo=C3=A3o</div>

--000000000000b66c75064624aeda--




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 10:48:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 05:48:03 2025
Received: from localhost ([127.0.0.1]:39855 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVp4c-0005o6-La
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 05:48:03 -0500
Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:54319)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vVp4a-0005na-1C
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 05:48:01 -0500
Received: by mail-wm1-x330.google.com with SMTP id
 5b1f17b1804b1-47a8195e515so45703365e9.0
 for <79809 <at> debbugs.gnu.org>; Wed, 17 Dec 2025 02:47:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1765968474; x=1766573274; darn=debbugs.gnu.org;
 h=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=LnhaoZy/NycqBgsM/+8kNG2M38mg9nkALLPza3t8cw8=;
 b=Tsp0Yy3MR9aP+vcNfNe5wDimKHBJOb4JusZvKhUzApmVJFfvUHaRd3dr0zDAYiSOQp
 UPipYScoiBx/k/bOEDx7LLNx/klCEvNo69J1iUU/iy8qV+O29pEuOvLvKfJymsRtUY5S
 +nk8yFsvVNzB/OIqmI+7fPfyvn/5ISUVbRS8EbeKd5p2BZCQIQ5xGqA54u7a0FB5SiCV
 6btB3ZObeuJrZBiJcFb4+/pyKybPR5vymzWQGryxgUHAzvtuKlzpV017U36lpSNvrQCk
 x0zWn7SgfRvdZCM0twdbjdztX2ZYaWjjo8Ei1Rm4A6wARXiE9IpRApu7n4yei8U1BH0J
 YU3w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1765968474; x=1766573274;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to;
 bh=LnhaoZy/NycqBgsM/+8kNG2M38mg9nkALLPza3t8cw8=;
 b=TG+e+ltnQvZD0/x6lAwr3Ci1K6spybXxfLb3pshdX/IiHpVxYlklA8Qcb+3Qnp/z9c
 RTXpevID0MNulGoPrmzShQ5N4YflxdAU+Nrvroasym8uiihhqyjk6TA4107k2Av6gKBQ
 gg/JwIU2OF2yLrVetl0Dso3O2MY5AvKKmSDYMCYyMHgZ7lQZSxIjSSKVSM0W4q9Z2mNn
 Zqc93PavwBI4nUh+G/T7x8MIWiqNlUE/HU58E9G4G1lXB+Ukg6FucbqDrVXAazIa6+g6
 useMvsImHtF/SjajoRtV2fwkcJIzzaZYQJTHOKWQcjp8S810hcxe3CXICsGXnN0tu18U
 hh5g==
X-Gm-Message-State: AOJu0Yx5ySic9F2+UlEngOrDKhNYvVfwJ9JnoZ+ZanfigicHzlZOfmsu
 L+3GZi4+fJUjOCTo1bcYAYt4L7mf3Ks89ooENX3J21pnEOzXyoiqfBzPbb6A9w==
X-Gm-Gg: AY/fxX7lLfZSiwLZ15OBWLdjKvXhIPj+I03Ms2KUllbe6kPyCxsXHJ4AcR0VvG4zok/
 QZff5FSfJklKEDPNL54xcyaOXfeHckbhH/JrZWiFM9H6FjfsaGFokkKn8+A5LXe4Nlwc8Tim3km
 Jzs1R1GTplqltU7jWk2ZCf6buYob0vcew3qSsC7BU3LhFdbN5d6uIrGvHMHqbfMnSNlj2TulKQl
 PMmi3EKTLipvKy9Mjo/Q8i63rCshJZd1uigyMY1Tnuju0lWmL+YS45hlepjWzGj/LiBTQJtvTaB
 0x2xWBjo+qSfrLLENp7M4b3bynX1zyriPbbyUbKic3T8BLBtaKCJBXpZiMDACwjvnU8ySind6ok
 tFcCPnArRHll4wnrJKkDvAFHbNOX7MIkZq2g3iyGp9n2Gtp+69YmOKRSvC9NZXe4z6p8hFBSKDL
 nXu5rPFlHlx2oZxozm3psZcuYv6A==
X-Google-Smtp-Source: AGHT+IEAHJmXHz44qYSYl9sSMEdezjpFEA+n7eras345EBdguWDG31jEDlHOij28n/4Wgt/lXPtVJQ==
X-Received: by 2002:a05:600c:154a:b0:477:af74:ed64 with SMTP id
 5b1f17b1804b1-47a8f90d15amr182015585e9.27.1765968473579; 
 Wed, 17 Dec 2025 02:47:53 -0800 (PST)
Received: from krug (87-196-72-85.net.novis.pt. [87.196.72.85])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-47bd8eb1f26sm33501075e9.0.2025.12.17.02.47.52
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 17 Dec 2025 02:47:52 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN>
 <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
Date: Wed, 17 Dec 2025 10:49:31 +0000
Message-ID: <87h5tp5qo4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Dmitry Gutov <dgutov@HIDDEN> writes:

> On 16/12/2025 20:15, Jo=C3=A3o T=C3=A1vora wrote:
>> Dmitry Gutov <dgutov@HIDDEN> writes:
>>=20
>
> The reservation was about having to scan the whole project anyway, but
> looks like (after re-reading the thread) the use case is about having
> an external directory added, so it's okay.
>
>> but I did test this and found a sizeable improvement versus the naive
>> (remove-if-not (lambda () (file-in-directory-p...))  (project-files...))
>> strat, some 7x times when finding files in the src of the Emacs repo
>> itself.  I don't understand what you mean by "smaller change", but if
>> there's still some relatively low hanging fruit, I think it's good to
>> grab it.
>
> That was the smaller change. It only affected listing files using Git,
> and for directories outside the project we use 'find' anyway. So this
> looks good, no need to even bump the 'project' dependency, I think.

I may be missing something, but I think we should bump it.  My tests
show it to be stricly better in speed and correctness.  In fact, the 7x
number previously reported was off, see attached
benchmark-project-files-subdir.el and see if you can reproduce . An LLM
wrote that bench, with some coaching, but it looks alright.

    =E2=9D=AF emacs --batch -l ~/tmp/benchmark-project-files-subdir.el lisp
    Subdirectory to benchmark: /home/joao/Source/Emacs/emacs/lisp
    Emacs version: GNU Emacs 30.2 (build 2, x86_64-pc-linux-gnu)
    Project root: ~/Source/Emacs/emacs/
    Target subdirectory: /home/joao/Source/Emacs/emacs/lisp
=20=20=20=20=20
    Method 1: (remove-if-not (lambda (f) (file-in-directory-p f subdir)) (p=
roject-files ...))
    Method 2: (project-files project (list subdir))
=20=20=20=20=20
    =E2=9C=97 MISMATCH: Method 1 has 1607 files, Method 2 has 3341 files
=20=20=20=20=20
    Results (3 iterations each):
    Method 1 (naive filter):     8.895 seconds (0.504 GCs)
    Method 2 (subdirs argument): 0.084 seconds (0.014 GCs)
=20=20=20=20=20
    Speedup: 105.55x
    =E2=9D=AF src/emacs --batch -l ~/tmp/benchmark-project-files-subdir.el =
lisp
    Subdirectory to benchmark: /home/joao/Source/Emacs/emacs/lisp
    Emacs version: GNU Emacs 31.0.50 (build 18, x86_64-pc-linux-gnu, GTK+ V=
ersion 3.24.51, cairo version 1.18.4)
     of 2025-12-16
    Project root: ~/Source/Emacs/emacs/
    Target subdirectory: /home/joao/Source/Emacs/emacs/lisp
=20=20=20=20=20
    Method 1: (remove-if-not (lambda (f) (file-in-directory-p f subdir)) (p=
roject-files ...))
    Method 2: (project-files project (list subdir))
=20=20=20=20=20
    =E2=9C=93 Both methods return the same 1607 files
=20=20=20=20=20
    Results (3 iterations each):
    Method 1 (naive filter):     9.697 seconds (0.519 GCs)
    Method 2 (subdirs argument): 0.031 seconds (0.000 GCs)
=20=20=20=20=20
    Speedup: 314.91x

> (If we don't really need it to be affected by Git/Hg/etc's ignores
> configuration, the caller might as well use custom code for this
> case.)

Perhaps.  Indeed Eglot's file-watching case is not necessarily concerned
with ignores.  But it is _extremely_ concerned with speed.  I still
think a project-directories should exist.  IOW I could make a
eglot--list-directories based on 'find -d`, but even without ignores I'm
worried I'll bump into a lot of stuff already handled in project.el.
Does 'find' more or less always exist?  Does project.el have a fallback?
Any other typical gotchas?


--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename=benchmark-project-files-subdir.el
Content-Transfer-Encoding: quoted-printable

;;; benchmark-project-files-subdir.el --- Benchmark project-files with subd=
irs -*- lexical-binding: t; -*-

(require 'project)
(require 'benchmark)

(defun benchmark-project-files-subdir (subdir)
  "Benchmark project-files with subdirectory restriction.
Compare naive filtering vs passing subdirs argument.
SUBDIR is the subdirectory to benchmark."
  (let* ((project (project-current))
         files-naive
         files-optimized
         time-naive
         time-optimized)

    (message "Emacs version: %s" (emacs-version))
    (message "Project root: %s" (project-root project))
    (message "Target subdirectory: %s" subdir)

    ;; Method 1: Naive approach - get all files, then filter
    (message "\nMethod 1: (remove-if-not (lambda (f) (file-in-directory-p f=
 subdir)) (project-files ...))")
    (setq time-naive
          (benchmark-run 3
            (setq files-naive
                  (cl-remove-if-not (lambda (f) (file-in-directory-p f subd=
ir))
                                    (project-files project)))))

    ;; Method 2: Optimized - pass subdirs argument directly
    (message "Method 2: (project-files project (list subdir))")
    (setq time-optimized
          (benchmark-run 3
            (setq files-optimized (project-files project (list subdir)))))

    ;; Verify they return the same files
    (let ((set-naive (sort (copy-sequence files-naive) #'string<))
          (set-optimized (sort (copy-sequence files-optimized) #'string<)))
      (if (equal set-naive set-optimized)
          (message "\n=E2=9C=93 Both methods return the same %d files" (len=
gth set-naive))
        (message "\n=E2=9C=97 MISMATCH: Method 1 has %d files, Method 2 has=
 %d files"
                 (length set-naive) (length set-optimized))))

    ;; Report results
    (message "\nResults (3 iterations each):")
    (message "Method 1 (naive filter):     %.3f seconds (%.3f GCs)"
             (car time-naive)
             (nth 2 time-naive))
    (message "Method 2 (subdirs argument): %.3f seconds (%.3f GCs)"
             (car time-optimized)
             (nth 2 time-optimized))

    (message "\nSpeedup: %.2fx"
             (/ (car time-naive) (car time-optimized)))

    (list :total-files (length (project-files project))
          :subdir-files (length files-optimized)
          :naive-time (car time-naive)
          :optimized-time (car time-optimized)
          :speedup (/ (car time-naive) (car time-optimized)))))

;; Parse command-line arguments
(let ((subdir nil))
  ;; Look for the first non-option argument after the script name
  (let ((args command-line-args-left))
    (while args
      (let ((arg (car args)))
        (unless (string-prefix-p "-" arg)
          (setq subdir arg)
          (setq args nil)))
      (setq args (cdr args))))

  ;; Default to current directory if none provided, expand relative paths
  (setq subdir (expand-file-name (or subdir ".")))

  (message "Subdirectory to benchmark: %s" subdir)
  (benchmark-project-files-subdir subdir))

--=-=-=--




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 10:26:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 05:26:38 2025
Received: from localhost ([127.0.0.1]:39691 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVoju-0004aw-3W
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 05:26:38 -0500
Received: from mout.kundenserver.de ([212.227.126.133]:47967)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <emacs@HIDDEN>) id 1vVojr-0004aP-NX
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 05:26:36 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akurth.de;
 s=s1-ionos; t=1765967189; x=1766571989; i=emacs@HIDDEN;
 bh=ZCWAoU4GIG1LIsReN7jtSc1iiIRkTG212122XADMIjM=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=pzcGGQN9SW3Wsm6nU+G8IwG/eoU0XJA61j1ILbxRXJCGpjG2nzBGB4HqJds5rupv
 i5lp5LkUSfJApx2ylIvAeMg90CIGFbU+Q8obuSx20oZsgSIZ77jt4lorggRWF9QxQ
 /SHJeBQYa9rXuP5dRVydyIA6lanEtBOIH0DmMzt4+FK9w4wBfccskC6eM3/AWnBE+
 ckGoQmVSdhhlv5+fDF9Y7Re/Ah0qNu9rYlSerdxznGswadsuYgXVzi9qxh2OTzh9/
 bh3Z+MVeUnggk7+teNEkTRCK9dTKeT4j2uyntQ+egZAfe7IEgTGZcsQcoheospooh
 Jl8haHPJhYEV5yiTCA==
X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6
Received: from hindemith ([82.165.232.23]) by mrelayeu.kundenserver.de
 (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id
 1MKsWr-1vHrgm1vED-00M3ZE; Wed, 17 Dec 2025 11:26:29 +0100
From: Andreas Kurth <emacs@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <87ldj15s64.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN> <87ldj15s64.fsf@HIDDEN>
User-Agent: mu4e 1.12.13; emacs 31.0.50
OpenPGP: id=42E6E88E86E24E19; url=https://akurth.de/gpg/ak/pubkey.asc
Date: Wed, 17 Dec 2025 11:26:28 +0100
Message-ID: <874ipp1k17.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:AO8xn/k7k/XVr9OWdC+Qk7T5w9lal+Xzv7EqfqAH/F6GDuaz9Id
 Y6XK16DondSitCGgEMwCypYlx/VnDoC47/cGrOK4uW2ux63QmGcXNuD8VBooq/skqvidEwp
 ydU8us4lf8uu1fln0DAU7hIxaZvG5yZkCORdaEU4xooB/3bKaCeyMHAZj4+eQRHgTmGBLdm
 AeqCt6tKmwggsX1EQ3Ygw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:9O8B4zCEohc=;Lll2nKIL5BeEbrFTF1VTU5nmrS/
 nc/yvXG16vhSOUbX0hMHVV+LEIMTTTEH49cJ55ZkAfqwayIPlWNX+4DzbdNA/zKy3krOT9T+u
 QS52yuGZmeJ0wk62Nq2oCbt3PIk4nH1luTFNCPMY11k8xJYDMln5iwPsnjJ57ZCQ/LmQkSSAZ
 vA5+rq6lPI3J79owRyvWRw3TMQpD5QXqlecR/1JGU2hU6LRZlkJVuZugDFdGKM4n8CTa7JT/a
 VkvxXSR7WPay1SG2J4sCWSlgp4KD0LKz40KF+3tx6iWppISL6O1hzt8Sss8jmMEFbV70HM3Zc
 9okFqBCzHOL+iHLrBgBe0veXe3r1ffE7/Uflpz63nm8ZiPv9Y4QnepN4+5Ax2RhbOXfktgTOS
 FzFEjWXRK8oReNxGpPfhoIjYSkIXpfIfhb6rqgI4ieqsJQ7Mk3uWW9IkmGBJw4fF7e5ohxK5h
 EN2Jpyxe4xxKgpjmdcsFG9GgQykBuXWCS1nk48GKb9SbHzlKb1tsuUbuNDNGKt9ImGi8+MSu4
 KtuQnnxwQdtkgCjL/ms9SbwRSIqmPepftBsXWD4/y+PMJ6YYrWttlnYbum7c7URcd2zwedljJ
 X3oLi4mY9/crddrewwJp3u+eYMx5D6zMVQU59vxm1sSXtZZRoUbs9T5fGF4z61yjr49cCE3Uh
 oPOGpjhkYsDWawX0PhUOhuyPuUbsGEpGVIFaNkNyT9OrzlspzLY4O6bJdDDh3MfeE4oJRocju
 yks3NLpMtiqA+jfnGFVVagv7aJmpNB5PRac7EONA5prFGBCLd0fiXrYzCSeEnCKS2RhvakWtq
 3tpb+0IDCmvZCOMBy141Qkf1LLf2fTk/DUNR4yjwQR5iKrduL+zn9xfToOpGHk+gMHsfZVbtU
 XvRGZHRTBm2qqFaS+D5zVfRgzwyaXiGuiTubWl89akwC20lTd0aZZhjtS+n5/UeK0a9VXIcqe
 dW2mckBI6+ckiZhTM1EPAnNZP2c/rzzvOF0HXL+4ZVULa2C7CnKr696Pl3ZHDLBDgaSV+5Rm9
 emtFu5cKt7uM/iJu2RJmZ9mIrVUJEwL+YfQzLVIrWw1JRFVx4VZ6NOJ0LIlf3jXjPKpvKx+R6
 eUOaPovW36Wv9+aw4e+lxWFUWi382buOlMwv2XHgzPH9RcbMOZmqmmaw6cMsQ24WO4cAk4NYd
 8gLLN7vjDUuhdTslHVvDDL6Et34sCqipsCzSC6oLCMp4RkMDafHCzWTu12XYmJpwLiItXfS5h
 WMJUWsd5+MFZUHCU7MtWNXw3MFUZPMidtSWTMiTzfISVynIZxiaFEWMgaIPi2DkkmJe3JQ0OA
 fZUNbbxZ6lDvQlIpAiRtNpQHprXTaVV9RwgnBW8JVve51XYx3DxzMesbrumyHEKjfDsY8be3h
 Eyn4zt/6DUOrq5ztgCUWpIysjb/eaCqQSclzhGaIbuqDREWoHj6zODZIOpOHu+HKQKy+Y832Q
 Ode2Zb0tfWF7ekhhZzLP9SO6r6lmbkDUOpAO7sdpUGFBXae+nUAyyRjFQvTAVz2ObOyRSghFX
 3hPCvLPZi1tIzPD53b5wRhKYL6IvEzrS05clOVE+yW4dsEwt6fAup5oAinLyHeFCHMTO1S6fo
 zOXDwSLDozZkxwSRkb3JL/bFrRAjfTq0gJW9CD4PWMXMQG3AFVJ0q6bGdVvVGru2Ev0WYHmlz
 22Uw0nLYBICyKlf6mI0/JVZwnnLnuV2rox7jleHZDJZf1HFSyf50rrZqnNfS3g2qrF2mzmc1M
 x2s+hYi408FJAXbxDaysi5sZjkn4nytjN+ZULQESfRfdFTgDB0Tmbx+k=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
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 (-)

>> Well, setting eglot-watch-files-outside-project-root to nil makes a huge
>> difference. The time between the two consecutive log lines decreased to
>> 200 ms. Thanks for the hint.
>
> Interesting.  This suggests you're working in a relatively small project
> (nothing wrong with that! :-)  but have a large number of files under
> /home/ak/eclipse-workspace/.  Am I correct?

Around 14.000 LoC in the project. And yes, many other projects in
/home/ak/eclipse-workspace/.




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 10:15:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 05:15:41 2025
Received: from localhost ([127.0.0.1]:39545 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVoZI-0003sR-NO
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 05:15:41 -0500
Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:45363)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vVoZF-0003rw-O2
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 05:15:39 -0500
Received: by mail-lf1-x12a.google.com with SMTP id
 2adb3069b0e04-59445ee9738so4500808e87.3
 for <79809 <at> debbugs.gnu.org>; Wed, 17 Dec 2025 02:15:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1765966531; x=1766571331; darn=debbugs.gnu.org;
 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=fIiOl9caIBRS2nsocy2abKQ13xt7jOiIRC3LcH73crs=;
 b=R1f0mQxCmY8uHZR+wKJP1JRurBz5fnKReNaFCZjUAww6VWo4VP+8vjOuhRIXHhorpj
 +kZNpejoeNMXt0LNOvY2X9/naSqTzLevLIslBOrR4gXfYzMG8vb/fTumdsel9+TbmmwB
 DnK9lSwzyVm7WRpCkmkldMR7j6rTEwXKSy6MMWEL0npaGpYDP6FRRqiuff5F6cMjf+1N
 1LuPSm/QwW1mDI8SvyXXK/y9VCxdh31pupfwc47TlvzsmiZlhlxKvSF1a4/am9pjbQb7
 6Oq2/HxkZb8ShMB8JeoJtHqW6YuFr1y/aK6180Kqq2kVwWkU8gjie8QPhdttwDxo8nos
 l20A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1765966531; x=1766571331;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=fIiOl9caIBRS2nsocy2abKQ13xt7jOiIRC3LcH73crs=;
 b=ogcUsVKM/weGJwYS2xQXmpH1ZPDfFy+pdS2ZL9dv1FRFijFyAzcPi+WkjR3T8TnewQ
 FrvPe/miZEI+b1vKX1V1gTmjmM/ZmtTutaRRiWsD3GsTAdAAlP+9Pxh7mDpTGLsTp4N9
 5q8Z5E76BCvYXAeAUPYCvyOV9POtWGT0rpim+e4yoCS75kJ0DvNKpaHu1nGn4clCGycq
 9B78rCN3rqSyBob3e+i6YS45mX3LQxktLJ/LJmLXyuTA8AmVnk6pgDyJVuD4uipk3VwT
 OoB6PrdaKidRdwPN+T/LWXk/XJ8ovfKg3C981prCiUfIkugyUwlh0SVP4G86c9b4M5+r
 aiHA==
X-Forwarded-Encrypted: i=1;
 AJvYcCWd/M3en+p9fJMw0WXNKZT+vDhAhSJH2yd2SvmXe0LA6gO2u0UyCuxKGWmPXd6KxEANkClI+w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx4IMM2D3EUduUm7BrG1OTqG2fv2QCvmwHt0Kg15Tof459SLfCo
 p4pxQu5s7Y+SAf0N+1KPEPCTlERe1HhwrYdZqiRgnyvcVkvVw2i6UzQskk5aaA==
X-Gm-Gg: AY/fxX4JRXS2olFodCn+lENlKBcJ0kjqgwDl5M9eHDeqGO9JGFn2iMmnddYPNF3r1Rz
 3ZXVtBOsvga7XmVsGmN+kYipy77KhqoKxNOC52tUI9IMJ5ln+s0taQdddukJsPX+/+V6vK2XppH
 AdivPoiWZ78/+OuPuqMB42AWU2KXHAyKrH9cK19LEvkSers+19C7FbmhdjQfrnfh3uQxSsqV4Jh
 12TdRYXd7rtkK38qGLVKc1Pb0o36A/7JI8Xt16xk/nQz/nbJZx+t8ZBHjD4jeqkAzgpqqfmzibQ
 c/1yO1sJ1MS0QGAgq/f1UGx/CbnsBQqHpDNgPa6tzxlQICU6Uojy4auaSfFC7TQywmsM1GgfGdA
 dVQc7yBFCqvCi9htCQgSzS7YecllCy6spW0kdN//vLc0fx2S3cEjP7wcI/Z4cBr61kItsUElhYP
 26WmjCQ7zcIkjaybDxvyy0vfhDTA==
X-Google-Smtp-Source: AGHT+IHoWfk0sXeNtaFKVw+kl0jHKeh9+McHZti9fgpRq4bfzah9neT4GIrWr9SjNC94oPmFdO7qqA==
X-Received: by 2002:a05:6512:b85:b0:594:2c64:54c9 with SMTP id
 2adb3069b0e04-598faa4d67cmr5011477e87.37.1765966530525; 
 Wed, 17 Dec 2025 02:15:30 -0800 (PST)
Received: from krug (87-196-72-85.net.novis.pt. [87.196.72.85])
 by smtp.gmail.com with ESMTPSA id
 2adb3069b0e04-5990da50393sm2224875e87.52.2025.12.17.02.15.28
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 17 Dec 2025 02:15:29 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Andreas Kurth <andreas@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <87a4zh1lmm.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
 <87a4zh1lmm.fsf@HIDDEN>
Date: Wed, 17 Dec 2025 10:17:07 +0000
Message-ID: <87ldj15s64.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: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>,
 Dmitry Gutov <dgutov@HIDDEN>
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 (-)

Andreas Kurth <andreas@HIDDEN> writes:

>> Or maybe that won't do much. Your logs show an interesting sub-case, whe=
re
>> many different globs are asked of a single workspace for. I unoptimized
>> that...
>
> Well, setting eglot-watch-files-outside-project-root to nil makes a huge
> difference. The time between the two consecutive log lines decreased to
> 200 ms. Thanks for the hint.

Interesting.  This suggests you're working in a relatively small project
(nothing wrong with that! :-)  but have a large number of files under
/home/ak/eclipse-workspace/.  Am I correct?

Anymore, I pushed another change that probably won't do much more in
your case but is nevertheless needed, which is to apply file watching in
groups of "baseUri".  It may still help your current case (though 200ms
is pretty low already).

This also means that we should probably work on a much faster strategy
to list directories in arbitrary locations in the file system, so that
we can keep eglot-watch-files-outside-project-root to t.  I guess we'll
continue in the project-directories/project-files discussion subthread
with Dmitry.

Jo=C3=A3o




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 09:58:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 04:58:33 2025
Received: from localhost ([127.0.0.1]:39425 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVoIi-0002pk-Nj
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 04:58:33 -0500
Received: from mout.kundenserver.de ([217.72.192.73]:38415)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <andreas@HIDDEN>) id 1vVoCZ-0002Tz-Tu
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 04:52:13 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akurth.de;
 s=s1-ionos; t=1765965122; x=1766569922; i=andreas@HIDDEN;
 bh=9DBV3S8Nxy8pUWYHWI7FyHveHu31hA3QTTagZlXlFvQ=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=TA3GeTwZirrLQfZuFPOS6oety7Av8aBJMESM9IhsjoZrSxuBqCW4UqlTX5jAUTH3
 6cZgZanXMi3H/ZbMXvcXheWV+2Tw3/VQiXlv4VrejxCKopS2V8bTM90ZpCx39P6r4
 xxZZ9nNn9Nr1IGqRQqp9On5NEq4E1f/VxynRvxWmf2919hWjDmJwP/j4MgLYBsrA7
 19+lh3Jn0BUXNW7z3Rq5oqF8RGCAuhk7vmNRQYI6+//sJ5BBjQAf+zzvdoOLJD/65
 Z3vE0CP+BEcgs9CRsCniS2pNF9hrOxHHyBD0UJWhVTyufHoMnlu3iQWKLJE9ZhPAv
 D+Q2tCnkK9GKwYRWzQ==
X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6
Received: from hindemith ([82.165.232.23]) by mrelayeu.kundenserver.de
 (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id
 1MjSwu-1wFYM42m8A-00i2Px; Wed, 17 Dec 2025 10:52:02 +0100
From: Andreas Kurth <andreas@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
 <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
User-Agent: mu4e 1.12.13; emacs 31.0.50
OpenPGP: id=42E6E88E86E24E19; url=https://akurth.de/gpg/ak/pubkey.asc
Date: Wed, 17 Dec 2025 10:52:01 +0100
Message-ID: <87a4zh1lmm.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:83xZKoR8fKajGncwb3cVu79gHknLP2aISVmhsDyOxlV0m5pmVby
 hx/vUOfjDbA2N1Z8/XH7+IDlaajUuHQQo4cQj0DUgCY2LjDT5cW6TUZLIbKCtKsggCUIggt
 n7VvgRVmugTh0eZ5/gp1LH1dOZ5YEatJ3XE1sVv04guRSuxvn4kS+q4/eqqyRZMbDOIm989
 CKd31zjaX9X9W2aPiw8CQ==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:9KkHmwLNg5M=;LczMv2ScgVDzAJfJeRTBZXwSwoQ
 LN6m+VukRNLNiyqY0EBwPHK40lcbKb/yl5gXsWMp8IlluUNx5RoFSBwuFaCJR2qEMj6HlW1dO
 HPa++wV4G2pzCsZQgasRajhAdgz3sICQCbM8ByWYc3N3/tNzJ9k6LICxS/Kqxb1O3rKkhU0O6
 rozWNSlOxeW5T8MV38EdN3HWs19oiUkMZnEUbrGARfgTX6rX/YrrpJUG8sctI71lMmDDZmbSR
 kF+Qm/pQnu+LO8b1lWHKKcpyGUMa4NdtiN07lR5PEbsqcyoYMN0u493X3STKzXbJ+BtGxzEIW
 Qxf+RPNNWO+13cyJHKZmLi3UzdsB98+gybuD75tyDshANeo5KU9XHCeidDQUBcLdKckYjjcwd
 Qv+tcruqWzvHoXlx6aD6Fd7PLp9Ww7O++l3lIIXfUjZLYdStjhr0GZj4uDD8TBjfXerKzkZ1R
 KbSmoN2zM1dOInmiHaDLtzEWNX9YLZxeQijoYgquwdmlQTSmR319S9Fl13Nzc49Sh5/3e2DKY
 RFjrlXgPntwnsWhPP1V3+kfEMOnCLoO22/D/gbTb+iWa5ZZy32N13/cNM0vODqsdSChiQJZQL
 ObzNhtWmZ/gbs9ZME7+SA1IhVCxDwLZ64we6hTHJTv5K8zHzkBIjNBI2emTuzwIEoCmTjZYBb
 lmQjh3jTw3+rTJn0oo7xLz1JANUBQsI9uoR9AIVzJR91wqGlFVJgkhM3oZOLsBgxuRYym9Tsb
 Wf62EB8FGC1Yv2+ZuPaYb9EPbetoRXiH+sLg4SM520byTfMuAiCGdja1Ye8+vXJml307JW9Av
 JjyhRo257IgXNSvBt07261zBoOGzHduCa/IwZDPG9E5Vp/71j24idyJuFpHghkvCh3xgv/wxY
 aHW3TSfu79nWicK65VrbldA4n6zYdJCZF+N/z85jOjkeQRzY8tEZ1gooA9TNdSmxmL5CetueC
 F3AEMrGcM3OPfNdrlKXEsy6Wlg3uB71a0cygdxqGMNw1Yo1pE9BXceYsl4FrtDy+QfbCgT3HZ
 jX9RRRmNHX3nDsho2iNt17xQq5rOMp3Q8KKi5qMkbglhg5CRn2Ei844YzMt6NXES+g642yw+f
 b5KyIlbdQsUUNPojgO/akat6DXIbG51phJEucfBIJagUp97ubrvhL4cFPXVG3Z9ViwfTCx2cX
 V+SpAQ41Yl4yzknVR4gurGSCLxUkGVHzKlwDwcrwJI9GGJlzCJEPoK7B0FUfJUTZWHj4d+PDo
 j1/b7LwdwZJwcc/aQGYl89vCrwiYk0BDioXJ4HkHGB9OY45sRT8WUb5M9Xalh8OxLlNQNIG5U
 ShpDOzQo2aIKtoWB4J6oz7ul4JeO5EMRcFqluVxOXlAYUGZIDmpdQczjo/DL3SHxvstvqv1n7
 +Uj2w1YQ9m1g93X9/k477z7Z9KMjKx1zet6zdCOY5kRdF4mn3fT0/EsG5ZX+c0qYHDzBN49od
 HU3sF+2kpkCBRSljBIUJf7/7w4AsBELHZszkhiIujj655dwxwakkPB4hxBHMUNCkP/ZQx7k8I
 p0VZ8b7+Q4KcYuXapAQHyST/kA3CqgT8R+zauNW+AMMc+mgF9pvBvETj5zdUHBA+e98ReD46l
 0cRl+1KBZcP8Kxg2vP0D+IhfhGz8vlzpByxTnWWfeTnQnmclNnyiKDqf2z/m6d46gvawqwgYX
 6cmRdXafJKVIIO0bqOR53hxRrBRi85Ef6yl9ANmYdrd4p0QcJj39LcCowGFEVAGZqXiX8nw2q
 M0viFS3qbSjhITNi80zEqk5O+rpioB+nnOTJf0NqWqQeLVuB5TAyORertsctA+f9mlaBE9Ex6
 P6QP
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
X-Mailman-Approved-At: Wed, 17 Dec 2025 04:58:30 -0500
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>,
 Dmitry Gutov <dgutov@HIDDEN>
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 Wed, Dec 17, 2025, 08:07 Andreas Kurth <andreas@HIDDEN> wrote:
>
>> .
>>
>> I observe an up-to 10 seconds blocking period now after eglot
>> initialization, which wasn=E2=80=99t present before. I think these are t=
he
>> relevant log entries (there is no other log line in between):
>>
>
>
> Yup, I feared that.. Set eglot-watch-files-outside-project to nil, and try
> again...
>
> Or maybe that won't do much. Your logs show an interesting sub-case, where
> many different globs are asked of a single workspace for. I unoptimized
> that...

Well, setting eglot-watch-files-outside-project-root to nil makes a huge
difference. The time between the two consecutive log lines decreased to
200 ms. Thanks for the hint.




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 09:58:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 04:58:32 2025
Received: from localhost ([127.0.0.1]:39423 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVoIi-0002pi-0I
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 04:58:32 -0500
Received: from mout.kundenserver.de ([212.227.126.134]:53747)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <andreas@HIDDEN>) id 1vVmZF-0004M9-Qp
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 03:07:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akurth.de;
 s=s1-ionos; t=1765958840; x=1766563640; i=andreas@HIDDEN;
 bh=Ata+x6Uk1PtnozwRsOIPC22LzAVs6Nj5MUEnGBRuJWE=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=sp/OfsTsf1RgpUZemRTUhqttNyxisFhQ5T62Ydy4DYq2cIKZmHI9B660BMpU9fx3
 h+rotiBBG9t43kKVX4Z7W3nCfsDsCa0DqXRPcuj9FYUrLPxb8EOyBMVvsmbYYj1r7
 KqoG+cZb5WslQkfPCCqdOCSt+DbpNPw8+CEYnbO389OHg6yrc1ivI3hS8Xy758VaI
 VrX05YNWolBMBupe2RCmXZSkMoziFNi6r84ZWJ3C240+UDhEgK7Ww85d0ZPqge6JM
 sbQT+smS1wbingcaEsUwJO7Hlzvnbr+lPgnlTXxC5/0Le3wvPfQFAc85cDANbVNJU
 VVmy2bEomH+FguUaFQ==
X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6
Received: from hindemith ([82.165.232.23]) by mrelayeu.kundenserver.de
 (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id
 1Mzyi6-1vsPkc2Xck-00r4te; Wed, 17 Dec 2025 09:07:20 +0100
From: Andreas Kurth <andreas@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
User-Agent: mu4e 1.12.13; emacs 31.0.50
OpenPGP: id=42E6E88E86E24E19; url=https://akurth.de/gpg/ak/pubkey.asc
Date: Wed, 17 Dec 2025 09:07:17 +0100
Message-ID: <87fr991qh6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:3wIed5RkeLsYA+w8Dxg8zOm331Z5r/pXFmU/b+a7e+wtXI5ekNI
 VcnoUlH6ajg/jPqyetIkZFziQLaCEDH5CEX02jajH79YAKO+GsQkHmy0SrnjV95e2Iknhi4
 NGJjVT2aTg96LHYKMcd1q7IU0xGkdIzzivSjozliu1SrJpbdylpEebVefUGMSiyqPBHkPW6
 0VKTI+Zy6FbOvBvcK1oxw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:xc3MfOl7ZE8=;YJTBUp+kmqqJwW9qqqzgNEEa3Em
 5HTlGVdh+0VuDwDJ0nWwX/C7taP2YU8CvZn1FYrSqUE24NZI/yb3TMIMgN+XigZClPWZ9ZVhQ
 O6vYj5Dpv8IgzCXrUQQjz9x3P6AbBfQaPC6JTBc3EAPCyEXFTNqZRErkba8oWLluIBAg/v7xV
 cjlQswUcCLYN7LA0sD6CYZc/SKIb/UsCCSycsgzCvZHoZfOqLr5j8Hq2L4bZKeuVJarrnfaNV
 91iAqUKwqZeIizmb2Mxls9+j9msFlt60fWhwMKtqOADq0x5zenscg+g28Rgk5SWwTMIPtloTJ
 dIpZeN6GnPw+v22YGvEj7mfx+0G18iSxJSSG4WHIRSO+OhexFO3LKu2U1RNgoSq3DQY7WeaFq
 t7s6ExAHVY2+kRmeMQn+4HGctNbmMLGFer1yHmFXWrAxdEvZZlqNGi37eesiSyMljXmQ/qu8k
 O6Xahd24HRA0OdA7XjiN+9Cd77C8jccUPVGeMe9l+XhBDJWZ8tOKPGFNUL64IfOdcsxHA0Uuw
 bs/vjnyu8pYppfdpKk9LenycgwKFM1u9EfbM6qtslgqC0gWTvhFQLH9OmIBX5Dc+wOtV5SW8V
 jCu+7KAKLyiS8a8Z57r0+0sWaYl1RfKnOSmN1R+Am0oFZrw2Jjs39cpIjtE6egKPsf0TgELbE
 PLKkw3k64YlTU8vLFWgMAU+uG+oKbnoLImgPL5pQJzx50y1qSNj3SmRTgYtic3eZSsKGOfmK1
 AkWuNQ48rXbOdbE356rVUy27niBE/g8uvQYFbxpi2+BDOEGFrb/oiasSOd2d5ZmCETaxkvF05
 7wWvKGzXd9j5ChkYrtQe2pFCajp3I4BEGxYVTQA7T/bIOKykdDwaMsCwhJ59IgYW9Xi96yBN6
 RjWnByiMpzxm8SDwurAw8onYcw7zQ8bda32vDtCKpygtAE3IelQi1OgBJdvTrAhLNBS5tuRgM
 M/L8jYje02+BtQr9dqVYrqgwxtHP+13GF/j8k4vWa1EbN1q4pt64RG+LwzXBZ031QFFtjzRcJ
 EGvBpqGZFNP8YFxf/QW7m+0e38f4C3ISUVk6hEfY/R+rtkojFMhgbMVK5CLu/gp74M0F7nwBa
 6ArByoRWgNzY3xBe88t1rtFV05eC0QBDvqNxDCziWMGbH/ETDrWrinBy/XdntKgnrNJqmH10Q
 6X4bxcbTqr9UF4T4z+fd81G8RoKiwRV+fWbr+dGnXkRq22pSd1Ml+rCpZ6zaxU53/jFDOYKH7
 HWN0el6DyKACqd/OnHYF/em0R5Lg7/FV9w7qGDzmBRtg9bDY5NBfrhubx702h7x/n344v/bdv
 iV5PJGmGemOc+ykEcqUCOX8rhxfOdqAV5nqnH4TZTRS1Odhw5DwXAiZ6n1bM+gWoFJKdxrIkV
 k4SjEl2aROzhJQvWHlCMwUoDokerwybNDuV9YTZGS28/jswo04Ogii/e5z8OnAYQzgPM59bcs
 UxMEl8mNn/x6nj4oLGwxhfYP2IuRAUhtfaSZwJSZWudVzl5t2u0x23ZhPpVNNh23UbpbLczYm
 7u4n9igavy3uDRLHovjsXN/EcvTqkbO4d0VNf+hxTIZbKmG7X+fLEcoR1L/ner4AT49kKfEiR
 v/JVdL2Ws6hgGDcew+cbj4kCc+X5W6e6o0mh0R92sc3lkoBZgv76EU4dvi06leQRcpFPeAITx
 tyWnvB2CJrHhFtdO74pYQIL8jDN++A4NWayB67Cjo+u1sJs8ennpXyWTJlUQa65P/wSxZeSNk
 lS/b3OuiY8FC9G4UrnVbWJ+kxoHuXvTRh1nbmLzwmyRr5KCf7zUzElIQ=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
X-Mailman-Approved-At: Wed, 17 Dec 2025 04:58:30 -0500
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>,
 Dmitry Gutov <dgutov@HIDDEN>
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 wrote:
>> My issue was with
> "globPattern":{"baseUri":"file:/home/ak/eclipse-workspace/idapi/","patter=
n":"eclipse-formatting.xml"},
>> which is found in project root. It is parsed without error now. However,
>> while eglot sends didChangeWatchedFiles for *.java files, it does not
>> for eclipse-formatting.xml. That=E2=80=99s not a problem for me (I don=
=E2=80=99t modify
>> that file anyway), just wanted to mention.
>
> I see. I pushed a follow-up to that commit. Please test. I wasn't
> considering that globs provided in this new format must be matched
> against the path relative to the baseUri. If it doesn't work, I need
> to setup your language server to debug, which will take longer.

It is working now, even if the file is outside the project.

I observe an up-to 10 seconds blocking period now after eglot
initialization, which wasn=E2=80=99t present before. I think these are the
relevant log entries (there is no other log line in between):

[jsonrpc] e[08:56:52.784] <-- client/registerCapability[9] {"jsonrpc":"2.0"=
,"id":"9","method":"client/registerCapability","params":{"registrations":[{=
"id":"272d410c-45a9-417e-aaa3-a03926de7063","method":"workspace/didChangeWa=
tchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.java"},{"gl=
obPattern":"**/.project"},{"globPattern":"**/.classpath"},{"globPattern":"*=
*/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globPattern":"**/*.grad=
le"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**/gradle.properties=
"},{"globPattern":"**/pom.xml"},{"globPattern":"/home/ak/eclipse-workspace/=
idapi/api/target/generated-sources/annotations/**"},{"globPattern":"/home/a=
k/eclipse-workspace/idapi/service/target/generated-sources/annotations/**"}=
,{"globPattern":"/home/ak/eclipse-workspace/idapi/service/target/generated-=
test-sources/test-annotations/**"},{"globPattern":"/home/ak/eclipse-workspa=
ce/idapi/api/target/generated-test-sources/test-annotations/**"},{"globPatt=
ern":{"baseUri":"file:/home/ak/.local/share/lsp/jdtls/","pattern":"eclipse-=
formatting.xml"}},{"globPattern":{"baseUri":"file:/home/ak/eclipse-workspac=
e/idapi/","pattern":"api"},"kind":4},{"globPattern":{"baseUri":"file:/home/=
ak/eclipse-workspace/","pattern":"idapi"},"kind":4},{"globPattern":{"baseUr=
i":"file:/home/ak/eclipse-workspace/idapi/","pattern":"service"},"kind":4}]=
}}]}}

[jsonrpc] e[08:57:03.107] --> client/registerCapability[9] {"jsonrpc":"2.0"=
,"id":"9","result":null}




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 08:27:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 17 03:27:05 2025
Received: from localhost ([127.0.0.1]:38443 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVmsC-0005V4-LN
	for submit <at> debbugs.gnu.org; Wed, 17 Dec 2025 03:27:05 -0500
Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]:44088)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vVms9-0005UU-Ee
 for 79809 <at> debbugs.gnu.org; Wed, 17 Dec 2025 03:27:02 -0500
Received: by mail-ot1-x335.google.com with SMTP id
 46e09a7af769-7c76f65feb5so4484132a34.0
 for <79809 <at> debbugs.gnu.org>; Wed, 17 Dec 2025 00:27:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1765960015; x=1766564815; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=HxFiabO2cSoZ9ubUY4eKnWNBwVWPY8+bx3Q5cKLKrPg=;
 b=KFYBCkis4ET0+FVWcB0Uf4CxKEKvePQnER/JHNnTrrj1RTvo+U0JN9bUVT5lq1OJg/
 7VPQxyRZyueipLprtjU3FM9YTSmIzYsJg2Uwi4dX+HfR2oWcLPIBlnd6h5X1BbWcAyZp
 rZ7Y3P2w/LfwitEILHHSmgBnM31Nk0nrlaFwuu6eKs9xKzPMTRIM9ur/nppk64/xTcXh
 l1MHh8+rsfjwqN4Q5rNrBdzSgmUNJdoEZtHi0M+iPCBCyHhURMHuRxsAa57dvyuWEVnj
 Im5QEyUGSqEKiYhz8wfMpJr2rm9hGIPg883g38drSVxF4DWG7BMpkzd4qW3+HBWDq/D2
 uxcA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1765960015; x=1766564815;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=HxFiabO2cSoZ9ubUY4eKnWNBwVWPY8+bx3Q5cKLKrPg=;
 b=pNTfsC2ro7Cjr8gVyJFKp9eSxGGHZmHvtt4aJW9/TsteL4WaARU/5L4N56xY2x7aQP
 kFGsR7ez2Ks+G4iefcJStZLC0yRi8coaVZ8C2aMgLhO4l6b3HkY1VvCNPX4SqVtB5XtS
 WQqvmYzFaPx0UQWL/YiezXzMcNOOVzODjL44JzYvEMJjMgoyrKNcb2/rPzyQp+XobkJS
 GfHRQ4HnmVelECyEyrvtWRlxCfR/4eRLsAZn5uhGYjt7rcQWkih38dGO4DjATPpWBSId
 2kPgWa45plx6YtbHdMZk4r55wLrLTPk2UF2Dhjs6Sa+X5CrH5tgQyDUkb2+BLZXk5Tyj
 7vqA==
X-Forwarded-Encrypted: i=1;
 AJvYcCV/JXdD9mzNEZMsXNE/IPZyv+UGAsh2joTfCJBVyeoVPC7K0GLjObRsKLURKjjzmMCutobEgQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw4fG6l2jzQVFBaMRYHtLMRI54kgQB2M4iVt0vR+Tr1L+ekN3em
 pERLOjDl0ixTSR8cHNX05Xu4WE1BsE6gjbtW8mFLo3FD4sF70kEhUQuPMM2C48c329aIUQ0aG7i
 /IlAZGuKq17EU1+SEpN1NA2H1yUuo6xw=
X-Gm-Gg: AY/fxX6aPsWvpbD1FNGdv7uCFWu7F1gWpOKfbM8ZmCY8dA1HkKCQXisVfIqv0PhemiR
 dPqoArTfKXnowB83ALRPe47qqd5Lvta2Ss2ye/qTwG0pogIeGr3Q/Oz85UdsHgawGJkoO87hKli
 TQX0/L64aUQ/M7Wzt9YdAKyla9JaCnfwJveUAvE1AKuVXnIFUpV50VHhN2UVkENisVgOuZbS4zs
 WLxjKxVUmu9WpZfYKnDfHcxRY3pAGnUgqKCIh+tRevwOj4UUkm0mcqjO+HosnZVp4fsZ+xo1y3H
 oEAh
X-Google-Smtp-Source: AGHT+IEL8ollx4Tir9Q6vHYOFYuXYFt5cekfXJpb3CcS6g/qcGRQo6AAoOSPQHYBA/pKfelk+5rXb9vFikQVlXyPBis=
X-Received: by 2002:a05:6820:1caa:b0:65b:3641:bf7a with SMTP id
 006d021491bc7-65b4579151amr6397104eaf.81.1765960015244; Wed, 17 Dec 2025
 00:26:55 -0800 (PST)
MIME-Version: 1.0
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
 <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
 <87fr991qh6.fsf@HIDDEN>
In-Reply-To: <87fr991qh6.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Wed, 17 Dec 2025 08:26:44 +0000
X-Gm-Features: AQt7F2qQ1oPkua-cJL2Kwg78cVohmh0p8IRY3FzETmZV2uuu7Lk_izI3DC-qezg
Message-ID: <CALDnm50jopPS7-5uGMimKNwsYEKuc+x4hVBpAZhN6u7dRtS2cQ@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Andreas Kurth <andreas@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000065737a0646219b61"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>,
 Dmitry Gutov <dgutov@HIDDEN>
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 (-)

--00000000000065737a0646219b61
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 17, 2025, 08:07 Andreas Kurth <andreas@HIDDEN> wrote:

> .
>
> I observe an up-to 10 seconds blocking period now after eglot
> initialization, which wasn=E2=80=99t present before. I think these are th=
e
> relevant log entries (there is no other log line in between):
>


Yup, I feared that.. Set eglot-watch-files-outside-project to nil, and try
again...

Or maybe that won't do much. Your logs show an interesting sub-case, where
many different globs are asked of a single workspace for. I unoptimized
that...

>
> [jsonrpc] e[08:56:52.784] <-- client/registerCapability[9]
> {"jsonrpc":"2.0","id":"9","method":"client/registerCapability","params":{=
"registrations":[{"id":"272d410c-45a9-417e-aaa3-a03926de7063","method":"wor=
kspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern"=
:"**/*.java"},{"globPattern":"**/.project"},{"globPattern":"**/.classpath"}=
,{"globPattern":"**/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globP=
attern":"**/*.gradle"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**=
/gradle.properties"},{"globPattern":"**/pom.xml"},{"globPattern":"/home/ak/=
eclipse-workspace/idapi/api/target/generated-sources/annotations/**"},{"glo=
bPattern":"/home/ak/eclipse-workspace/idapi/service/target/generated-source=
s/annotations/**"},{"globPattern":"/home/ak/eclipse-workspace/idapi/service=
/target/generated-test-sources/test-annotations/**"},{"globPattern":"/home/=
ak/eclipse-workspace/idapi/api/target/generated-test-sources/test-annotatio=
ns/**"},{"globPattern":{"baseUri":"file:/home/ak/.local/share/lsp/jdtls/","=
pattern":"eclipse-formatting.xml"}},{"globPattern":{"baseUri":"file:/home/a=
k/eclipse-workspace/idapi/","pattern":"api"},"kind":4},{"globPattern":{"bas=
eUri":"file:/home/ak/eclipse-workspace/","pattern":"idapi"},"kind":4},{"glo=
bPattern":{"baseUri":"file:/home/ak/eclipse-workspace/idapi/","pattern":"se=
rvice"},"kind":4}]}}]}}
>
> [jsonrpc] e[08:57:03.107] --> client/registerCapability[9]
> {"jsonrpc":"2.0","id":"9","result":null}
>

--00000000000065737a0646219b61
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div dir=3D"auto">On Wed, Dec 17, 2025, 08:07 Andreas Kur=
th &lt;<a href=3D"mailto:andreas@HIDDEN">andreas@HIDDEN</a>&gt; wrote=
:</div><div class=3D"gmail_quote gmail_quote_container" dir=3D"auto"><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1=
px solid rgb(204,204,204);padding-left:1ex">.<br>
<br>
I observe an up-to 10 seconds blocking period now after eglot<br>
initialization, which wasn=E2=80=99t present before. I think these are the<=
br>
relevant log entries (there is no other log line in between):<br></blockquo=
te></div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">Yup, I feared that.. Set eglot-watch-files-outside-project to nil=
, and try again...</div><div dir=3D"auto"><br></div><div dir=3D"auto">Or ma=
ybe that won&#39;t do much. Your logs show an interesting sub-case, where m=
any different globs are asked of a single workspace for. I unoptimized that=
...</div><div class=3D"gmail_quote gmail_quote_container" dir=3D"auto"><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
:1px solid rgb(204,204,204);padding-left:1ex">
<br>
[jsonrpc] e[08:56:52.784] &lt;-- client/registerCapability[9] {&quot;jsonrp=
c&quot;:&quot;2.0&quot;,&quot;id&quot;:&quot;9&quot;,&quot;method&quot;:&qu=
ot;client/registerCapability&quot;,&quot;params&quot;:{&quot;registrations&=
quot;:[{&quot;id&quot;:&quot;272d410c-45a9-417e-aaa3-a03926de7063&quot;,&qu=
ot;method&quot;:&quot;workspace/didChangeWatchedFiles&quot;,&quot;registerO=
ptions&quot;:{&quot;watchers&quot;:[{&quot;globPattern&quot;:&quot;**/*.jav=
a&quot;},{&quot;globPattern&quot;:&quot;**/.project&quot;},{&quot;globPatte=
rn&quot;:&quot;**/.classpath&quot;},{&quot;globPattern&quot;:&quot;**/.sett=
ings/*.prefs&quot;},{&quot;globPattern&quot;:&quot;**/src/**&quot;},{&quot;=
globPattern&quot;:&quot;**/*.gradle&quot;},{&quot;globPattern&quot;:&quot;*=
*/*.gradle.kts&quot;},{&quot;globPattern&quot;:&quot;**/gradle.properties&q=
uot;},{&quot;globPattern&quot;:&quot;**/pom.xml&quot;},{&quot;globPattern&q=
uot;:&quot;/home/ak/eclipse-workspace/idapi/api/target/generated-sources/an=
notations/**&quot;},{&quot;globPattern&quot;:&quot;/home/ak/eclipse-workspa=
ce/idapi/service/target/generated-sources/annotations/**&quot;},{&quot;glob=
Pattern&quot;:&quot;/home/ak/eclipse-workspace/idapi/service/target/generat=
ed-test-sources/test-annotations/**&quot;},{&quot;globPattern&quot;:&quot;/=
home/ak/eclipse-workspace/idapi/api/target/generated-test-sources/test-anno=
tations/**&quot;},{&quot;globPattern&quot;:{&quot;baseUri&quot;:&quot;file:=
/home/ak/.local/share/lsp/jdtls/&quot;,&quot;pattern&quot;:&quot;eclipse-fo=
rmatting.xml&quot;}},{&quot;globPattern&quot;:{&quot;baseUri&quot;:&quot;fi=
le:/home/ak/eclipse-workspace/idapi/&quot;,&quot;pattern&quot;:&quot;api&qu=
ot;},&quot;kind&quot;:4},{&quot;globPattern&quot;:{&quot;baseUri&quot;:&quo=
t;file:/home/ak/eclipse-workspace/&quot;,&quot;pattern&quot;:&quot;idapi&qu=
ot;},&quot;kind&quot;:4},{&quot;globPattern&quot;:{&quot;baseUri&quot;:&quo=
t;file:/home/ak/eclipse-workspace/idapi/&quot;,&quot;pattern&quot;:&quot;se=
rvice&quot;},&quot;kind&quot;:4}]}}]}}<br>
<br>
[jsonrpc] e[08:57:03.107] --&gt; client/registerCapability[9] {&quot;jsonrp=
c&quot;:&quot;2.0&quot;,&quot;id&quot;:&quot;9&quot;,&quot;result&quot;:nul=
l}<br>
</blockquote></div></div>

--00000000000065737a0646219b61--




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 01:30:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 16 20:30:03 2025
Received: from localhost ([127.0.0.1]:34227 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVgMb-000495-VD
	for submit <at> debbugs.gnu.org; Tue, 16 Dec 2025 20:30:03 -0500
Received: from forward501a.mail.yandex.net ([178.154.239.81]:48636)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vVgMZ-00048Y-8u
 for 79809 <at> debbugs.gnu.org; Tue, 16 Dec 2025 20:30:00 -0500
Received: from mail-nwsmtp-smtp-production-main-67.vla.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-67.vla.yp-c.yandex.net
 [IPv6:2a02:6b8:c1d:6148:0:640:ada2:0])
 by forward501a.mail.yandex.net (Yandex) with ESMTPS id 817E480CD5;
 Wed, 17 Dec 2025 04:29:51 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-67.vla.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id mTJwBIbLwqM0-tJbI9y14; 
 Wed, 17 Dec 2025 04:29:50 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1765934991; bh=d5Xm77I9vQEkz+CJRX1Xdx1Hy/C05h3MVniAiZRBSNk=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=RDXN6/ZoD/QRblcrCYRrDZ4ASWlBDrsHON1ff8jcpfrR6Qn3bE3EbNfvNRgF42Gxv
 sPIddstKt0Hf3ODWRfvh15wWfQpBGWAXtrU72WoUEbjvpDo5RhUklSC+Kjn9FfHUWh
 2AxWZsS5jBrkbneonClkGc1f1VLr3iniOrXEI4SE=
Authentication-Results: mail-nwsmtp-smtp-production-main-67.vla.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41])
 by mailfauth.phl.internal (Postfix) with ESMTP id 963D3F40085;
 Tue, 16 Dec 2025 20:29:48 -0500 (EST)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-01.internal (MEProxy); Tue, 16 Dec 2025 20:29:48 -0500
X-ME-Sender: <xms:jAdCaVhYLbqOWTsDMfyXXyxAhCXn58d2Yh-2WxZGCW3BJQS253HlsA>
 <xme:jAdCaReln3WNsvpHDWVCRDOk0KFsCgTuwFDvu22y2IjCMEmyIn3r8XGdf61JaRW0q
 sdGAwCdYwlIfBoVBDJvT9z6XRT3ljz7GWDI2YNTyUGgCx3KerBmZbw>
X-ME-Received: <xmr:jAdCaSf9_dpyEddB9rnN74wN4SsvlPwfiVBMRfji2xnTOU7u3dweU57ASd7q3YFTL64B>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeguddvgecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeffuddufeegjeeggeefgeegudehheevgefggfelkeejgfduleeutdeigffffffhueen
 ucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh
 grmhepmhgrihhlfhhrohhmpegughhuthhovhdomhgvshhmthhprghuthhhphgvrhhsohhn
 rghlihhthidqudeffeefleelheehvddqvdelgeejjeejjeeiqdgughhuthhovheppeihrg
 hnuggvgidrrhhusehfrghsthhmrghilhdrtghomhdpnhgspghrtghpthhtohepfedpmhho
 uggvpehsmhhtphhouhhtpdhrtghpthhtohepjhhorghothgrvhhorhgrsehgmhgrihhlrd
 gtohhmpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgshdrghhnuhdrohhrghdprhgt
 phhtthhopegvmhgrtghssegrkhhurhhthhdruggv
X-ME-Proxy: <xmx:jAdCaT9XVIpL6vCBNhbiw0G7wx1cmZbDipePwEUv6zIvov8fLODSgA>
 <xmx:jAdCaWk7wSayDFASrUB_L0H2IWFGq7QcjW7QgPZ--qxBGUbsP8xgtQ>
 <xmx:jAdCad8iBPlOGbXqAIWE5K7_u_Dnz7BoCY_OE4hqh0jbAC3rGmMQNQ>
 <xmx:jAdCack8frMGo-h5xUUw7bQjFkQ6lndgKymB7wmqi62Xe1GuKeQkCA>
 <xmx:jAdCaS0415HQP2_v0ToiuoRQz1qrYz_9tJpWykjjo5RGaRI0pI68Y3Uo>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 16 Dec 2025 20:29:47 -0500 (EST)
Message-ID: <ab19db3c-c048-4e65-92a5-81f789c0111d@HIDDEN>
Date: Wed, 17 Dec 2025 03:29:45 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <87pl8e5m4p.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <87pl8e5m4p.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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 16/12/2025 20:15, João Távora wrote:
> Dmitry Gutov <dgutov@HIDDEN> writes:
> 
>> Hi Joao,
>>
>> On 23/11/2025 03:45, Dmitry Gutov wrote:
>>> If it helps (and the FILES argument does not), we could install a
>>> smaller change later.
>>
>> Perhaps you'll want to try that smaller change, now pushed as
>>
>> https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?h=master&id=48a44449775
>>
>> It lets you pass the specific subdirectory to scope the list of
>> project files, in the DIRS argument.
>>
>> See my earlier reservation on whether this optimization is practical
>> in general (but maybe I'm interpreting the format of that globs value
>> wrong).
> 
> I haven't had time to look at that reservation (can you restate it?),

The reservation was about having to scan the whole project anyway, but 
looks like (after re-reading the thread) the use case is about having an 
external directory added, so it's okay.

> but I did test this and found a sizeable improvement versus the naive
> (remove-if-not (lambda () (file-in-directory-p...))  (project-files...))
> strat, some 7x times when finding files in the src of the Emacs repo
> itself.  I don't understand what you mean by "smaller change", but if
> there's still some relatively low hanging fruit, I think it's good to
> grab it.

That was the smaller change. It only affected listing files using Git, 
and for directories outside the project we use 'find' anyway. So this 
looks good, no need to even bump the 'project' dependency, I think.

> Anyway, I pushed the fix to Eglot to this issue (heads up Andreas,
> please test) that relies on this latest version of project.el, or at
> least works more efficiently with it.  See the commit
> 
>     commit 06f31dc2d6305191bd35ad3e6017ba6e81a8b84d
>     Author: João Távora <joaotavora@HIDDEN>
>     Date:   Tue Dec 16 17:45:36 2025 +0000
>      
>         Eglot: support relativePatternSupport for file watching
>         (bug#79809)
> 
> I also benchmarked a little more the idea of a project-directories based
> on 'find', 'find -type d', and 'git ls-files'.  It's also always faster than
> the naive (delete-dups (mapcar #'file-name-directory (project-files ...)))
> but not always spectacularly so.  Only 'find -type d'  provides a
> sizeable improvement (again around 7 times), but with false positives
> (directories with nothing but project-ignored files).  Let me know if
> you want to see the code or the benchmarks.

I wonder if you will get a comparable performance improvement by just 
binding grep-find-ignored-files and vc-directory-exclusion-list to nil 
around the existing call - maybe only when the directory is "external", 
but those are only uses in non-VC implementation of project-ignores anyway.

'find .' without arguments for ignoring files has always been very fast, 
usually close to our 'git ls-files' call because we have to use '-o' at 
least when project-vc-include-untracked is non-nil.

So even if we add a new method 'project-directories' for better perf, I 
think it would still be slower than the absolute best we could do using 
custom code when we know. And then it's an extra method for backends as 
well, called 'project-list-dirs' or something, to be implemented in 
every one of them.

(If we don't really need it to be affected by Git/Hg/etc's ignores 
configuration, the caller might as well use custom code for this case.)




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

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


Received: (at 79809) by debbugs.gnu.org; 17 Dec 2025 00:36:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 16 19:36:23 2025
Received: from localhost ([127.0.0.1]:33726 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVfWg-0000xr-Mu
	for submit <at> debbugs.gnu.org; Tue, 16 Dec 2025 19:36:23 -0500
Received: from forward502b.mail.yandex.net ([178.154.239.146]:38772)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vVfWd-0000xN-GH
 for 79809 <at> debbugs.gnu.org; Tue, 16 Dec 2025 19:36:20 -0500
Received: from mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net
 [IPv6:2a02:6b8:c1c:405:0:640:8814:0])
 by forward502b.mail.yandex.net (Yandex) with ESMTPS id B4A5B81E92;
 Wed, 17 Dec 2025 03:36:12 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id 9aIxFsbLpeA0-qk3pjxgk; 
 Wed, 17 Dec 2025 03:36:12 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1765931772; bh=7v7hG4aH+1H5YMycz0lk28BHLa4iEXQec49YNH8J9Ss=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=RnrF3JdclKamCLFSCamfqdz4nNnrQM3Qb5vJShQyLLI8TA9Wd6difCY7qXFy9cVdT
 OVf0x84Iey2PcxtkEV5NoPhVJg7QDWn90SbYIDY+BBoYL9TxDAGTJUFvHzXfps+Hmj
 k/rhbK8VoDBDqKIKhLobJ9s72ctniGMDkuxNSCP0=
Authentication-Results: mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
 by mailfauth.phl.internal (Postfix) with ESMTP id 96E07F40068;
 Tue, 16 Dec 2025 19:36:09 -0500 (EST)
Received: from phl-frontend-04 ([10.202.2.163])
 by phl-compute-05.internal (MEProxy); Tue, 16 Dec 2025 19:36:09 -0500
X-ME-Sender: <xms:-fpBaTGGoIzW_hPuVauoly94eEPYlCeoOzmfCzl1o8yowEwIxRrmfA>
 <xme:-fpBaXXpQ6_yLJZxFFYVKbnTHmBM7YBBHN3q585Y3EPIRz0grngAVoRggcIx6LZIR
 LJgcpLuceHXdOih_3bcKRUqVBgz7VsfPBFUodzRCyE2iyM8-4Gp5yDH>
X-ME-Received: <xmr:-fpBaaKSb78yRAApSaCK1oSxkoG2yBTeaD9ntbmB5IQeoh6AFQCm1iEMpTA3MCeSwNlB>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeguddugecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpedtgffhieehgedvueegffeghffggedtvedvieefleejueejtdfhheefgfduveelveen
 ucffohhmrghinhepshhuphgvrhhushgvrhdrtghomhenucevlhhushhtvghrufhiiigvpe
 dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuthhovhdomhgvshhmthhprghuthhh
 phgvrhhsohhnrghlihhthidqudeffeefleelheehvddqvdelgeejjeejjeeiqdgughhuth
 hovheppeihrghnuggvgidrrhhusehfrghsthhmrghilhdrtghomhdpnhgspghrtghpthht
 ohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiisehgnhhurdhorh
 hgpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphht
 thhopehjohgrohhtrghvohhrrgesghhmrghilhdrtghomhdprhgtphhtthhopegvmhgrtg
 hssegrkhhurhhthhdruggv
X-ME-Proxy: <xmx:-fpBaf8It0IDervyReH0GhPdeO418xb8x4opxRcoQ2hACrGmGtKrzw>
 <xmx:-fpBaVIkWfRXlVPvaV9RJVS3PsXSLTTLqPxq2_BQpWO4Xuqq2hlsGQ>
 <xmx:-fpBaclwxAbyHAUY3QxJLbnO5M0OCMVj2fR6cT828YeriO8y8VO8vA>
 <xmx:-fpBaROvLy7MfruTQXcn0nNSYP_b-o5_HRgWY6fE9rac5XWp2H2bdA>
 <xmx:-fpBaa2DSXwS7TYwIP4RqqBPFtUJ5_bJCxqMgHlhAEc8nw8XTzXIM7-_>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 16 Dec 2025 19:36:07 -0500 (EST)
Message-ID: <142ebf93-22b1-4026-bdfe-2b8ab1b34a24@HIDDEN>
Date: Wed, 17 Dec 2025 02:36:05 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> <86jyyn5co9.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <86jyyn5co9.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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 16/12/2025 05:27, Eli Zaretskii wrote:
>> Date: Tue, 16 Dec 2025 01:04:44 +0200
>> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
>> From: Dmitry Gutov <dgutov@HIDDEN>
>>
>> On 14/12/2025 08:45, Eli Zaretskii wrote:
>>> The test included in this changeset fails here on MS-Windows:
>>>
>>>     fatal: There is nothing to exclude from by :(exclude) patterns.
>>>     Perhaps you forgot to add either ':/' or '.' ?
>>>     Test project-vc-supports-project-in-different-dir backtrace:
>>>       signal(error ("Failed (status 128): git --no-pager ls-files -z -c --
>>>       apply(signal (error ("Failed (status 128): git --no-pager ls-files -
>>>       (setq value-118 (apply fn-116 args-117))
>>>       (unwind-protect (setq value-118 (apply fn-116 args-117)) (setq form-
>>>       (if (unwind-protect (setq value-118 (apply fn-116 args-117)) (setq f
>>>       (let (form-description-120) (if (unwind-protect (setq value-118 (app
>>>       (let ((value-118 'ert-form-evaluation-aborted-119)) (let (form-descr
>>>       (let* ((fn-116 #'equal) (args-117 (condition-case err (list '(".dir-
>>>       (let* ((dir (let* ((testfile (and t "d:/gnu/git/emacs/trunk/test/lis
>>>       #f(lambda () [cl-struct-project-tests--trivial-tags t] (let* ((fn-96
>>>       #f(compiled-function () #<bytecode 0x102183c982113b72>)()
>>>       handler-bind-1(#f(compiled-function () #<bytecode 0x102183c982113b72
>>>       ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>>>       ert-run-test(#s(ert-test :name project-vc-supports-project-in-differ
>>>       ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>>>       ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
>>>       ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
>>>       ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
>>>       eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
>>>       command-line-1(("-L" ";." "-l" "ert" "--eval" "(setq treesit-extra-l
>>>       command-line()
>>>       normal-top-level()
>>>     Test project-vc-supports-project-in-different-dir condition:
>>>         (error
>>>          "Failed (status 128): git --no-pager ls-files -z -c --exclude-standard -o -- :(exclude,glob,top)**/etc")
>>>        FAILED   9/10  project-vc-supports-project-in-different-dir (0.047188 sec) at lisp/progmodes/project-tests.el:147
>>>
>>> Let me know if I can help you debug this.
>>
>> Any chance your installation of Git is the one that doesn't support
>> 'exclude' pathspecs still?
> 
> How do I find out?

Looking at the backtrace, the support is probably there. But we have 
this error:

   There is nothing to exclude from by :(exclude) patterns.
   Perhaps you forgot to add either ':/' or '.' ?

for this command:

   git --no-pager ls-files -z -c --exclude-standard -o -- 
:(exclude,glob,top)**/etc

Where all arguments are passed separately as ARGS to 'process-file'.

This works fine here, but apparently fails on MS-Windows (at 
asterisks?). This question/answer hits at such possibility: 
https://superuser.com/questions/897599/escaping-asterisk-in-bash-on-windows

So maybe asterisks need quoting on MS-Windows? I wonder on which level 
that should be done. Have we seen similar problem before?

If I just quote them for all platforms, the same test starts failing on 
my computer now. But the change could look like this, does it help?

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index d543f183216..84fd74c5c86 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -735,7 +735,7 @@ vc-git-project-list-files
                                           ;; ./abc -> abc
                                           (setq i (substring i 2))
                                         ;; abc -> **/abc
-                                       (setq i (concat "**/" i))
+                                       (setq i (concat "\\*\\*/" i))
                                         ;; FIXME: '**/abc' should also
                                         ;; match a directory with that
                                         ;; name, but doesn't (git 2.25.1).
@@ -743,7 +743,7 @@ vc-git-project-list-files
                                         ;; such entries with two.
                                         (if (string-match "/\\'" i)
                                             ;; abc/ -> abc/**
-                                           (setq i (concat i "**"))))
+                                           (setq i (concat i "\\*\\*"))))
                                       i)))
                                  extra-ignores)))))
      (setq files


>> What is your Git version? If it's 1.8.x or older, any chance of
>> upgrading it?
> 
> It's 2.10.0.
That probably tells us that the bug was there on MS Windows whenever 
project-vc-ignores is non-nil, we just didn't have a test for it.




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

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


Received: (at 79809) by debbugs.gnu.org; 16 Dec 2025 21:25:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 16 16:25:45 2025
Received: from localhost ([127.0.0.1]:60048 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVcYC-0005OU-Jz
	for submit <at> debbugs.gnu.org; Tue, 16 Dec 2025 16:25:44 -0500
Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]:53543)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vVcYA-0005O3-8n
 for 79809 <at> debbugs.gnu.org; Tue, 16 Dec 2025 16:25:43 -0500
Received: by mail-oo1-xc29.google.com with SMTP id
 006d021491bc7-65b57959b6fso1543824eaf.3
 for <79809 <at> debbugs.gnu.org>; Tue, 16 Dec 2025 13:25:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1765920336; x=1766525136; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=Htb/DxNseowaWwfmIECbD2eqOfGRfWAHr/ZjKDzNI/E=;
 b=EoAJ5Q33GfzAH0zsL/N0I63CzUUfmbhT/aFgaDN+MU04P1YKnJIJ0XCqlFyskd1EIb
 poO/c/l77J9o/eTZaXkpWQej6HyTL7aTso7uwaJ6rPKNTooFId3HhIo7QsmqYG6EaqHZ
 I5aAb73YjKjVUml8vtTXqHvnRZKxdSG8slF7pdtHRIErnJ+6dJAScA5dzP9JAVeoalX+
 zOA7GrybtBBhmpxTvrJmExNK21xDs0FlJ7WHkE/TYYNGedazXyfxz2/UMBaMqT3FVI4k
 Ae9E8pU31FEXH0vYW7ZN6AaIsBquSWjSzvY9jhv2C+ZssigSkoBg1BxDRjjYEEZcvtLp
 qG6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1765920336; x=1766525136;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=Htb/DxNseowaWwfmIECbD2eqOfGRfWAHr/ZjKDzNI/E=;
 b=SMca6BqMfFu1/OXBzIskm/Re79GlYnpthn1ApkdF++yFZ3hVIXEo4/rfI7lGuOVFqj
 ErIYVf9ifJxYgoMaA5surzAxgOONz0JeExgQH7iLeaa7YXDS/AaKpR/kYGoIHSTLwIol
 2+CEh6BmPgJdh4qElVxT+KiLdQjSGo/2+YkuFkRGIAyev7a1fxIWa/XnMVMInzaceO31
 9SpNC+16c7YB7z/SPHlnYKPO0aXXCYiq3SiLIiC8UZOZc+gRKOF3xkDZYu9pgpCUvYo2
 hV8K+RWzr8VbNWDR40yTog70qfqxMYHy/2WjyLxqwLAzH0HdMUglLuEyQBaQPKr5VsA9
 0QQg==
X-Forwarded-Encrypted: i=1;
 AJvYcCVlperVhXrgKZSvkUZ+S0r++abm6D0mhxKc7lUw/ITI9UAcxylH8IW2LqacuYQiCcvQLE10SQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YweMxp0wKPUVd9ajeMrFaDVs4hojvGTSCVOUmeQw5DCB0/yuXPB
 H16QcLjXtcSNMXBWfuhIKlEPMHZn6ejzQ15/xgplHgUffaP2Iv0Um/GRLY+HQRXmOKmYNzo4VC8
 mE2atW9DuohrEXGy3bRpwce6v+KJIyvU=
X-Gm-Gg: AY/fxX7qLPaXDoKhriGPXtRdsyYKJQP7zr+D6CTVhM1USBvPWi30D2P5usuzUXFReVI
 AdqWoZ1fVx9biHtK5c4IJVTbha2owXrfy8XXlSRegw6xDApZ3VB2XiG1lTWZFIU4mnveZDrcQhF
 2Mvc61nJ9SqxAqGAkPTDbddL76DrCQ2bI9deaHrHFv32woCchdVRlsObVJ1Ve35Xr8jxfhRyMVx
 0elxWHNcG9ZnVrd2DMu9mEqh7CXOjgXY+jF77xmcLs5F68hdLJb8gDD9I5gcS9/aXLjHm8BBxU1
 JM0STw==
X-Google-Smtp-Source: AGHT+IHLCAS20u41uLD+Nekv3yDJuvyE8ycuqMMo1OTJqJF4Lr4vdt5uWC1sspf1aE78vKk7kbYSmRFRPHGbZT88Iow=
X-Received: by 2002:a05:6820:a08:b0:65b:2944:7318 with SMTP id
 006d021491bc7-65b452574eamr6894058eaf.38.1765920336144; Tue, 16 Dec 2025
 13:25:36 -0800 (PST)
MIME-Version: 1.0
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN> <877bump6wn.fsf@HIDDEN>
In-Reply-To: <877bump6wn.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Tue, 16 Dec 2025 21:27:05 +0000
X-Gm-Features: AQt7F2obx6m4Fp763db-yOQAMfL-aAMHpNi-5BetcxZGAbB8HW5xDA-0OP0WakA
Message-ID: <CALDnm51+7hyOUQUbH45D0W+9OyRmcE8tRYw5ZHJNjXrOuFTP8Q@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Andreas Kurth <emacs@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000566c0e0646185e26"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
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 (-)

--000000000000566c0e0646185e26
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 16, 2025 at 7:23=E2=80=AFPM Andreas Kurth <emacs@HIDDEN> wro=
te:

> My issue was with
>
"globPattern":{"baseUri":"file:/home/ak/eclipse-workspace/idapi/","pattern"=
:"eclipse-formatting.xml"},
> which is found in project root. It is parsed without error now. However,
> while eglot sends didChangeWatchedFiles for *.java files, it does not
> for eclipse-formatting.xml. That=E2=80=99s not a problem for me (I don=E2=
=80=99t modify
> that file anyway), just wanted to mention.

I see.  I pushed a follow-up to that commit.  Please test.  I wasn't
considering
that globs provided in this new format must be matched against the
path relative to the baseUri.  If it doesn't work, I need to setup your
language server to debug, which will take longer.

Jo=C3=A3o

--000000000000566c0e0646185e26
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tue, Dec 16, 2025 at 7:23=E2=80=AFPM Andreas Kurth &lt;=
<a href=3D"mailto:emacs@HIDDEN">emacs@HIDDEN</a>&gt; wrote:<br><br>&g=
t; My issue was with<br>&gt; &quot;globPattern&quot;:{&quot;baseUri&quot;:&=
quot;file:/home/ak/eclipse-workspace/idapi/&quot;,&quot;pattern&quot;:&quot=
;eclipse-formatting.xml&quot;},<br>&gt; which is found in project root. It =
is parsed without error now. However,<br>&gt; while eglot sends didChangeWa=
tchedFiles for *.java files, it does not<br>&gt; for eclipse-formatting.xml=
. That=E2=80=99s not a problem for me (I don=E2=80=99t modify<br>&gt; that =
file anyway), just wanted to mention.<br><br><div>I see.=C2=A0 I pushed a f=
ollow-up to that commit.=C2=A0 Please test.=C2=A0 I wasn&#39;t considering<=
/div><div>that globs provided in this new format must be matched against th=
e</div><div>path relative to the baseUri.=C2=A0 If it doesn&#39;t work, I n=
eed to setup=C2=A0your=C2=A0</div><div>language server to debug, which will=
 take longer.</div><div><br></div><div>Jo=C3=A3o</div></div>

--000000000000566c0e0646185e26--




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

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


Received: (at 79809) by debbugs.gnu.org; 16 Dec 2025 19:24:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 16 14:24:07 2025
Received: from localhost ([127.0.0.1]:58731 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVaeU-0005MG-N7
	for submit <at> debbugs.gnu.org; Tue, 16 Dec 2025 14:24:07 -0500
Received: from mout.kundenserver.de ([212.227.126.134]:47909)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <emacs@HIDDEN>) id 1vVaeR-0005LB-OD
 for 79809 <at> debbugs.gnu.org; Tue, 16 Dec 2025 14:24:04 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akurth.de;
 s=s1-ionos; t=1765913035; x=1766517835; i=emacs@HIDDEN;
 bh=VU7aj5cneyfNPYJ0F41V1rA+/c0SDPYsgSTeAihUQA0=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=HEmsqnuAZHah4NDgyBymQZ8JJrniRE7f44+rBnFVJEN6qZZGCNciVMuEeTw1rXqt
 3ROgDWvKCEW4tfpvhOxN/M7KEaa6j7a0P9Qpflbn0gwntJYNxJ6XFw8MFSwH8DTKv
 4f1JW91WbJTTz+QrDY7Vudk/3ge4t4mudshbrDNLh4mdReXR53Bti6rrBxbJynkHg
 PIvGBsIhVLT03KKCWFgnrVs4ZAMJYAxPgysC5RFIXkYIw4k473s/+jg6LhMvhVdB5
 DBNMPnWUY9XzJwZ4zMegohWNxXgvapTUvYSZRh3OSQiuYoNHcjClW0cRalBlNo/Ng
 DoVpFkcyXF5Js4vKoQ==
X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6
Received: from ravel ([109.250.28.209]) by mrelayeu.kundenserver.de (mreue011
 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MScDh-1vOl0s1e7V-00YpHF;
 Tue, 16 Dec 2025 20:23:55 +0100
From: Andreas Kurth <emacs@HIDDEN>
To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <87pl8e5m4p.fsf@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
 <87pl8e5m4p.fsf@HIDDEN>
User-Agent: mu4e 1.12.13; emacs 31.0.50
OpenPGP: id=42E6E88E86E24E19; url=https://akurth.de/gpg/ak/pubkey.asc
Date: Tue, 16 Dec 2025 20:23:52 +0100
Message-ID: <877bump6wn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:zACV8T68kFdKUZzaHrc4o9kqmhhnF/sL5CUzImvi3cuHJH0Vfbf
 2Qgd3ZBkBPGGF1nw3pbQ7x2m9RlCFPcxcoI47ft+exxIyHrE7+O1Mg+owckVs+lX9sxxv9Z
 ukHGxOguqDeG0dj38E+kKroO8eLjhULeYbJJnKerZZ0jitYLUuPXGASYXVUS9N9skAts/Eq
 zCd8LpndeW15dxe75llNg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:WgzZWMfnpH4=;L65ym2oqN9FZolDxJzwQsqhVWH0
 1FoOsmoXPzz/7PYbTTqVgaPJF0yZYCSMCcLhK+LEZD/8QYrjkqJo+sBeK+8ct2L01BJVEPan3
 vXG5qDhXGrj5SYha7nsZqMY2uGssgiFcI3ysIQVPCsm/YgpLOHrJUcBqoEzWlstmO+SYs45gk
 WSpnkLCQK8tNf56jQFuhkLcIrq/1zmYPeGLeAcxIQJ5Y2VcYadzPRf1fDcXsl7a+oI0LwIeex
 CSCZn07elc7+eK4wZl8U4ztinTACp5U0QF377q5n5X1Q3TgA+Yk325/Lk0KRAEI25OT69By12
 pM50UlrOLIG4k2eNaS8XjO/BRxGOskgqxGEgBQj4Z/AYSb/PoSvI9WZ47iyiE+UvilMzQikdY
 LgQLlUVwdDu62UV8ospLQg/41gZdS31zc48+RUljEla2OJHytBGP9jWd5ZZ9kGbIgk3Y6fvDH
 u6ku5iLouhSCvEEMMkWV5Zk8o8O6nbUK3ajHyLNoHv2Pz+Cw0TCv7D7PkKGhkMfoyKKJ+DDAC
 hHyZ9ExsVcNxdSb0r5lm4AljecqAAchEJCy0+Vwlzr/Oh7+MGK5oxFwKHqesibgLUq9dc0mFI
 nhW18cme2tXp/P6nZ1UryrPQ22Pzg86dyCV82YPZZqN5Dz571IyeGoYGL8eYRh5je+ioKKGu8
 z01u5YUqeEtXeINtg/lH4m7b9jY914fM9l5113YjQpDVxTjYpQ04xQOAVNZ3ZwTqtT+p6wdWK
 rSpb/A5ecJa4tjnvtlbytkuzV0LxNMjGugJz0nRfILsLUgCzNldPZMN6DswMurMBlERNwnpCm
 ZbyD0gRUxc4BFzyKR4bGnMv0hFlsKacSCzpezWwuQqp1p8w0Sw3BSg2gMo9P97IH5tTFEv+fU
 1QFVNZ3dCpU96N5u2z2lX2UlKByxsjvEaVywKK8DSzCydj4FK5oQ5HB04UYKDnnNrZzasIFPY
 e43w1QNRPGmTLTQLCy5xMQTqL00i/6FNHrBD8qJ25Pr6Gr6yvQyhwaSArmZ8iIzAbSlI2RKGB
 agc/D1hvGZzcXBj0SJFtR0SmMJ2+r1aYVN53CQHcW1eD/UPC12PhRXr2TmN2L4ji2TQ6BLSbj
 6tyICFVVpITp8RFrfWNLnrxwiOkEBWB0UgHcFhV99Z3AAekaOVQ+Qclrw90MpXc0RxVv5N1lo
 TWc4y+jAnA+iIvKZgJIgv2ZnrJstRsEPOgH1rnCrm8YDerXvD61q6o+Iu1rUrWsifml2mP4kH
 2uxtqcixt2BJmUEAoUC6QDpc4MFvQP5d+378MmNQHqlrQ5+WxS1U4f3nbfa1IBgnCkfsM5SXW
 I7uzWX5ln6B/EGmkfLCljiJs6CQ8FxwzOq4Bip4FBXyXoa+HH9hC6sjm84ZvkA3s7T64Apax2
 PPl5TeNfUkt6A2UK3llqpn66eULVLCSvOwe+cVXakGg7BNqcAitWS2qYA34rwvsOWALNLnPel
 wDdFs9hU58NnEh8FZSmBpTp279Cpw3WvjRQdAiqYOthMewwpFZtFRdNLctNe5uyKL9hf9bVmP
 626iPv2UFbu2qDWq5Eek3z2RZ3LBan2PeGNJ5ib/hByaTPozqC57Ge5MAuHXkHRIU30X4I/Hs
 1Sf02F2lJHzd+z0ZMAjx4iUtgQ4s9wfhN2pOwPkM1zNjemRBEKPxIO8mDXRc8e4u4diDGFAWg
 K46e7dvIz4ySaC6wARIB9Eh5f3y5/fJeJSsspS2kVPehRhu4Kc83C9tE3XmdpWELxJJCALDuI
 3IUJMxVIu99G4phrx8RFFECU1/9Ek92rYaqA4J4x+ITVmX4I5mvegWw0=
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Dmitry Gutov <dgutov@HIDDEN>
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 wrote:
> Anyway, I pushed the fix to Eglot to this issue (heads up Andreas,
> please test) that relies on this latest version of project.el, or at
> least works more efficiently with it.  See the commit
>
>    commit 06f31dc2d6305191bd35ad3e6017ba6e81a8b84d
>    Author: Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN>
>    Date:   Tue Dec 16 17:45:36 2025 +0000
>=20=20=20=20=20
>        Eglot: support relativePatternSupport for file watching
>        (bug#79809)

Thanks, this fixes the glob parsing bug from the initial bug
description.

My issue was with
"globPattern":{"baseUri":"file:/home/ak/eclipse-workspace/idapi/","pattern"=
:"eclipse-formatting.xml"},
which is found in project root. It is parsed without error now. However,
while eglot sends didChangeWatchedFiles for *.java files, it does not
for eclipse-formatting.xml. That=E2=80=99s not a problem for me (I don=E2=
=80=99t modify
that file anyway), just wanted to mention.


[jsonrpc] e[20:04:54.502] <-- client/registerCapability[9] {"jsonrpc":"2.0"=
,"id":"9","method":"client/registerCapability","params":{"registrations":[{=
"id":"18b06be7-f112-4de0-9b70-e379d11061aa","method":"workspace/didChangeWa=
tchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.java"},{"gl=
obPattern":"**/.project"},{"globPattern":"**/.classpath"},{"globPattern":"*=
*/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globPattern":"**/*.grad=
le"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**/gradle.properties=
"},{"globPattern":"**/pom.xml"},{"globPattern":"/home/ak/eclipse-workspace/=
idapi/api/target/generated-sources/annotations/**"},{"globPattern":"/home/a=
k/eclipse-workspace/idapi/service/target/generated-sources/annotations/**"}=
,{"globPattern":"/home/ak/eclipse-workspace/idapi/service/target/generated-=
test-sources/test-annotations/**"},{"globPattern":"/home/ak/eclipse-workspa=
ce/idapi/api/target/generated-test-sources/test-annotations/**"},{"globPatt=
ern":{"baseUri":"file:/home/ak/eclipse-workspace/idapi/","pattern":"eclipse=
-formatting.xml"}},{"globPattern":{"baseUri":"file:/home/ak/eclipse-workspa=
ce/idapi/","pattern":"api"},"kind":4},{"globPattern":{"baseUri":"file:/home=
/ak/eclipse-workspace/","pattern":"idapi"},"kind":4},{"globPattern":{"baseU=
ri":"file:/home/ak/eclipse-workspace/idapi/","pattern":"service"},"kind":4}=
]}}]}}




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

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


Received: (at 79809) by debbugs.gnu.org; 16 Dec 2025 18:13:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 16 13:13:54 2025
Received: from localhost ([127.0.0.1]:58044 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVZYV-0000ax-N6
	for submit <at> debbugs.gnu.org; Tue, 16 Dec 2025 13:13:54 -0500
Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:57696)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vVZYQ-0000Yt-Ua
 for 79809 <at> debbugs.gnu.org; Tue, 16 Dec 2025 13:13:48 -0500
Received: by mail-wr1-x433.google.com with SMTP id
 ffacd0b85a97d-430f3ef2d37so2268016f8f.3
 for <79809 <at> debbugs.gnu.org>; Tue, 16 Dec 2025 10:13:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1765908820; x=1766513620; darn=debbugs.gnu.org;
 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=nRoK2kffM7yu1M6PIAsOVbSYLFDpZzSIn4873zxhJGY=;
 b=cmg/0ZUCeJM41DZQZlbfDlR/H+3jjqgUvp4Xl8qIQo8Fx/DEvhYzpxv9ctmMTgzJLn
 yei+tZHyyIkzRSWkr/J2j+ySZd8JXxHxh1En5a5fPI8XipbPGHPpiDgk9QyMJRerlqjJ
 55r5hOKx33K9GerqdF9CKgBAlzqNMWYl7SuY0wY4B54ZSoJaJ5Ni4t56oU1OZYRm4JtJ
 0nkyKEs5ONBHTkznj5I2F914bXiiNC5/2htW8Pl+WAcTva1fGi11I4YjcbDbx/LueFa7
 SmDk5xkc6F6iLRyJCSZe/m4Fwgvf4r6H0zFSO8wNQD3aky1oiNe6Q3PwfawjdT83+/3N
 LPsg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1765908820; x=1766513620;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=nRoK2kffM7yu1M6PIAsOVbSYLFDpZzSIn4873zxhJGY=;
 b=DV0S3W64S05vJrNyrqSOeJh5ZRlbOguKTIMQ05+yD7993ZQ7Yvqng+0MZnFbnNYQnl
 K84n5SMQiq3Xfeof00FN6KMPS9CRWBBEy4tw9U1r39K1pS7IOh9kDO7LQYgqgCJeursH
 QqyCKP3YK8NEXD7EOu4JBcKt9w/4k+MCdf9ZZjsmHLR3vU2/fBuhpBNoPppYh1hK1hmy
 Y9ERkfrbU1Yw6OgFbcahNaY2M+U2ye5yypBWl67BlwxhNz7j6s2eoI4UYhAIKPHgaaS7
 4IXXkVEZjc2RPdowayYVQ9+T06UaQ/71KgYNYtYVkjeA9PGE7KoUn4RihPLxzE3VTQOL
 8/XA==
X-Gm-Message-State: AOJu0Yx4/ZWUCjOAsldJCImUh3kAiFTyXRzsOhnfoQ5XW7UV4BfMcjax
 XOhHo9FwvjDa+OqBusPYtWrMq/ehkepqe8KGLktIznBfCBMx39kERqlMMgcJpA==
X-Gm-Gg: AY/fxX5B0YEfEsWowCbsWIKd9BJFkHhDHICNvlOA+8RDKoy2oKCULVi/bRFpEJmcPWe
 WOdxKIj27m7WzofUVcR9MdTun+BshMPvN9n6o0VRtGX7t/5CwfmnbArSgbGf1tqpRGDg0hIqzPi
 VdsPQSKJTc6oWK1+ndywoz9Q3khWXH/GFItyhZToV2A9f739QyCj2v80/psYL2ocEYeIBBsVoBf
 elUcS178iMXLoH9QkIWY5EAPwMKfcqxaKNvl8gcWHD6oQ1kXilLIhiRsfhE+pCCz+qN/GIzqgND
 D2cZGoLLOsdPzFSgsMgwW5JNIZy+OGz533X8hM/rzIQgQpzi3HQ7l2NTbSn4AQr2Lc8I1ipstB+
 RWqr16V64IudJR6LcRWEW225hf5o091TbvL5RzYEbAyYiiRYJe0PuQXhOj6N+7XgeENKq5No+zr
 3NKbOk465HMQFany024pPl2eltkOcc
X-Google-Smtp-Source: AGHT+IH25HlcMuI6HOLsd81ZSRhGNxZ8A44JXk/UqWpjAQ6RZb4H2CtDWuOMkFmTxR+sqQgYIUxNRw==
X-Received: by 2002:a05:6000:4010:b0:430:f301:3e6c with SMTP id
 ffacd0b85a97d-430f3013fecmr10627951f8f.34.1765908820339; 
 Tue, 16 Dec 2025 10:13:40 -0800 (PST)
Received: from krug (87-196-76-112.net.novis.pt. [87.196.76.112])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-4310ada8426sm419888f8f.5.2025.12.16.10.13.39
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 16 Dec 2025 10:13:39 -0800 (PST)
From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
Date: Tue, 16 Dec 2025 18:15:18 +0000
Message-ID: <87pl8e5m4p.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: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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 (-)

Dmitry Gutov <dgutov@HIDDEN> writes:

> Hi Joao,
>
> On 23/11/2025 03:45, Dmitry Gutov wrote:
>> If it helps (and the FILES argument does not), we could install a
>> smaller change later.
>
> Perhaps you'll want to try that smaller change, now pushed as
>
> https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?h=3Dmaster&id=3D=
48a44449775
>
> It lets you pass the specific subdirectory to scope the list of
> project files, in the DIRS argument.
>
> See my earlier reservation on whether this optimization is practical
> in general (but maybe I'm interpreting the format of that globs value
> wrong).

I haven't had time to look at that reservation (can you restate it?),
but I did test this and found a sizeable improvement versus the naive
(remove-if-not (lambda () (file-in-directory-p...))  (project-files...))
strat, some 7x times when finding files in the src of the Emacs repo
itself.  I don't understand what you mean by "smaller change", but if
there's still some relatively low hanging fruit, I think it's good to
grab it.

Anyway, I pushed the fix to Eglot to this issue (heads up Andreas,
please test) that relies on this latest version of project.el, or at
least works more efficiently with it.  See the commit

   commit 06f31dc2d6305191bd35ad3e6017ba6e81a8b84d
   Author: Jo=C3=A3o T=C3=A1vora <joaotavora@HIDDEN>
   Date:   Tue Dec 16 17:45:36 2025 +0000
=20=20=20=20
       Eglot: support relativePatternSupport for file watching
       (bug#79809)

I also benchmarked a little more the idea of a project-directories based
on 'find', 'find -type d', and 'git ls-files'.  It's also always faster than
the naive (delete-dups (mapcar #'file-name-directory (project-files ...)))
but not always spectacularly so.  Only 'find -type d'  provides a
sizeable improvement (again around 7 times), but with false positives
(directories with nothing but project-ignored files).  Let me know if
you want to see the code or the benchmarks.

Jo=C3=A3o




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

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


Received: (at 79809) by debbugs.gnu.org; 16 Dec 2025 03:27:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 15 22:27:30 2025
Received: from localhost ([127.0.0.1]:48055 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVLik-0005yg-D6
	for submit <at> debbugs.gnu.org; Mon, 15 Dec 2025 22:27:30 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:39940)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vVLig-0005yB-Qd
 for 79809 <at> debbugs.gnu.org; Mon, 15 Dec 2025 22:27:28 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vVLia-0003bb-NA; Mon, 15 Dec 2025 22:27:20 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=UhBh4gMeEYW0lQ9CdJ3kQvZaEqkipvbmYtwjk39gSgY=; b=BDHjkOL36TCW
 oo6OWZLWjEOObvTfr3FaFcWezh5JMPehrlTnbTYa4W1Z+KvUqHSzrWRurPDoTItvsAslJpMsumUCs
 2Z9P3mqBd34QdJ37dTsTrqN4z7ASK//KzI3E9LYXtzo8VeJlQ0a9FIfO1mJ3G/kF86SRvZPCs0rFI
 16Pff1SF3Awvfqi+4iVpV2sMnimjUuMM3itw8+YdsSDyfIoqaFbFqv/INHalOwg2TDrnjVvYH7oxL
 YSpSpRBGhEqI7RI5kg4yRwY8OX0aWtdRT9P+q0QB2BS2iDe8TdWhSLR1sHph4ExciVpwEc9Y4YgFg
 N91JWVzv5kLLhBwh1sOqtQ==;
Date: Tue, 16 Dec 2025 05:27:18 +0200
Message-Id: <86jyyn5co9.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN> (message from
 Dmitry Gutov on Tue, 16 Dec 2025 01:04:44 +0200)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
 <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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: -3.3 (---)

> Date: Tue, 16 Dec 2025 01:04:44 +0200
> Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
> From: Dmitry Gutov <dgutov@HIDDEN>
> 
> On 14/12/2025 08:45, Eli Zaretskii wrote:
> > The test included in this changeset fails here on MS-Windows:
> > 
> >    fatal: There is nothing to exclude from by :(exclude) patterns.
> >    Perhaps you forgot to add either ':/' or '.' ?
> >    Test project-vc-supports-project-in-different-dir backtrace:
> >      signal(error ("Failed (status 128): git --no-pager ls-files -z -c --
> >      apply(signal (error ("Failed (status 128): git --no-pager ls-files -
> >      (setq value-118 (apply fn-116 args-117))
> >      (unwind-protect (setq value-118 (apply fn-116 args-117)) (setq form-
> >      (if (unwind-protect (setq value-118 (apply fn-116 args-117)) (setq f
> >      (let (form-description-120) (if (unwind-protect (setq value-118 (app
> >      (let ((value-118 'ert-form-evaluation-aborted-119)) (let (form-descr
> >      (let* ((fn-116 #'equal) (args-117 (condition-case err (list '(".dir-
> >      (let* ((dir (let* ((testfile (and t "d:/gnu/git/emacs/trunk/test/lis
> >      #f(lambda () [cl-struct-project-tests--trivial-tags t] (let* ((fn-96
> >      #f(compiled-function () #<bytecode 0x102183c982113b72>)()
> >      handler-bind-1(#f(compiled-function () #<bytecode 0x102183c982113b72
> >      ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
> >      ert-run-test(#s(ert-test :name project-vc-supports-project-in-differ
> >      ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
> >      ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
> >      ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
> >      ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
> >      eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
> >      command-line-1(("-L" ";." "-l" "ert" "--eval" "(setq treesit-extra-l
> >      command-line()
> >      normal-top-level()
> >    Test project-vc-supports-project-in-different-dir condition:
> >        (error
> >         "Failed (status 128): git --no-pager ls-files -z -c --exclude-standard -o -- :(exclude,glob,top)**/etc")
> >       FAILED   9/10  project-vc-supports-project-in-different-dir (0.047188 sec) at lisp/progmodes/project-tests.el:147
> > 
> > Let me know if I can help you debug this.
> 
> Any chance your installation of Git is the one that doesn't support 
> 'exclude' pathspecs still?

How do I find out?

> What is your Git version? If it's 1.8.x or older, any chance of 
> upgrading it?

It's 2.10.0.




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

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


Received: (at 79809) by debbugs.gnu.org; 15 Dec 2025 23:05:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 15 18:05:01 2025
Received: from localhost ([127.0.0.1]:45506 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vVHcj-00067u-2z
	for submit <at> debbugs.gnu.org; Mon, 15 Dec 2025 18:05:01 -0500
Received: from forward502b.mail.yandex.net ([178.154.239.146]:52466)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vVHcg-00067X-Mw
 for 79809 <at> debbugs.gnu.org; Mon, 15 Dec 2025 18:04:59 -0500
Received: from mail-nwsmtp-smtp-production-main-70.sas.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-70.sas.yp-c.yandex.net
 [IPv6:2a02:6b8:c23:21b4:0:640:bc6c:0])
 by forward502b.mail.yandex.net (Yandex) with ESMTPS id 0758680B4E;
 Tue, 16 Dec 2025 02:04:52 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-70.sas.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id n4dOjkNL6eA0-fILJeEdo; 
 Tue, 16 Dec 2025 02:04:51 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1765839891; bh=eEI/pMFXHD+1YvcWfxkdpXoO8es/czpdfnMOHsG6h3s=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=u8IkgQEbcbftfkJ6it2ge9ihABZ60Jc4/HMU0sk0wXEGcKv0YS9+6uF7PLOFlnHKk
 huv3bgtJyNwbeRF/kuTGG8JzYlQ88Ne9/yt5pROrMu3faZdTR40d421ReCSk3lV6Pc
 jrczgb2jnaO5uXgjjvTiTzzOGRfw2mGuivVjVNhc=
Authentication-Results: mail-nwsmtp-smtp-production-main-70.sas.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
 by mailfauth.phl.internal (Postfix) with ESMTP id D9F70F40073;
 Mon, 15 Dec 2025 18:04:48 -0500 (EST)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-03.internal (MEProxy); Mon, 15 Dec 2025 18:04:48 -0500
X-ME-Sender: <xms:EJRAaVL3LUrNeKw0FWcZ4lyrAJvsBqwAxrZ-8dDS77Fh2eme5etcEQ>
 <xme:EJRAaYK6jGDKWkb-0GY7s1eYUs8cnAZ4MpopQOYz_P-SJ9GTuGUbgV1j3SDn16NnV
 Oayl1ldXwPF1fNQ4h1GfaRyebOY-e62EtNM5l5CFtq9WiLDpXYfxC0>
X-ME-Received: <xmr:EJRAaStDPqUyK4pFUzfwSENaY7t--wCkhv50943H9usJd4ZT-c1IybdUYVGdmuav10Yx>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefkedtkecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeeihfejueevteffffdvfeetffffkefhuedujeeiheehiedulefghefgffefudffuden
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuth
 hovhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudeffeefleelheehvddq
 vdelgeejjeejjeeiqdgughhuthhovheppeihrghnuggvgidrrhhusehfrghsthhmrghilh
 drtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht
 ohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgsh
 drghhnuhdrohhrghdprhgtphhtthhopehjohgrohhtrghvohhrrgesghhmrghilhdrtgho
 mhdprhgtphhtthhopegvmhgrtghssegrkhhurhhthhdruggv
X-ME-Proxy: <xmx:EJRAaVRJn1rnNB43qJb06DxeMk6cLOHbdt0Sj90sTyYsNEQg83reYQ>
 <xmx:EJRAaYPmZNC_-GqBFHdN1fARUDcjWqP85jKTmq1lWCotvoQp7pWOog>
 <xmx:EJRAaaYlasuMZXYUHe5PQLMcvy57i_54GOevP9uAfmxC_Tq7imJE1w>
 <xmx:EJRAaSw_-Cq7fyQ1NLOaK8ZvBSuTq26XRw-vUZSDGd6W0t7_PnY9_A>
 <xmx:EJRAaVJUMdTmnQRk7dOkPXC0vZ1F-Ix9YAnSr3ZHWevYxCairzNzOXq->
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
 15 Dec 2025 18:04:47 -0500 (EST)
Message-ID: <7a9e7f62-142c-40aa-8547-d00d286ce011@HIDDEN>
Date: Tue, 16 Dec 2025 01:04:44 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> <861pkx8stv.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <861pkx8stv.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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 (-)

Hi!

On 14/12/2025 08:45, Eli Zaretskii wrote:
> The test included in this changeset fails here on MS-Windows:
> 
>    fatal: There is nothing to exclude from by :(exclude) patterns.
>    Perhaps you forgot to add either ':/' or '.' ?
>    Test project-vc-supports-project-in-different-dir backtrace:
>      signal(error ("Failed (status 128): git --no-pager ls-files -z -c --
>      apply(signal (error ("Failed (status 128): git --no-pager ls-files -
>      (setq value-118 (apply fn-116 args-117))
>      (unwind-protect (setq value-118 (apply fn-116 args-117)) (setq form-
>      (if (unwind-protect (setq value-118 (apply fn-116 args-117)) (setq f
>      (let (form-description-120) (if (unwind-protect (setq value-118 (app
>      (let ((value-118 'ert-form-evaluation-aborted-119)) (let (form-descr
>      (let* ((fn-116 #'equal) (args-117 (condition-case err (list '(".dir-
>      (let* ((dir (let* ((testfile (and t "d:/gnu/git/emacs/trunk/test/lis
>      #f(lambda () [cl-struct-project-tests--trivial-tags t] (let* ((fn-96
>      #f(compiled-function () #<bytecode 0x102183c982113b72>)()
>      handler-bind-1(#f(compiled-function () #<bytecode 0x102183c982113b72
>      ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>      ert-run-test(#s(ert-test :name project-vc-supports-project-in-differ
>      ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>      ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
>      ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
>      ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
>      eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
>      command-line-1(("-L" ";." "-l" "ert" "--eval" "(setq treesit-extra-l
>      command-line()
>      normal-top-level()
>    Test project-vc-supports-project-in-different-dir condition:
>        (error
>         "Failed (status 128): git --no-pager ls-files -z -c --exclude-standard -o -- :(exclude,glob,top)**/etc")
>       FAILED   9/10  project-vc-supports-project-in-different-dir (0.047188 sec) at lisp/progmodes/project-tests.el:147
> 
> Let me know if I can help you debug this.

Any chance your installation of Git is the one that doesn't support 
'exclude' pathspecs still?

What is your Git version? If it's 1.8.x or older, any chance of 
upgrading it?




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

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


Received: (at 79809) by debbugs.gnu.org; 14 Dec 2025 06:45:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 14 01:45:47 2025
Received: from localhost ([127.0.0.1]:48431 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vUfrX-0004Gr-22
	for submit <at> debbugs.gnu.org; Sun, 14 Dec 2025 01:45:47 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:36246)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vUfrU-0004Ga-G4
 for 79809 <at> debbugs.gnu.org; Sun, 14 Dec 2025 01:45:46 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vUfrN-0005pH-Si; Sun, 14 Dec 2025 01:45:37 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=cbflTMcALAh7Ta+H8m7zY7xkAhBAkj0LP/qdqVGYaLk=; b=hd7TVUWLmiRb
 UE5ebEsjhSVs4TPx8xtHK/gStgSXLGSudv3B2I60TGtcSNBNxx2PcQ4WWTrLfSQRtWMYhytzHRhS0
 +1V64Kskq8Rn3FkoYhW4VvvnZs+4h00HjvLRxBk9tlVyJeF4fWImgo/iaJwQg7N2Aj3VDWz8fgr2n
 ggtWSz5j2hJOxy+RP24SI7YLxQgAgI4+91MlK0PUJq6jzmI8bKlB962zxTeX7BvgDYMCXJPEj5rdS
 XGcGWdBScHjmEv7cSCg7J+mgO34GCSmHCULMQhkVo9TS17XWMqXPOXV3o/VTm++FXV4FiAw5w6/GP
 yWBmaXjsWiuZp8AG6SrvNg==;
Date: Sun, 14 Dec 2025 08:45:32 +0200
Message-Id: <861pkx8stv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN> (message from
 Dmitry Gutov on Sun, 14 Dec 2025 02:37:37 +0200)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
 <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, joaotavora@HIDDEN, emacs@HIDDEN
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: -3.3 (---)

> Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
> Date: Sun, 14 Dec 2025 02:37:37 +0200
> From: Dmitry Gutov <dgutov@HIDDEN>
> 
> Hi Joao,
> 
> On 23/11/2025 03:45, Dmitry Gutov wrote:
> > If it helps (and the FILES argument does not), we could install a 
> > smaller change later.
> 
> Perhaps you'll want to try that smaller change, now pushed as
> 
> https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?h=master&id=48a44449775
> 
> It lets you pass the specific subdirectory to scope the list of project 
> files, in the DIRS argument.

The test included in this changeset fails here on MS-Windows:

  fatal: There is nothing to exclude from by :(exclude) patterns.
  Perhaps you forgot to add either ':/' or '.' ?
  Test project-vc-supports-project-in-different-dir backtrace:
    signal(error ("Failed (status 128): git --no-pager ls-files -z -c --
    apply(signal (error ("Failed (status 128): git --no-pager ls-files -
    (setq value-118 (apply fn-116 args-117))
    (unwind-protect (setq value-118 (apply fn-116 args-117)) (setq form-
    (if (unwind-protect (setq value-118 (apply fn-116 args-117)) (setq f
    (let (form-description-120) (if (unwind-protect (setq value-118 (app
    (let ((value-118 'ert-form-evaluation-aborted-119)) (let (form-descr
    (let* ((fn-116 #'equal) (args-117 (condition-case err (list '(".dir-
    (let* ((dir (let* ((testfile (and t "d:/gnu/git/emacs/trunk/test/lis
    #f(lambda () [cl-struct-project-tests--trivial-tags t] (let* ((fn-96
    #f(compiled-function () #<bytecode 0x102183c982113b72>)()
    handler-bind-1(#f(compiled-function () #<bytecode 0x102183c982113b72
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name project-vc-supports-project-in-differ
    ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
    ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
    ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
    ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
    eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
    command-line-1(("-L" ";." "-l" "ert" "--eval" "(setq treesit-extra-l
    command-line()
    normal-top-level()
  Test project-vc-supports-project-in-different-dir condition:
      (error
       "Failed (status 128): git --no-pager ls-files -z -c --exclude-standard -o -- :(exclude,glob,top)**/etc")
     FAILED   9/10  project-vc-supports-project-in-different-dir (0.047188 sec) at lisp/progmodes/project-tests.el:147

Let me know if I can help you debug this.




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

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


Received: (at 79809) by debbugs.gnu.org; 14 Dec 2025 00:37:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 13 19:37:54 2025
Received: from localhost ([127.0.0.1]:45293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vUa7W-0006N5-BJ
	for submit <at> debbugs.gnu.org; Sat, 13 Dec 2025 19:37:54 -0500
Received: from forward501b.mail.yandex.net ([178.154.239.145]:48466)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vUa7T-0006Mn-DD
 for 79809 <at> debbugs.gnu.org; Sat, 13 Dec 2025 19:37:52 -0500
Received: from mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net
 [IPv6:2a02:6b8:c1c:405:0:640:8814:0])
 by forward501b.mail.yandex.net (Yandex) with ESMTPS id BD1FC816C4;
 Sun, 14 Dec 2025 03:37:43 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id fbFuaB3LtmI0-KSEdxvnC; 
 Sun, 14 Dec 2025 03:37:43 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1765672663; bh=HecSAt9AURBe2FBpV4GRvfbs0QLdcjcrPHbuwEL3uZk=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=lrivbfWnRI4/4/d0baY/QGR5dbyZC6SABhHnzhtOVl/dYHpK4Z8p/6FmWXCl1mOf7
 VI/dRHItW9k6MWthCKukHIGHjcj2DB4n8kJakGIqaM/nE5AXiC5c9NiL2Szz+wp2dw
 8rzCIW36BrS17jQ6n3a/4MwuQNGvqMKtMnp/3ePI=
Authentication-Results: mail-nwsmtp-smtp-production-main-87.sas.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
 by mailfauth.phl.internal (Postfix) with ESMTP id E8B99F4008C;
 Sat, 13 Dec 2025 19:37:40 -0500 (EST)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-03.internal (MEProxy); Sat, 13 Dec 2025 19:37:40 -0500
X-ME-Sender: <xms:1AY-aYQIkLAB3UUdPGMgYAWRX59SfLk4Tvz-OCyamWdiDsl9xJ9n4w>
 <xme:1AY-adMvfJh2x8F5JZLA5bAiuCsVU5O7VLri2josxzF1i9lDCeHpgOSn73wqb8PH7
 HUpL_knVyvVV3fAGDO11lkcHXtWvgkYmxgOWsTiW-t2f4GqwqfyuTM>
X-ME-Received: <xmr:1AY-aTP32cR6nUy8WxxP89Lnc9vTJdNs6PBIwS0pPAfDhWb3RsHhQ63ra-9loQlw_zT4>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefvdehvdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr
 ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug
 hrpefkffggfgfuhffvvehfjggtgfesthejredttddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeetjeefhffgvdelkeeufedtheevlefgtdegtdejledvgfegledvtdeijeelgfeugeen
 ucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh
 grmhepmhgrihhlfhhrohhmpegughhuthhovhdomhgvshhmthhprghuthhhphgvrhhsohhn
 rghlihhthidqudeffeefleelheehvddqvdelgeejjeejjeeiqdgughhuthhovheppeihrg
 hnuggvgidrrhhusehfrghsthhmrghilhdrtghomhdpnhgspghrtghpthhtohepfedpmhho
 uggvpehsmhhtphhouhhtpdhrtghpthhtohepjhhorghothgrvhhorhgrsehgmhgrihhlrd
 gtohhmpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgshdrghhnuhdrohhrghdprhgt
 phhtthhopegvmhgrtghssegrkhhurhhthhdruggv
X-ME-Proxy: <xmx:1AY-aVuWtKq8pg85g7qNuDEfzJCCDlnMDBv3G-OY8fKYX0nfLPE0qA>
 <xmx:1AY-aVVCP97h26cjkMYNa87ooDQpKX_UbOln1IFc_-RyoEOfh8pDRw>
 <xmx:1AY-aVsddV0A1yBiZxOGnf8e96Bi7oiQWOYWMDjRtrODibEEmZWjng>
 <xmx:1AY-aZVL9GrXlCHsSfNN_f5fn9NvAfbX4GcPdqlNww6VK0Pft1hsGQ>
 <xmx:1AY-aQnNdkz3W9oq-fJ867spUcf07ZAyOsvKr5PlbzOq8H-yTe1txAv6>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 13 Dec 2025 19:37:39 -0500 (EST)
Message-ID: <9f52f8bc-7771-4fa6-a6dd-f6d3977edd52@HIDDEN>
Date: Sun, 14 Dec 2025 02:37:37 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
From: Dmitry Gutov <dgutov@HIDDEN>
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
 <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
Content-Language: en-US
In-Reply-To: <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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 (-)

Hi Joao,

On 23/11/2025 03:45, Dmitry Gutov wrote:
> If it helps (and the FILES argument does not), we could install a 
> smaller change later.

Perhaps you'll want to try that smaller change, now pushed as

https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?h=master&id=48a44449775

It lets you pass the specific subdirectory to scope the list of project 
files, in the DIRS argument.

See my earlier reservation on whether this optimization is practical in 
general (but maybe I'm interpreting the format of that globs value wrong).




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

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


Received: (at 79809) by debbugs.gnu.org; 25 Nov 2025 20:22:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 25 15:22:07 2025
Received: from localhost ([127.0.0.1]:41834 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vNzY5-00010D-FW
	for submit <at> debbugs.gnu.org; Tue, 25 Nov 2025 15:22:07 -0500
Received: from forward502b.mail.yandex.net ([178.154.239.146]:48882)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vMzAL-00087T-Ea
 for 79809 <at> debbugs.gnu.org; Sat, 22 Nov 2025 20:45:27 -0500
Received: from mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net
 [IPv6:2a02:6b8:c0c:91a4:0:640:1bf3:0])
 by forward502b.mail.yandex.net (Yandex) with ESMTPS id 6309B81103;
 Sun, 23 Nov 2025 04:45:16 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id DjO4gQKLwKo0-Xtrujecj; 
 Sun, 23 Nov 2025 04:45:15 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1763862315; bh=OxTrus9OzDT2DZB4VvU+qOlyzomuCykJFetqtzYGRJc=;
 h=In-Reply-To:From:Message-ID:Cc:References:Date:Subject:To;
 b=H5xDTCXlCAM8MFBkp88SMsqsmPTOFe4v+2YC1yQDHREWIUUL4ICmp5Yfef+WFBVI6
 4GjeoFi7UKm+4sRwxoS7Yiv7eiNmwi1+SsaF3Bw5J8ifdznc+i6iKEtZ9f483mMUnn
 lhpyWKi5XZrzifg+gngyCV44bgUtnVt3iJwpetBk=
Authentication-Results: mail-nwsmtp-smtp-production-main-85.iva.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
 by mailfauth.phl.internal (Postfix) with ESMTP id 62EE5F4007C;
 Sat, 22 Nov 2025 20:45:13 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-03.internal (MEProxy); Sat, 22 Nov 2025 20:45:13 -0500
X-ME-Sender: <xms:KWciafQ4a6UEy5JuqoIq85P_j2TEl73LQt9MMva1WncIqCzlFkoYJw>
 <xme:KWciaYNvlI4yUbKNkyTfGSw_HJfXc1oQrjVpJsz3C0sMaVDo2nx21LmnEDHBFc9cC
 5Ou6HmXmT9ZQaK6kdw6nlencIzaKJQYu_C8OiX78Vpf1KogJzl6gheb>
X-ME-Received: <xmr:KWciaSM1paye9mo7Zgzfyfb2iMmP6V2PpxDFE7xBe5CY4_RhH_X4lOAlozNRRzX9sRD8>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvfeeggeegucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf
 gurheptgfkffggfgfuvfevfhfhjgesmhdtreertddvjeenucfhrhhomhepffhmihhtrhih
 ucfiuhhtohhvuceoughguhhtohhvseihrghnuggvgidrrhhuqeenucggtffrrghtthgvrh
 hnpeduleegvdejvdefgeffudelueeljeefvddtiedtffeiudeltdeuleetgeejledtgeen
 ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegughhuth
 hovhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudeffeefleelheehvddq
 vdelgeejjeejjeeiqdgughhuthhovheppeihrghnuggvgidrrhhusehfrghsthhmrghilh
 drtghomhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht
 ohepjhhorghothgrvhhorhgrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepjeelkedtle
 esuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvmhgrtghssegrkhhurhht
 hhdruggv
X-ME-Proxy: <xmx:KWciaYuVIy99G2FaXxTOgWR9ikKcvAKKiR-CLN1lNsdbfc1ZHF-ntQ>
 <xmx:KWciacUJB9tq9vbHaANUP43AGNOJLlGaXT29X2siN9S0_dYYluUO-g>
 <xmx:KWciaQuo83Y6q7CJNEGL00MWm6wNffyhec0p8yrX_4teTz_c-vpDsw>
 <xmx:KWciaYV4r3BRWphQAWSmPr28SEGPneEP666cO7TavuFacEusH-WaIA>
 <xmx:KWciaTmPyHRbKCOtM7Kv-y6m3vfg2X8AqrzxMVOWKEuspys-ZOAS93uf>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 22 Nov 2025 20:45:11 -0500 (EST)
Content-Type: multipart/mixed; boundary="------------RSeqIi8S1A50gC1uYvp909hf"
Message-ID: <054c1d97-ca92-45b7-9a58-25d5fb808dca@HIDDEN>
Date: Sun, 23 Nov 2025 03:45:09 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
 <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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 (-)

This is a multi-part message in MIME format.
--------------RSeqIi8S1A50gC1uYvp909hf
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi!

On 18/11/2025 18:31, João Távora wrote:
> So I think just listing the files at a deep enough level vs listing them 
> at the top and filtering then by the same subdir in elisp. It's probably 
> enough.
> 
> Or just post the patch here, and I can checkout a Linux and try this 
> myself.

I'm attaching an updated 'project-files-filtered' patch, which might 
actually be overkill for this use. It allows passing a list of file 
globs as the FILES argument and DIR to narrow down the listing (but 
still delegating to 'git ls-files' for it). Looking at the scenario, I 
guess you won't use the FILES argument because matching files could be 
created after the watches were set up, so only DIR would be helpful in 
that case, to be passed the value returned by

   (file-name-as-directory
     (eglot-uri-to-path base-uri))

If it helps (and the FILES argument does not), we could install a 
smaller change later. But LMK how it works for you.

Note that this diff doesn't include the needed eglot.el change. But the 
general idea would be to issue a separate call to 
'project-files-filtered' with an appropriate argument DIR.

In this user scenario it might not save us any processing time, though, 
because only one of the globs is anchored 
({"baseUri":"file:/home/harald/work/","pattern":"eglot-watchers-jdts-fail"}), 
and the rest ("**/*.java", "**/.project", ...) are not. Even if we group 
all anchored globs by the value of baseUri, at long as there are 
non-anchored ones, a full project scan would still be required, IIUC.
--------------RSeqIi8S1A50gC1uYvp909hf
Content-Type: text/x-patch; charset=UTF-8; name="project-files-filtered.diff"
Content-Disposition: attachment; filename="project-files-filtered.diff"
Content-Transfer-Encoding: base64

ZGlmZiAtLWdpdCBhL2xpc3AvcHJvZ21vZGVzL2V0YWdzLXJlZ2VuLmVsIGIvbGlzcC9wcm9n
bW9kZXMvZXRhZ3MtcmVnZW4uZWwKaW5kZXggZWQxOGViNWE1NjQuLmU1OTFlODY2ZjhjIDEw
MDY0NAotLS0gYS9saXNwL3Byb2dtb2Rlcy9ldGFncy1yZWdlbi5lbAorKysgYi9saXNwL3By
b2dtb2Rlcy9ldGFncy1yZWdlbi5lbApAQCAtNDksNyArNDksNyBAQCBldGFncy1yZWdlbi0t
dGFncy1yb290CiAoZGVmdmFyIGV0YWdzLXJlZ2VuLS1uZXctZmlsZSBuaWwpCiAKIChkZWNs
YXJlLWZ1bmN0aW9uIHByb2plY3Qtcm9vdCAicHJvamVjdCIpCi0oZGVjbGFyZS1mdW5jdGlv
biBwcm9qZWN0LWZpbGVzICJwcm9qZWN0IikKKyhkZWNsYXJlLWZ1bmN0aW9uIHByb2plY3Qt
ZmlsZXMtZmlsdGVyZWQgInByb2plY3QiKQogKGRlY2xhcmUtZnVuY3Rpb24gZGlyZWQtZ2xv
Yi1yZWdleHAgImRpcmVkIikKIAogKGRlZmN1c3RvbSBldGFncy1yZWdlbi1wcm9ncmFtIGV0
YWdzLXByb2dyYW0tbmFtZQpAQCAtMjM2LDI0ICsyMzYsMTQgQEAgZXRhZ3MtcmVnZW4tLW1h
eWJlLWdlbmVyYXRlCiAoZGVmdW4gZXRhZ3MtcmVnZW4tLWFsbC1maWxlcyAocHJvaikKICAg
KGxldCogKChyb290IChwcm9qZWN0LXJvb3QgcHJvaikpCiAgICAgICAgICAoZGVmYXVsdC1k
aXJlY3Rvcnkgcm9vdCkKLSAgICAgICAgIDs7IFRPRE86IE1ha2UgdGhlIHNjYW5uaW5nIG1v
cmUgZWZmaWNpZW50LCBlLmcuIG1vdmUgdGhlCi0gICAgICAgICA7OyBmaWx0ZXJpbmcgYnkg
Z2xvYiB0byBwcm9qZWN0IChwcm9qZWN0LWZpbGVzLWZpbHRlcmVkLi4uKS4KLSAgICAgICAg
IChmaWxlcyAocHJvamVjdC1maWxlcyBwcm9qKSkKLSAgICAgICAgIChtYXRjaC1yZSAoY29u
Y2F0Ci0gICAgICAgICAgICAgICAgICAgICJcXC4iCi0gICAgICAgICAgICAgICAgICAgIChy
ZWdleHAtb3B0IGV0YWdzLXJlZ2VuLWZpbGUtZXh0ZW5zaW9ucykKLSAgICAgICAgICAgICAg
ICAgICAgIlxcJyIpKQotICAgICAgICAgKGlyLXN0YXJ0ICgxLSAobGVuZ3RoIHJvb3QpKSkK
LSAgICAgICAgIChpZ25vcmVzLXJlZ2V4cHMKLSAgICAgICAgICAobWFwY2FyICMnZXRhZ3Mt
cmVnZW4tLWlnbm9yZS1yZWdleHAKLSAgICAgICAgICAgICAgICAgIGV0YWdzLXJlZ2VuLWln
bm9yZXMpKQotICAgICAgICAgKGNhc2UtZm9sZC1zZWFyY2ggdCkpCi0gICAgKGNsLWRlbGV0
ZS1pZgotICAgICAobGFtYmRhIChmKSAob3IgKG5vdCAoc3RyaW5nLW1hdGNoLXAgbWF0Y2gt
cmUgZikpCi0gICAgICAgICAgICAgICAgKHN0cmluZy1tYXRjaC1wICIvXFwuIyIgZikgO0Jh
Y2t1cCBmaWxlcy4KLSAgICAgICAgICAgICAgICAoY2wtc29tZSAobGFtYmRhIChpZ25vcmUp
IChzdHJpbmctbWF0Y2gtcCBpZ25vcmUgZiBpci1zdGFydCkpCi0gICAgICAgICAgICAgICAg
ICAgICAgICAgaWdub3Jlcy1yZWdleHBzKSkpCi0gICAgIGZpbGVzKSkpCisgICAgICAgICAo
ZmlsZXMgKHByb2plY3QtZmlsZXMtZmlsdGVyZWQKKyAgICAgICAgICAgICAgICAgcHJvagor
ICAgICAgICAgICAgICAgICA7OyBGSVhNRTogRXh0ZW5zaW9ucyBpbiB1cHBlciBjYXNlLgor
ICAgICAgICAgICAgICAgICAobWFwY2FyIChsYW1iZGEgKGV4dCkgKGZvcm1hdCAiKi4lcyIg
ZXh0KSkKKyAgICAgICAgICAgICAgICAgICAgICAgICBldGFncy1yZWdlbi1maWxlLWV4dGVu
c2lvbnMpCisgICAgICAgICAgICAgICAgIG5pbAorICAgICAgICAgICAgICAgICAnKCIuIyoi
KSkpKQorICAgIGZpbGVzKSkKIAogKGRlZnVuIGV0YWdzLXJlZ2VuLS1pZ25vcmUtcmVnZXhw
IChpZ25vcmUpCiAgIChyZXF1aXJlICdkaXJlZCkKQEAgLTMwMyw3ICsyOTMsNyBAQCBldGFn
cy1yZWdlbi0tcHJvY2Vzcy1maWxlLXJlZ2lvbgogKGRlZnVuIGV0YWdzLXJlZ2VuLS10YWdz
LWdlbmVyYXRlIChwcm9qKQogICAobGV0KiAoKHJvb3QgKHByb2plY3Qtcm9vdCBwcm9qKSkK
ICAgICAgICAgIChkZWZhdWx0LWRpcmVjdG9yeSByb290KQotICAgICAgICAgKGZpbGVzIChl
dGFncy1yZWdlbi0tYWxsLWZpbGVzIHByb2opKQorICAgICAgICAgKGZpbGVzIChiZW5jaG1h
cmstcHJvZ24gKGV0YWdzLXJlZ2VuLS1hbGwtZmlsZXMgcHJvaikpKQogICAgICAgICAgKHRh
Z3MtZmlsZSAoZXRhZ3MtcmVnZW4tLWNob29zZS10YWdzLWZpbGUgcHJvaikpCiAgICAgICAg
ICAoZnVuIChpZiAoZXF1YWwgKGZpbGUtbmFtZS1kaXJlY3RvcnkgdGFncy1maWxlKQogICAg
ICAgICAgICAgICAgICAgICAgICAgIChleHBhbmQtZmlsZS1uYW1lIHJvb3QpKQpkaWZmIC0t
Z2l0IGEvbGlzcC9wcm9nbW9kZXMvcHJvamVjdC5lbCBiL2xpc3AvcHJvZ21vZGVzL3Byb2pl
Y3QuZWwKaW5kZXggMWM1MTBmMzRiNDAuLjgzZTgzYzFhN2Y2IDEwMDY0NAotLS0gYS9saXNw
L3Byb2dtb2Rlcy9wcm9qZWN0LmVsCisrKyBiL2xpc3AvcHJvZ21vZGVzL3Byb2plY3QuZWwK
QEAgLTM3NiwxMSArMzc2LDMzIEBAIHByb2plY3QtZmlsZXMKIHRvIGZpbmQgdGhlIGxpc3Qg
b2YgaWdub3JlcyBmb3IgZWFjaCBkaXJlY3RvcnkuIgogICAobWFwY2FuCiAgICAobGFtYmRh
IChkaXIpCi0gICAgIChwcm9qZWN0LS1maWxlcy1pbi1kaXJlY3RvcnkgZGlyCi0gICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgKHByb2plY3QtLWRpci1pZ25vcmVzIHByb2pl
Y3QgZGlyKSkpCisgICAgIChwcm9qZWN0LWZpbGVzLWZpbHRlcmVkIHByb2plY3QgbmlsIGRp
cikpCiAgICAob3IgZGlycwogICAgICAgIChsaXN0IChwcm9qZWN0LXJvb3QgcHJvamVjdCkp
KSkpCiAKKzs7IFhYWDogT3IgSU5DTFVERS1GSUxFUyBhbmQgRVhDTFVERS1GSUxFUz8KKzs7
IFRPRE86IEFkZCB0ZXN0cy4KKyhjbC1kZWZnZW5lcmljIHByb2plY3QtZmlsZXMtZmlsdGVy
ZWQgKCBwcm9qZWN0ICZvcHRpb25hbCBmaWxlcyBkaXIKKyAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICBleHRyYS1pZ25vcmVzIG5vLXByb2plY3QtaWdub3JlcykK
KyAgIlJldHVybiBhIGxpc3Qgb2YgZmlsZXMgRklMRVMgaW4gZGlyZWN0b3J5IERJUiBpbiBQ
Uk9KRUNULgorRklMRVMgbXVzdCBhIGxpc3Qgb2YgZmlsZSBuYW1lIGdsb2IgcGF0dGVybnMs
IG5pbCBtZWFuaW5nIHRvIGxpc3QKK2FueSBmaWxlcy4gIERJUiBtdXN0IGJlIGFuIGFic29s
dXRlIG5hbWUgb3IgbmlsLCBpbiB3aGljaCBjYXNlIGl0CitkZWZhdWx0cyB0byB0aGUgcHJv
amVjdCByb290LiAgRVhUUkEtSUdOT1JFUyBhcmUgaWdub3JlIGVudHJpZXMKK3RvIHVzZSB0
b2dldGhlciB3aXRoIHRoZSBsaXN0IG9mIGlnbm9yZXMgYWxyZWFkeSBjb25maWd1cmVkIGZv
cgordGhlIHByb2plY3QuICBCdXQgaWYgTk8tUFJPSkVDVC1JR05PUkVTIGlzIG5vbi1uaWws
IG9ubHkKK0VYVFJBLUlHTk9SRVMgc2hvdWxkIGJlIGFwcGxpZWQuCisKK1RoZSBkZWZhdWx0
IGltcGxlbWVudGF0aW9uIHVzZXMgYGZpbmQtcHJvZ3JhbScuIgorICAodW5sZXNzIGRpciAo
c2V0cSBkaXIgKHByb2plY3Qtcm9vdCBwcm9qZWN0KSkpCisgIChwcm9qZWN0LS1maWxlcy1p
bi1kaXJlY3RvcnkKKyAgIGRpcgorICAgKGFwcGVuZAorICAgICh1bmxlc3Mgbm8tcHJvamVj
dC1pZ25vcmVzCisgICAgICAocHJvamVjdC0tZGlyLWlnbm9yZXMgcHJvamVjdCBkaXIpKQor
ICAgIGV4dHJhLWlnbm9yZXMpCisgICAoYW5kIGZpbGVzCisgICAgICAgIChtYXBjb25jYXQg
IydpZGVudGl0eSBmaWxlcyAiICIpKSkpCisKIChkZWZ1biBwcm9qZWN0LS1maWxlcy1pbi1k
aXJlY3RvcnkgKGRpciBpZ25vcmVzICZvcHRpb25hbCBmaWxlcykKICAgKHJlcXVpcmUgJ2Zp
bmQtZGlyZWQpCiAgIChyZXF1aXJlICd4cmVmKQpAQCAtNjcwLDc0ICs2OTIsODMgQEAgcHJv
amVjdC1leHRlcm5hbC1yb290cwogICAgICAoZnVuY2FsbCBwcm9qZWN0LXZjLWV4dGVybmFs
LXJvb3RzLWZ1bmN0aW9uKSkpCiAgICAobGlzdCAocHJvamVjdC1yb290IHByb2plY3QpKSkp
CiAKLShjbC1kZWZtZXRob2QgcHJvamVjdC1maWxlcyAoKHByb2plY3QgKGhlYWQgdmMpKSAm
b3B0aW9uYWwgZGlycykKLSAgKG1hcGNhbgotICAgKGxhbWJkYSAoZGlyKQotICAgICAobGV0
ICgoaWdub3JlcyAocHJvamVjdC0tdmFsdWUtaW4tZGlyICdwcm9qZWN0LXZjLWlnbm9yZXMg
KG50aCAyIHByb2plY3QpKSkKLSAgICAgICAgICAgKGJhY2tlbmQgKGNhZHIgcHJvamVjdCkp
KQotICAgICAgICh3aGVuIGJhY2tlbmQKLSAgICAgICAgIChyZXF1aXJlIChpbnRlcm4gKGNv
bmNhdCAidmMtIiAoZG93bmNhc2UgKHN5bWJvbC1uYW1lIGJhY2tlbmQpKSkpKSkKLSAgICAg
ICAoaWYgKGFuZCAoZmlsZS1lcXVhbC1wIGRpciAobnRoIDIgcHJvamVjdCkpCi0gICAgICAg
ICAgICAgICAgKGNvbmQKLSAgICAgICAgICAgICAgICAgKChlcSBiYWNrZW5kICdIZykpCi0g
ICAgICAgICAgICAgICAgICgoYW5kIChlcSBiYWNrZW5kICdHaXQpCi0gICAgICAgICAgICAg
ICAgICAgICAgIChvcgotICAgICAgICAgICAgICAgICAgICAgICAgKG5vdCBpZ25vcmVzKQot
ICAgICAgICAgICAgICAgICAgICAgICAgKHZlcnNpb248PSAiMS45IiAodmMtZ2l0LS1wcm9n
cmFtLXZlcnNpb24pKSkpKSkpCi0gICAgICAgICAgIChwcm9qZWN0LS12Yy1saXN0LWZpbGVz
IGRpciBiYWNrZW5kIGlnbm9yZXMpCi0gICAgICAgICAocHJvamVjdC0tZmlsZXMtaW4tZGly
ZWN0b3J5Ci0gICAgICAgICAgZGlyCi0gICAgICAgICAgKHByb2plY3QtLWRpci1pZ25vcmVz
IHByb2plY3QgZGlyKSkpKSkKLSAgIChvciBkaXJzCi0gICAgICAgKGxpc3QgKHByb2plY3Qt
cm9vdCBwcm9qZWN0KSkpKSkKKzs7IFRPRE86IEFkZCB0ZXN0cy4KKyhjbC1kZWZtZXRob2Qg
cHJvamVjdC1maWxlcy1maWx0ZXJlZCAoIChwcm9qZWN0IChoZWFkIHZjKSkgJm9wdGlvbmFs
IGZpbGVzIGRpcgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXh0
cmEtaWdub3JlcyBuby1wcm9qZWN0LWlnbm9yZXMpCisgICh1bmxlc3MgZGlyIChzZXRxIGRp
ciAocHJvamVjdC1yb290IHByb2plY3QpKSkKKyAgKGxldCAoKGlnbm9yZXMgKGFwcGVuZCAo
dW5sZXNzIG5vLXByb2plY3QtaWdub3JlcworICAgICAgICAgICAgICAgICAgICAgICAgICAg
KHByb2plY3QtLXZhbHVlLWluLWRpciAncHJvamVjdC12Yy1pZ25vcmVzCisgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChudGggMiBwcm9qZWN0
KSkpCisgICAgICAgICAgICAgICAgICAgICAgICAgZXh0cmEtaWdub3JlcykpCisgICAgICAg
IChiYWNrZW5kIChjYWRyIHByb2plY3QpKSkKKyAgICAod2hlbiBiYWNrZW5kCisgICAgICAo
cmVxdWlyZSAoaW50ZXJuIChjb25jYXQgInZjLSIgKGRvd25jYXNlIChzeW1ib2wtbmFtZSBi
YWNrZW5kKSkpKSkpCisgICAgKGlmIChjb25kCisgICAgICAgICAoKGVxIGJhY2tlbmQgJ0hn
KSkKKyAgICAgICAgICgoYW5kIChlcSBiYWNrZW5kICdHaXQpCisgICAgICAgICAgICAgICAo
b3IKKyAgICAgICAgICAgICAgICAobm90IGlnbm9yZXMpCisgICAgICAgICAgICAgICAgKHZl
cnNpb248PSAiMS45IiAodmMtZ2l0LS1wcm9ncmFtLXZlcnNpb24pKSkpKSkKKyAgICAgICAg
KHByb2plY3QtLXZjLWxpc3QtZmlsZXMgZGlyIGJhY2tlbmQgaWdub3JlcyBmaWxlcyBuby1w
cm9qZWN0LWlnbm9yZXMpCisgICAgICAocHJvamVjdC0tZmlsZXMtaW4tZGlyZWN0b3J5Cisg
ICAgICAgZGlyCisgICAgICAgKHByb2plY3QtLWRpci1pZ25vcmVzIHByb2plY3QgZGlyKQor
ICAgICAgIChhbmQgZmlsZXMKKyAgICAgICAgICAgIChtYXBjb25jYXQgIydpZGVudGl0eSBm
aWxlcyAiICIpKSkpKSkKIAogKGRlY2xhcmUtZnVuY3Rpb24gdmMtZ2l0LS1wcm9ncmFtLXZl
cnNpb24gInZjLWdpdCIpCiAoZGVjbGFyZS1mdW5jdGlvbiB2Yy1naXQtY29tbWFuZCAidmMt
Z2l0IikKIChkZWNsYXJlLWZ1bmN0aW9uIHZjLWhnLWNvbW1hbmQgInZjLWhnIikKIAotKGRl
ZnVuIHByb2plY3QtLXZjLWxpc3QtZmlsZXMgKGRpciBiYWNrZW5kIGV4dHJhLWlnbm9yZXMp
CisoZGVmdW4gcHJvamVjdC0tdmMtZ2l0LWlnbm9yZS10by1zcGVjIChpKQorICAoZm9ybWF0
CisgICAiOihleGNsdWRlLGdsb2IsdG9wKSVzIgorICAgKGlmIChzdHJpbmctbWF0Y2ggIlxc
KlxcKiIgaSkKKyAgICAgICA7OyBMb29rcyBsaWtlIHBhdGhzcGVjIGdsb2IKKyAgICAgICA7
OyBmb3JtYXQgYWxyZWFkeS4KKyAgICAgICBpCisgICAgIChpZiAoc3RyaW5nLW1hdGNoICJc
XC4vIiBpKQorICAgICAgICAgOzsgLi9hYmMgLT4gYWJjCisgICAgICAgICAoc2V0cSBpIChz
dWJzdHJpbmcgaSAyKSkKKyAgICAgICA7OyBhYmMgLT4gKiovYWJjCisgICAgICAgKHNldHEg
aSAoY29uY2F0ICIqKi8iIGkpKQorICAgICAgIDs7IEZJWE1FOiAnKiovYWJjJyBzaG91bGQg
YWxzbworICAgICAgIDs7IG1hdGNoIGEgZGlyZWN0b3J5IHdpdGggdGhhdAorICAgICAgIDs7
IG5hbWUsIGJ1dCBkb2Vzbid0IChnaXQgMi4yNS4xKS4KKyAgICAgICA7OyBNYXliZSB3ZSBz
aG91bGQgcmVwbGFjZQorICAgICAgIDs7IHN1Y2ggZW50cmllcyB3aXRoIHR3by4KKyAgICAg
ICAoaWYgKHN0cmluZy1tYXRjaCAiL1xcJyIgaSkKKyAgICAgICAgICAgOzsgYWJjLyAtPiBh
YmMvKioKKyAgICAgICAgICAgKHNldHEgaSAoY29uY2F0IGkgIioqIikpKSkKKyAgICAgaSkp
KQorCisoZGVmdW4gcHJvamVjdC0tdmMtbGlzdC1maWxlcyAoZGlyIGJhY2tlbmQgZXh0cmEt
aWdub3JlcyAmb3B0aW9uYWwgbmFtZXMgbm8tZ2l0aWdub3JlKQogICAoZGVmdmFyIHZjLWdp
dC11c2UtbGl0ZXJhbC1wYXRoc3BlY3MpCiAgIChwY2FzZSBiYWNrZW5kCiAgICAgKGBHaXQK
ICAgICAgKGxldCogKChkZWZhdWx0LWRpcmVjdG9yeSAoZXhwYW5kLWZpbGUtbmFtZSAoZmls
ZS1uYW1lLWFzLWRpcmVjdG9yeSBkaXIpKSkKLSAgICAgICAgICAgIChhcmdzICcoIi16IiAi
LWMiICItLWV4Y2x1ZGUtc3RhbmRhcmQiKSkKKyAgICAgICAgICAgIChhcmdzICcoIi16Iikp
CiAgICAgICAgICAgICAodmMtZ2l0LXVzZS1saXRlcmFsLXBhdGhzcGVjcyBuaWwpCiAgICAg
ICAgICAgICAoaW5jbHVkZS11bnRyYWNrZWQgKHByb2plY3QtLXZhbHVlLWluLWRpcgogICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAncHJvamVjdC12Yy1pbmNsdWRlLXVudHJh
Y2tlZAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXIpKQogICAgICAgICAg
ICAgKHN1Ym1vZHVsZXMgKHByb2plY3QtLWdpdC1zdWJtb2R1bGVzKSkKICAgICAgICAgICAg
IGZpbGVzKQorICAgICAgIDs7IEluY2x1ZGUgdW5yZWdpc3RlcmVkLgogICAgICAgIChzZXRx
IGFyZ3MgKGFwcGVuZCBhcmdzCisgICAgICAgICAgICAgICAgICAgICAgICAgICcoIi1jIikK
ICAgICAgICAgICAgICAgICAgICAgICAgICAgKGFuZCAoPD0gMzEgZW1hY3MtbWFqb3ItdmVy
c2lvbikKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAodmVyc2lvbjw9ICIyLjM1
IiAodmMtZ2l0LS1wcm9ncmFtLXZlcnNpb24pKQogICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICcoIi0tc3BhcnNlIikpCi0gICAgICAgICAgICAgICAgICAgICAgICAgIChhbmQg
aW5jbHVkZS11bnRyYWNrZWQgJygiLW8iKSkpKQotICAgICAgICh3aGVuIGV4dHJhLWlnbm9y
ZXMKKyAgICAgICAgICAgICAgICAgICAgICAgICAgKGFuZCBpbmNsdWRlLXVudHJhY2tlZCAn
KCItbyIpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAodW5sZXNzIG5vLWdpdGlnbm9y
ZSAnKCItLWV4Y2x1ZGUtc3RhbmRhcmQiKSkpKQorICAgICAgICh3aGVuIChvciBuYW1lcyBl
eHRyYS1pZ25vcmVzKQogICAgICAgICAgKHNldHEgYXJncyAoYXBwZW5kIGFyZ3MKLSAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAoY29ucyAiLS0iCi0gICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgKG1hcGNhcgotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAobGFtYmRhIChpKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
IChmb3JtYXQKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIjooZXhj
bHVkZSxnbG9iLHRvcCklcyIKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgKGlmIChzdHJpbmctbWF0Y2ggIlxcKlxcKiIgaSkKLSAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIDs7IExvb2tzIGxpa2UgcGF0aHNwZWMgZ2xvYgotICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsgZm9ybWF0IGFscmVh
ZHkuCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpCi0gICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGlmIChzdHJpbmctbWF0Y2gg
IlxcLi8iIGkpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
IDs7IC4vYWJjIC0+IGFiYwotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAoc2V0cSBpIChzdWJzdHJpbmcgaSAyKSkKLSAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIDs7IGFiYyAtPiAqKi9hYmMKLSAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzZXRxIGkgKGNvbmNhdCAiKiovIiBpKSkK
LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDs7IEZJWE1FOiAn
KiovYWJjJyBzaG91bGQgYWxzbwotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgOzsgbWF0Y2ggYSBkaXJlY3Rvcnkgd2l0aCB0aGF0Ci0gICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBuYW1lLCBidXQgZG9lc24ndCAoZ2l0
IDIuMjUuMSkuCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7
OyBNYXliZSB3ZSBzaG91bGQgcmVwbGFjZQotICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgOzsgc3VjaCBlbnRyaWVzIHdpdGggdHdvLgotICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGlmIChzdHJpbmctbWF0Y2ggIi9cXCci
IGkpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsg
YWJjLyAtPiBhYmMvKioKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAoc2V0cSBpIChjb25jYXQgaSAiKioiKSkpKQotICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIGkpKSkKLSAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgZXh0cmEtaWdub3JlcykpKSkpCisgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgJygiLS0iKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWVzCisgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgKG1hcGNhcgorICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAjJ3Byb2plY3QtLXZjLWdpdC1pZ25vcmUtdG8tc3BlYworICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICBleHRyYS1pZ25vcmVzKSkpKQogICAgICAgIChzZXRxIGZpbGVzCiAg
ICAgICAgICAgICAgKGRlbHEgbmlsCiAgICAgICAgICAgICAgICAgICAgKG1hcGNhcgpAQCAt
NzYzLDcgKzc5NCw4IEBAIHByb2plY3QtLXZjLWxpc3QtZmlsZXMKICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAocHJvamVjdC0tdmMtbGlzdC1maWxlcwogICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAoY29uY2F0IGRlZmF1bHQtZGlyZWN0b3J5IG1vZHVsZSkKICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgYmFja2VuZAotICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICBleHRyYS1pZ25vcmVzKSkpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAg
IGV4dHJhLWlnbm9yZXMKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmFtZXMpKSkK
ICAgICAgICAgICAgICAgICAgICAgICAgKGlmIHByb2plY3QtZmlsZXMtcmVsYXRpdmUtbmFt
ZXMKICAgICAgICAgICAgICAgICAgICAgICAgICAgIChtYXBjYXIgKGxhbWJkYSAoZmlsZSkK
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY29uY2F0IChmaWxlLW5h
bWUtYXMtZGlyZWN0b3J5IG1vZHVsZSkgZmlsZSkpCg==

--------------RSeqIi8S1A50gC1uYvp909hf--




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Nov 2025 16:32:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 18 11:32:08 2025
Received: from localhost ([127.0.0.1]:58749 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vLOch-0001ON-Py
	for submit <at> debbugs.gnu.org; Tue, 18 Nov 2025 11:32:08 -0500
Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]:56788)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vLOce-0001Nb-In
 for 79809 <at> debbugs.gnu.org; Tue, 18 Nov 2025 11:32:05 -0500
Received: by mail-oo1-xc2a.google.com with SMTP id
 006d021491bc7-6571763793bso2409832eaf.1
 for <79809 <at> debbugs.gnu.org>; Tue, 18 Nov 2025 08:32:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1763483518; x=1764088318; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=ixYeMYeuMWIWRr4b9ZQc3ptngdNdryEvex+VtQHbY8Q=;
 b=kUlstN/QokoNSA88ovl/n5HRwmDYWW0kCL8syM0g2pYToLVt/18Ibns1nAWAp0wZBP
 8njbsSm6Lr1PHzBYj5t14A61LTh9HPe2KVLtz8xbOod42/DGdoCbwNZbCATbLwxVBEC9
 qy2goLScnecM85ZDPcQ0SvV6tZ0M/5LVEGF6Xqj/ju72ftmBYyncTrd8+z8FAFvCJnqQ
 b3zZbp1hOQG9vc/KLJFcfjQJh8lK4FRliOg+VywsdShl214E/tfkRzTDLoNoChlgiUN1
 a3iVkoqkvwzUFwK+JKIAjP/nttzORHoc4TNP06Gc9gKquwnkMfOzNUTdhd/oG7OTDWTK
 m79g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1763483518; x=1764088318;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=ixYeMYeuMWIWRr4b9ZQc3ptngdNdryEvex+VtQHbY8Q=;
 b=Yrz+X2GR89Z9JD+PvHQ798sxXA9mqaskw/rbUXv1dJMDKbxTHuAFPzWRZQXVFNMNOD
 yk8BWXkLCNuvyIJZtbwVwFyjO79T03BJIOCl4sDsyCcWWZ/rrCB6sU5pkiJHJ59d2KlD
 Li1OHev4VeeRqmI4GKXuaqxYoL5RmRtjvnMnqfRktNYfX4V6btUUr7+fiGjp5jstPnPu
 m8nz7y/dq+rd7d0k5NRL5q4utsAPHRnBi6vO8Xve82VTKVzoJIgZJ/Ualr6tZstJ5J/n
 9JwOMq0YwPBP4gQ6ya69XpAIllvyqwLAyvjrPKmDOJTqZ9V7hVkQbnKAq0/Pk+oL01qv
 SL/w==
X-Gm-Message-State: AOJu0YxsWxJjiRuxXnuzkUfWzamqPQdu2aH7CgXHYCckdFzmTUvvo+QK
 Ec32xqx8k258Du5nY63Xwy74dlF7jArJYlKn5QcMQ0/MloZLrKrRAnmlVNsV6asLVdfxfnVq/ww
 cuEazcN2XwYIzwf6MWGEejjXK9/0YGK8=
X-Gm-Gg: ASbGncsOlmWDdzlV3RT6qPDBjjypEshA0tYWOvb63PJ0BrC5z9e3qKW3bQqvmWw8sRF
 eEkRc8AogtNtmZt31uDkzsn0GSZxfYbL8E37+9vCUmnDZkv8sGr426zkOrrHte1LYhJD6H8KZQd
 cyJEXdWSR2/FFFX2PitPuMtRSv26D1Sr0Uwt23JYfIuevlzkEon40glfpJ2wQWbPFIcgX/Xprvr
 52wzdE3SGHsm7jl8U7WerVJcq/G6StjO2eK5CGDzy6u4nBYeRfr8v+qjEQyYt8Sme6nI4ORgGoG
 6/SeLA==
X-Google-Smtp-Source: AGHT+IGfDeapgpTUG8n42MZEYhj/tb5Fj4s5zVbtLbsdi2gaArywIwrmv69x0h+XE0Kt9oxaPWRrTJvtxePX174E8V0=
X-Received: by 2002:a05:6808:2203:b0:450:bc7e:85f4 with SMTP id
 5614622812f47-450bc7e8bc8mr5562017b6e.5.1763483518353; Tue, 18 Nov 2025
 08:31:58 -0800 (PST)
MIME-Version: 1.0
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
 <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
In-Reply-To: <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Tue, 18 Nov 2025 16:31:47 +0000
X-Gm-Features: AWmQ_bl8GRhoHKL9yhGLsRKhskFf9JtpkNDRk9Da6bOYs0vpCi7Dqe_jKVfe68I
Message-ID: <CALDnm53DH3h2FY2TH3sbWscqkNDxAQKFvZ-SOoq6W9Fenu3-Ug@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Dmitry Gutov <dgutov@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000adc7c90643e10029"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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 (-)

--000000000000adc7c90643e10029
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 18, 2025, 16:07 Dmitry Gutov <dgutov@HIDDEN> wrote:

> On 18/11/2025 12:05, Jo=C3=A3o T=C3=A1vora wrote:
> > Big projects aren't exactly on short supply :) can you try with, say, a
> > checkout of the Linux kernel?
>
> I have a checkout of the kernel, sure.
>
> What kind of test would you like me to do?
>
> If you can wrap it in a form to evaluate, that would be great.
> Preferably this form would include not just listing the files, but also
> the corresponding additional work (also in Lisp) that you would do on the=
m.
>

Ah, I understand what your point is, but that's hard to predict, or
disentangle from Eglot's use.

It's also possible that the string allocation costs (both immediate and the
GC consequences)  dominate here... Just speculating...

So I think just listing the files at a deep enough level vs listing them at
the top and filtering then by the same subdir in elisp. It's probably
enough.

Or just post the patch here, and I can checkout a Linux and try this
myself.

Jo=C3=A3o

>

--000000000000adc7c90643e10029
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div dir=3D"auto"><br></div><div dir=3D"auto">On Tue, Nov=
 18, 2025, 16:07 Dmitry Gutov &lt;<a href=3D"mailto:dgutov@HIDDEN">dguto=
v@HIDDEN</a>&gt; wrote:</div><div class=3D"gmail_quote gmail_quote_conta=
iner" dir=3D"auto"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 18/=
11/2025 12:05, Jo=C3=A3o T=C3=A1vora wrote:<br>
&gt; Big projects aren&#39;t exactly on short supply :) can you try with, s=
ay, a <br>
&gt; checkout of the Linux kernel?<br>
<br>
I have a checkout of the kernel, sure.<br>
<br>
What kind of test would you like me to do?<br>
<br>
If you can wrap it in a form to evaluate, that would be great. <br>
Preferably this form would include not just listing the files, but also <br=
>
the corresponding additional work (also in Lisp) that you would do on them.=
<br></blockquote></div><div dir=3D"auto"><br></div><div dir=3D"auto">Ah, I =
understand what your point is, but that&#39;s hard to predict, or disentang=
le from Eglot&#39;s use.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D=
"auto">It&#39;s also possible that the string allocation costs (both immedi=
ate and the GC consequences)=C2=A0 dominate here... Just speculating...</di=
v><div dir=3D"auto"><br></div><div dir=3D"auto">So I think just listing the=
 files at a deep enough level vs listing them at the top and filtering then=
 by the same subdir in elisp. It&#39;s probably enough.=C2=A0</div><div dir=
=3D"auto"><br></div><div dir=3D"auto">Or just post the patch here, and I ca=
n checkout a Linux and try this myself.=C2=A0</div><div dir=3D"auto"><br></=
div><div dir=3D"auto">Jo=C3=A3o</div><div class=3D"gmail_quote gmail_quote_=
container" dir=3D"auto"><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>

--000000000000adc7c90643e10029--




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Nov 2025 16:07:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 18 11:07:26 2025
Received: from localhost ([127.0.0.1]:58627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vLOEo-00085W-E4
	for submit <at> debbugs.gnu.org; Tue, 18 Nov 2025 11:07:26 -0500
Received: from forward501a.mail.yandex.net
 ([2a02:6b8:c0e:500:1:45:d181:d501]:47656)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vLOEl-00084w-71
 for 79809 <at> debbugs.gnu.org; Tue, 18 Nov 2025 11:07:24 -0500
Received: from mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net
 [IPv6:2a02:6b8:c15:340d:0:640:ad51:0])
 by forward501a.mail.yandex.net (Yandex) with ESMTPS id A7085820F2;
 Tue, 18 Nov 2025 19:07:13 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id 97Ybjc5LBSw0-AQmNVvkz; 
 Tue, 18 Nov 2025 19:07:13 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1763482033; bh=iFmkKQVE/7eC+MPwUPKJ/tmmxLitTVKKvkg6n9IA9Y8=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=NJTeH9ogX88oLLNJqKwlvCWwR1kVQEgqL7DB7sf+z06b8nD6YbUiQq1VXSobaZFcE
 hKqiBVgcP+D1VnMIr9qcU7xrsNhYj8M5WHyR4a6ImUXeoJ/LSWKczRi0VZ9voLMiew
 +1S/xtibRJJQ+LyJwnX8XkIyxQ4crXnjYqfLa0aI=
Authentication-Results: mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46])
 by mailfauth.phl.internal (Postfix) with ESMTP id C6E9EF4006E;
 Tue, 18 Nov 2025 11:07:08 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-06.internal (MEProxy); Tue, 18 Nov 2025 11:07:08 -0500
X-ME-Sender: <xms:rJkcaZ3kYPh2Q3iXj-hh_6a6iVEEB_Towrt1v5vgrZvdKfmUXzItoA>
 <xme:rJkcaXhcNGfXF54OExu4zrbpwEvR1QLkGlyJHeshF4BcwJLjAspmIVWtHAzeoqpdQ
 B2ZXkUzvBIbsEOVu-qSd85Iz5UXN98PMUTVYDNqHGEZjzQ6S-YG>
X-ME-Received: <xmr:rJkcaXQ3fX_t9dW6ScONYeJ1EBrnL26u_MA-P00Eok41mA63SRaffSQudTYK_lLI5w>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvvddujeeiucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf
 gurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhithhr
 hicuifhuthhovhcuoegughhuthhovheshigrnhguvgigrdhruheqnecuggftrfgrthhtvg
 hrnhepheegleejudegueffudejtdeukeelheduiefhleevkeeifeeugefhtdevvdegueel
 necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughguh
 htohhvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqddufeeffeelleehhedv
 qddvleegjeejjeejiedqughguhhtohhvpeephigrnhguvgigrdhruhesfhgrshhtmhgrih
 hlrdgtohhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphht
 thhopehjohgrohhtrghvohhrrgesghhmrghilhdrtghomhdprhgtphhtthhopeejleektd
 elseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghmrggtshesrghkuhhr
 thhhrdguvg
X-ME-Proxy: <xmx:rJkcaQhY3WcG28NaTUrd7QPfUSsPgaCQ-mAKTzpX-ysGujsPWAoJNw>
 <xmx:rJkcaf4mF5hZ7VXnwd3YxZocx0uok1RVWWESi6b8wXDJeKCE0fFarw>
 <xmx:rJkcaVBPnc-wEadRUoxxVKtk_gP_qnP5j6LwKaJ0ivfyc3AnYtVMtQ>
 <xmx:rJkcaeauz6ZX0yH4OuBhAZ0_FI7hs2QVYK7d7kpf5PmIsC-0iS3xEw>
 <xmx:rJkcaYbcxrDyPKj0y-LbEuBP8-aX6YtS9dpXfnrLQAKWttVoNdDMeFCA>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 18 Nov 2025 11:07:07 -0500 (EST)
Message-ID: <4f25e76e-1503-4781-ba49-d3c9c45f0010@HIDDEN>
Date: Tue, 18 Nov 2025 18:07:05 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
 <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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.7 (-)

On 18/11/2025 12:05, João Távora wrote:
> Big projects aren't exactly on short supply :) can you try with, say, a 
> checkout of the Linux kernel?

I have a checkout of the kernel, sure.

What kind of test would you like me to do?

If you can wrap it in a form to evaluate, that would be great. 
Preferably this form would include not just listing the files, but also 
the corresponding additional work (also in Lisp) that you would do on them.




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Nov 2025 10:05:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 18 05:05:44 2025
Received: from localhost ([127.0.0.1]:56354 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vLIal-00011e-RV
	for submit <at> debbugs.gnu.org; Tue, 18 Nov 2025 05:05:44 -0500
Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]:51351)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vLIah-00011K-I3
 for 79809 <at> debbugs.gnu.org; Tue, 18 Nov 2025 05:05:42 -0500
Received: by mail-ot1-x336.google.com with SMTP id
 46e09a7af769-7c7634863a7so432438a34.2
 for <79809 <at> debbugs.gnu.org>; Tue, 18 Nov 2025 02:05:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1763460333; x=1764065133; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=ejdnuPoewNOre2bGRiybDNpFYo649zsIMXUAmc4UruQ=;
 b=E/mt6jTneW+v7e3yB16s8zTk20BwuzEyYaBf9dbhrSEy3MuAJEBpBHGNR+4Xw2g/vH
 3RP06Lt/6/3bblOczy44lThrHHjszg6feUx9139vwIWLzygfRDt23pIv34FWtKQBeKDO
 r56R8Jdt8utM/h3GPSMC+GGYwyPS1zOw1hPMzzg//z+cKWXQYdvZ69tPp/afZ5BKqQ19
 iSc8EZ3PgBWIWKNQ8h1TfvSzx8eca7zMlLTWst9XPeKyNwWj6QLsgLqZO1wgj4lfY13m
 16fOplfxRfaQ7kUUjB0U2tvy2gljw7XhnBY9Jydkh2EsZ/7vRw4tIiTqn8bXPpTSrSZ+
 bxQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1763460333; x=1764065133;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=ejdnuPoewNOre2bGRiybDNpFYo649zsIMXUAmc4UruQ=;
 b=pSf6aYtyl3iWaZ/i2+pVHjmUAtkqyyd7wYkWM7sstS7xXv5X5gcrcpm261CO3Tmdni
 NRRCHRLRZbyR3Ts3UruPcGuOmR6XrJjUu+UNnNNu7PtCJomF+ifO4R2OzJONz6fv7HoE
 +XJkIj/uxTLkXeVXTLXe1c1klBMvj+mKTiYh8U0Oe75pUjSr+YvP1dDzj/pFvkarVA47
 C58+QKaaQG8H5Y3zd3ptDYSBJ/OeWap/PSqF32CtND3URtwiJIjlmnEHYb/SfdvKnjsU
 wXmmbzFPmo2bohF6eYcVe4WxgOao7CqUtutI49WyKWDDtZP6zlz9GImFAy3KHvQmnOUt
 HpnA==
X-Forwarded-Encrypted: i=1;
 AJvYcCWkF4/liMILK94HX14j8Vsm9F6ru0HZtJn3I5PoYFUhnt1afxJ0bd1I2bva9MlNYOVBA75YBA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx3DS9RrMZfMJVZTOqzvHEvBlFQ88N245Upa7R4buryDP/rVt7U
 CsOcCGECpvziwnmQAOnBMjc8TpjY63fg86ZO58NclJkYQXdy4ZDQ6YNvC26wDVSeLa/zZH7iY03
 OodVbdR4e0T75AOgEIunqXqUQzmIRK0o=
X-Gm-Gg: ASbGncvw2/NUlCUDDG5+fd5GeXC1L9ObtMRlOjCwtZ+k31EE2/9AMr6/tzljecEF5np
 nEd6TIm/V8aVYbU3TF/2fbqRGjkDTHrGsI3Y55HtTt4CqWBi3za5buj5jhL/HFJ4oDhTXtKl4/u
 a+uO1SU7lyBPDciwIfoF4a9Tqo+fWBfJjY6coCs9E5OJKuT+XzgxneLh5jwcf5Le8Ybn3+n/QZe
 CiKERtDf1+LU0L5v3uTgqz3UplQgnQM4ABwZkhMJUDeL6I9qS/AuOogpq9LEqlrQLLNUAw=
X-Google-Smtp-Source: AGHT+IFwSPztySQwg/Y2/KjGStnbo/FNM7Wk+PBieONhZyNkBMjpbQQmmJGMahlKBiPnTz128CoNctb3Gt5j1Me4uKw=
X-Received: by 2002:a05:6808:1a29:b0:450:d1ba:1533 with SMTP id
 5614622812f47-450d1ba320fmr2117307b6e.48.1763460333363; Tue, 18 Nov 2025
 02:05:33 -0800 (PST)
MIME-Version: 1.0
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
 <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
In-Reply-To: <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Tue, 18 Nov 2025 10:05:21 +0000
X-Gm-Features: AWmQ_bk8AU8Pfeg3qLCUH1mgrOPc03v8o9Aes6lj9CgNDVnzES2CAt4u5ZQGjZo
Message-ID: <CALDnm5060Kim3grTiPxCpS5zPr-fYp_8TCJh9R5FG9SOWE=L4Q@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Dmitry Gutov <dgutov@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000bf02c10643db9a1d"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, Andreas Kurth <emacs@HIDDEN>
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 (-)

--000000000000bf02c10643db9a1d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

[sorry for the dup message, Dmitry]

Big projects aren't exactly on short supply :) can you try with, say, a
checkout of the Linux kernel?

Jo=C3=A3o

On Tue, Nov 18, 2025, 01:22 Dmitry Gutov <dgutov@HIDDEN> wrote:

> Hi!
>
> On 16/11/2025 00:08, Jo=C3=A3o T=C3=A1vora wrote:
> > Now, the file names are taken from a project-files call, and I don't kn=
ow
> > if it has some kind of built in "filter" option (where we would pass th=
e
> > aforementioned pathified based-uri).  It could for example leverage som=
e
> > Git flag under the hood and which would probably also increase
> performance.
> > Let's ask Dmitry Gutov, project.el maintainer, what he thinks.
>
> I've had a feature like that in a branch for a while, but the few times
> I've tested it, the subsequent processing in Lisp more or less dominated
> the performance profile, so the migration to the new calling convention
> didn't seem valuable enough.
>
> It should bring more benefit if the project is large enough, though. If
> someone working on a big internal project would like to test the
> resulting performance, I'm happy to resurrect the patches.
>

--000000000000bf02c10643db9a1d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div dir=3D"auto">[sorry for the dup message, Dmitry]</di=
v><div dir=3D"auto"><br></div><div>Big projects aren&#39;t exactly on short=
 supply :) can you try with, say, a checkout of the Linux kernel?</div><div=
><br></div><div data-smartmail=3D"gmail_signature">Jo=C3=A3o=C2=A0</div></d=
iv><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" cl=
ass=3D"gmail_attr">On Tue, Nov 18, 2025, 01:22 Dmitry Gutov &lt;<a href=3D"=
mailto:dgutov@HIDDEN">dgutov@HIDDEN</a>&gt; wrote:<br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px =
solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
On 16/11/2025 00:08, Jo=C3=A3o T=C3=A1vora wrote:<br>
&gt; Now, the file names are taken from a project-files call, and I don&#39=
;t know<br>
&gt; if it has some kind of built in &quot;filter&quot; option (where we wo=
uld pass the<br>
&gt; aforementioned pathified based-uri).=C2=A0 It could for example levera=
ge some<br>
&gt; Git flag under the hood and which would probably also increase perform=
ance.<br>
&gt; Let&#39;s ask Dmitry Gutov, project.el=C2=A0maintainer, what he thinks=
.<br>
<br>
I&#39;ve had a feature like that in a branch for a while, but the few times=
 <br>
I&#39;ve tested it, the subsequent processing in Lisp more or less dominate=
d <br>
the performance profile, so the migration to the new calling convention <br=
>
didn&#39;t seem valuable enough.<br>
<br>
It should bring more benefit if the project is large enough, though. If <br=
>
someone working on a big internal project would like to test the <br>
resulting performance, I&#39;m happy to resurrect the patches.<br>
</blockquote></div>

--000000000000bf02c10643db9a1d--




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

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


Received: (at 79809) by debbugs.gnu.org; 18 Nov 2025 01:22:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 17 20:22:56 2025
Received: from localhost ([127.0.0.1]:54743 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vLAQp-0005Lg-Ki
	for submit <at> debbugs.gnu.org; Mon, 17 Nov 2025 20:22:55 -0500
Received: from forward501a.mail.yandex.net ([178.154.239.81]:60642)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dgutov@HIDDEN>) id 1vLAQm-0005LC-4s
 for 79809 <at> debbugs.gnu.org; Mon, 17 Nov 2025 20:22:54 -0500
Received: from mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net
 [IPv6:2a02:6b8:c0c:7427:0:640:66aa:0])
 by forward501a.mail.yandex.net (Yandex) with ESMTPS id A854582594;
 Tue, 18 Nov 2025 04:22:44 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id fMJrP9nLLuQ0-6W2wKZCD; 
 Tue, 18 Nov 2025 04:22:44 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1763428964; bh=sebOtfg8Y7uTfv3lNtSAXcS2srM8d15Z95HIFiXzEwY=;
 h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To;
 b=WlMpXj/tiPZT2H1YSqO5otDCpCE+BgTKj/tko1y89rY5+PbUOD4NQQUf1G4mF798Z
 6RWmiyemMp/8UpTQxIwcaB0eUP/PMZD1qmcPC8ZnS+X8/lEYlyawB2jG7WAnaqeVa/
 GlEIGv1YA2kZ2shVPa3UafzImpIbqLLlOaEjCB8M=
Authentication-Results: mail-nwsmtp-smtp-production-main-95.iva.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41])
 by mailfauth.phl.internal (Postfix) with ESMTP id 97849F40072;
 Mon, 17 Nov 2025 20:22:41 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-01.internal (MEProxy); Mon, 17 Nov 2025 20:22:41 -0500
X-ME-Sender: <xms:YcobaU3uFz-USk3fTXDZzzNSv96Cj7R3I0sKMJPLClYd120tbZFNkg>
 <xme:YcobaWicF4TG9yNv_cIVj4YJZvVJCLuF0epMrrXM1Fgr_UlGxgt_6FGVBa7Xj5A9Z
 1KdWD5e3QWbWN9Si72D68uIsMNSwDXzETuKDM4WFoMsH5EtTYtR8R4>
X-ME-Received: <xmr:YcobaaQQ8QgnECDJXXFvt-ypcI1Dh3fAnsqNKBxV0ccgH0E80Yp6sh-bgeHwlGSSWw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvvddttdduucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu
 rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf
 gurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhithhr
 hicuifhuthhovhcuoegughhuthhovheshigrnhguvgigrdhruheqnecuggftrfgrthhtvg
 hrnhepheegleejudegueffudejtdeukeelheduiefhleevkeeifeeugefhtdevvdegueel
 necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughguh
 htohhvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqddufeeffeelleehhedv
 qddvleegjeejjeejiedqughguhhtohhvpeephigrnhguvgigrdhruhesfhgrshhtmhgrih
 hlrdgtohhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphht
 thhopehjohgrohhtrghvohhrrgesghhmrghilhdrtghomhdprhgtphhtthhopegvmhgrtg
 hssegrkhhurhhthhdruggvpdhrtghpthhtohepjeelkedtleesuggvsggsuhhgshdrghhn
 uhdrohhrgh
X-ME-Proxy: <xmx:YcobaXjxkduONZDtlZ-dRGFxQ38AgZKgR-4mFfr_VgTCHssiUd9VXg>
 <xmx:Ycobaa4bF7EHcLOtEWNaSGaZcGuo8nTJ_GDmDfuGwJkfm80MAZxQJQ>
 <xmx:YcobaUCerpwcMWZIKpkV6HAycPPn4j2igcEePIpsDmMvxnXj3kNseg>
 <xmx:YcobaRbrWWlw3McGrdwU2iGlk2zwVwoN6Tk2eRX2AOTwcjKozOTXeA>
 <xmx:Ycobafac9dMQL192TcMDA1TjTBF6pw1Eia5enzMknyta22Wrt7tVlG90>
Feedback-ID: ib1d9465d:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon,
 17 Nov 2025 20:22:40 -0500 (EST)
Message-ID: <b985a791-7cb0-405f-961f-1ccaed0821f8@HIDDEN>
Date: Tue, 18 Nov 2025 03:22:38 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>,
 Andreas Kurth <emacs@HIDDEN>
References: <878qg7kmpw.fsf@HIDDEN>
 <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <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 (-)

Hi!

On 16/11/2025 00:08, João Távora wrote:
> Now, the file names are taken from a project-files call, and I don't know
> if it has some kind of built in "filter" option (where we would pass the
> aforementioned pathified based-uri).  It could for example leverage some
> Git flag under the hood and which would probably also increase performance.
> Let's ask Dmitry Gutov, project.el maintainer, what he thinks.

I've had a feature like that in a branch for a while, but the few times 
I've tested it, the subsequent processing in Lisp more or less dominated 
the performance profile, so the migration to the new calling convention 
didn't seem valuable enough.

It should bring more benefit if the project is large enough, though. If 
someone working on a big internal project would like to test the 
resulting performance, I'm happy to resurrect the patches.




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

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


Received: (at 79809) by debbugs.gnu.org; 15 Nov 2025 22:07:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 15 17:07:16 2025
Received: from localhost ([127.0.0.1]:37946 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vKOQO-0001PP-BU
	for submit <at> debbugs.gnu.org; Sat, 15 Nov 2025 17:07:16 -0500
Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]:46263)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vKOQL-0001PJ-P4
 for 79809 <at> debbugs.gnu.org; Sat, 15 Nov 2025 17:07:14 -0500
Received: by mail-oi1-x22b.google.com with SMTP id
 5614622812f47-45074d0010aso769629b6e.0
 for <79809 <at> debbugs.gnu.org>; Sat, 15 Nov 2025 14:07:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1763244428; x=1763849228; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=wZXvnV97K+ndaaYCeEMwk1Ys9jHEo5rxOQQjvQt/8OA=;
 b=Mz+lSOIsleebwheiifCShIY35B1DlsD70m41twPhQ8kBi4sBbOYtEhSVm6tnrp/hGS
 J2X8174MWNqsbfW3SQhR8UD0gwi24d2zBZBblZO9VOzo90/c1QtEXLaYtvC3Cpr0aLEH
 oO/8ACmNuY5O7qDq2F0AWQAUxLgashZOENMHBUcTDDnDVhDkpNTULFRdoF9i3zd/YHE8
 bCHgZG02fTnuJaxbvkJVNubLSPMA1MbRdGetR4aET2QGw9P2K+9/QICTmtKR3/1Gm+LX
 X/ALL0K1lRlNG0Upb+A2uuHmOIanw1NYMLMNVE06d7h6uVpAYCucYwCeUvPQUX71Rh1u
 FqSQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1763244428; x=1763849228;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=wZXvnV97K+ndaaYCeEMwk1Ys9jHEo5rxOQQjvQt/8OA=;
 b=lFadHP9hqwdADGw9SFo6+IxbNpckmo0BuXhJ8rzAXF6sLusq8p6Xxtf12X+JB4I4v9
 kwMUUpbbFO519E1x4Vy/qLW034Z4jZ7jlv5Qc13bVfbQULFRk+LrTOxgNH+RNA72Wuji
 m2oSJ66FuSDmkGUsYGB/mZnFAUUWpQ0NvLrM2T0omr9mtsVjJPWzQB7+FJRQ3ZxvfTMX
 dk6DEKP7JXRWkzksOYVr606LHlCHIBFWodh7Fdm/EkjV40QB0rrqSN6bEb99b2Rif6gv
 CCXWbeVerQCbdmazLUNJsWgzyCjTNX62rpXoHeN9AouXw5wueBMA1e3iuIAlM1ild07I
 6Z0A==
X-Gm-Message-State: AOJu0YykEiw5mjq3/Aejc1L6nCwwwPH/TVUSQt1GvSof1nbieuCHpFBe
 D1mwG7vKFFXabQgPXXXa0/Lt7jrdGRwc/oPIeoD08wTVzLgGHm8ArhKi3QIdZ7DB/kiOMXcUJ1E
 BgY5fFyRRhRY7XBdrN8Ochg5EiF68f34=
X-Gm-Gg: ASbGnct97/kbAvfWtyVg/JjekWj+NGi5pm0SFI5ZegEmrfjdBMRaYpCFV9YfHNLE0bK
 Qi0FQMjOWHhBO6pJBkaQ94oB9ygb4FXG8pLBLV3TcdJGYjh3pLMy4j6Y+kzfjuyKKOTjoeWoz8V
 /7IdHu76CdO3NM5JvXFPdeTAOOqmeOEU1VsiLsK1LR4a1VClpchhBd4xeyVWixNn7JlMoa+N1dd
 /1z+lmv4CHlg++00Bhzmz/vABoTRHGFdQFhZsoqOMddDM3sBRSc1IYWmOeFjsZuTmdzXcU=
X-Google-Smtp-Source: AGHT+IHlkW04nlNUMyJ6PPLvSc3fx33YHsg8PGw3EautRJBzeXzOCkda+UeJdhBOmWYBWJjYvvreD1fdITQlDVHb2PY=
X-Received: by 2002:a05:6808:5386:b0:44f:eb07:5042 with SMTP id
 5614622812f47-450975470demr3294385b6e.44.1763244427946; Sat, 15 Nov 2025
 14:07:07 -0800 (PST)
MIME-Version: 1.0
References: <878qg7kmpw.fsf@HIDDEN>
In-Reply-To: <878qg7kmpw.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Sat, 15 Nov 2025 22:08:30 +0000
X-Gm-Features: AWmQ_bmnGjW6-sCpI_mSxzA7c1MimHWuhQtw-IiggNIMPvlVQIO54Q46rjUR4rs
Message-ID: <CALDnm53i_=_XNZmb=5Rp341wfSAQyk=1pgQAoH3CeEwbnwb2yw@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Andreas Kurth <emacs@HIDDEN>, Dmitry Gutov <dgutov@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000c7af4b0643a955ae"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <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 (-)

--000000000000c7af4b0643a955ae
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, Nov 15, 2025 at 9:31=E2=80=AFPM Andreas Kurth <emacs@HIDDEN> wro=
te:

> This naive patch makes at least the error vanish; don=E2=80=99t know if i=
t=E2=80=99s
> enough.


Hey! It's pretty good. Doesn't look that naive to me :-) I mean, it seems
functionally correct, though I haven't tried it.

But if I'm understanding it correctly, instead of concatenating the:

   (eglot-uri-to-path base-uri)

onto the pattern and compiling _that_, which I think is your approach,
I wonder if you could change it so that only the shorter pattern is
compiled.  And only later, when "feeding" file names to that pattern,
we would select only files from within the `base-uri` subdirectory.

Now, the file names are taken from a project-files call, and I don't know
if it has some kind of built in "filter" option (where we would pass the
aforementioned pathified based-uri).  It could for example leverage some
Git flag under the hood and which would probably also increase performance.
Let's ask Dmitry Gutov, project.el maintainer, what he thinks.

But if I had to guess I'd say it doesn't, and it isn't trivial to
implement, so
pre-filtering in Eglot based on string-prefix-p or something like that is
the
best we can do to service my approach of compiling a shorter pattern.

And in that case, it's possible that my approach isn't much better than
the one you have come up with.

Jo=C3=A3o

--000000000000c7af4b0643a955ae
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_quote gmail_quote_container"><div =
dir=3D"ltr" class=3D"gmail_attr">On Sat, Nov 15, 2025 at 9:31=E2=80=AFPM An=
dreas Kurth &lt;<a href=3D"mailto:emacs@HIDDEN">emacs@HIDDEN</a>&gt; =
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This naiv=
e patch makes at least the error vanish; don=E2=80=99t know if it=E2=80=99s=
<br>
enough.</blockquote><div></div><div><br></div><div>Hey! It&#39;s pretty goo=
d. Doesn&#39;t look that naive to me :-) I mean, it seems=C2=A0</div><div>f=
unctionally correct, though I=C2=A0haven&#39;t tried it.</div><div><br></di=
v><div>But if I&#39;m understanding it correctly, instead of concatenating =
the:</div><div><br></div><div>=C2=A0 =C2=A0(eglot-uri-to-path base-uri)</di=
v><div><br></div><div>onto the pattern and compiling _that_, which I think =
is your approach,=C2=A0</div><div>I wonder if you could change it so that o=
nly the shorter pattern is=C2=A0</div><div>compiled.=C2=A0 And only later, =
when &quot;feeding&quot; file names to that pattern,=C2=A0</div><div>we wou=
ld select only files from=C2=A0within the `base-uri` subdirectory.</div><di=
v><br></div><div>Now, the file names are taken from a project-files call, a=
nd I don&#39;t know=C2=A0</div><div>if it has some kind of built in &quot;f=
ilter&quot; option (where we would pass the=C2=A0</div><div>aforementioned =
pathified based-uri).=C2=A0 It could for example leverage some</div><div>Gi=
t flag under the hood and which would probably also increase performance.</=
div><div>Let&#39;s ask Dmitry Gutov, project.el=C2=A0maintainer, what he th=
inks.</div><div><br></div><div>But if I had to guess I&#39;d say it doesn&#=
39;t, and it isn&#39;t trivial to implement, so=C2=A0</div><div>pre-filteri=
ng in Eglot based on string-prefix-p or something like that is the=C2=A0</d=
iv><div>best we can do to service my approach of compiling a shorter patter=
n.=C2=A0</div><div><br></div><div>And in that case, it&#39;s possible that =
my=C2=A0approach isn&#39;t much better than=C2=A0</div><div>the one you hav=
e come up with.</div><br></div><div class=3D"gmail_quote gmail_quote_contai=
ner"></div><div class=3D"gmail_quote gmail_quote_container">Jo=C3=A3o<div><=
br></div></div></div>

--000000000000c7af4b0643a955ae--




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

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


Received: (at submit) by debbugs.gnu.org; 15 Nov 2025 21:31:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 15 16:31:10 2025
Received: from localhost ([127.0.0.1]:37667 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vKNrS-0008N9-Dc
	for submit <at> debbugs.gnu.org; Sat, 15 Nov 2025 16:31:10 -0500
Received: from lists.gnu.org ([2001:470:142::17]:51078)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <emacs@HIDDEN>) id 1vKNrQ-0008Mv-N8
 for submit <at> debbugs.gnu.org; Sat, 15 Nov 2025 16:31:09 -0500
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 <emacs@HIDDEN>) id 1vKNrK-0000rA-DF
 for bug-gnu-emacs@HIDDEN; Sat, 15 Nov 2025 16:31:02 -0500
Received: from mout.kundenserver.de ([217.72.192.73])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <emacs@HIDDEN>) id 1vKNrH-0002yz-8A
 for bug-gnu-emacs@HIDDEN; Sat, 15 Nov 2025 16:31:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akurth.de;
 s=s1-ionos; t=1763242238; x=1763847038; i=emacs@HIDDEN;
 bh=rRaJjpMzYDexUqve5vUkUUdXfk+Xhl7tgEp6NVf3sjo=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:Date:Message-ID:
 MIME-Version:Content-Type:Content-Transfer-Encoding:cc:
 content-transfer-encoding:content-type:date:from:message-id:
 mime-version:reply-to:subject:to;
 b=VUPrtOZGVdBnxpiMJDBKRsTb6elZ2nK2qcxy5E1ze7uFuO3rhoo23AcrnCmi8U6x
 3W8s7NeRSYqfXna+WyhcVfd4/ptF3VlMohqe2xhtt3DFIajALSqZAbbrvTXifp6lv
 bky8EXdq+swkJpyAITt1WlrcP6KqlQC5//+iLOmn94PWfP9k2HZNAwfAkpFaCzbBA
 qpFGY6nq/MDYqAWikNdIgKnio9rep8KAMJHVz3jejhRFnPGCs6tReOokbK2wb3258
 0hpUewfHpJp3k5XuAIW3fux2rlppwHwpoWXMfokA/nwgBVDqULMAXe/YJ/b+FuRW4
 Wrxm1C7/k9bfr83UoQ==
X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6
Received: from ravel ([109.250.31.208]) by mrelayeu.kundenserver.de (mreue109
 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MspyA-1w8mXt3kbo-00yebG; Sat, 15
 Nov 2025 22:30:37 +0100
From: Andreas Kurth <emacs@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
In-Reply-To: CALDnm52DUmn+GOo5n9M2ieG80PkkaweHUtLakjNCB8bNDbTXpw@HIDDEN
User-Agent: mu4e 1.12.13; emacs 31.0.50
OpenPGP: id=42E6E88E86E24E19; url=https://akurth.de/gpg/ak/pubkey.asc
Date: Sat, 15 Nov 2025 22:30:35 +0100
Message-ID: <878qg7kmpw.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:2eJ0CmsOgts3oizrUMH/CtjWYqs2SAHopBLjvQnQKaBBLosZpcu
 P12jjc7DckVWqR5jEziwOdsBqv213/JqbIGjUwiMWKKNISU+gSIdUeK4AYSciov5/LfRPOX
 ijAdKLycFenFrskEZ7qKedmK/3h8esAjq4i7JVnPfIywWYjMlSJl/yd5VslaSJPs5JXN0L8
 a/7ZwQ/XSyvd5ubi+KUOA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:gv15x9JaKSE=;7hnkYtfOucd6KMLuTaIOV4+aa10
 Inbb8cOUj8uRui1bZGDREvM5mNDszw8V/1D44rX5pm2axC32kuezlanSUDyjLCAIH6A4jnovV
 De8YI7QlhQ3CSvXMQLI9sfBJ630ZdMh8zjp8ihXimdT0D2ECieKMDfIHw+46uRDeBdPgzPij8
 9lhttJfjKVR5QaGEdn6IP5LGtolP5FuRqJfBGJH32g89uoVe4ef3xb3EqY0IZn8i8GTGxQ5Un
 9ZKP11Szo7PbbdkN08InRqY0bYv7CJm86O9dQzg08n9vZymy8RLJl2UDyzmbgOuqgYUNumjG4
 YkEt8++PsTry3/8XmSFYibcPHiD0UOPNVUNa2foSsPHS9wWnJASWTvcvxVvkWaA3EIygKvI+U
 idWF1I8i7O8PWRM9SZTuabv/h7G4B3Txy7v0NOyfuygiOr3/dpp4KDuUKsSok+R0NeNk4wQnL
 f6x/Bp+zZy7Z1Ad5uy2fOZPQa8WFoVFxcJHT6ye04NuA03LAtArRdjANELHZDePNtvDKLwSYA
 uOh2bkYRsFw6OpQgBaFS8dG84MJeXilNedGtskgto6+hMXVykwoAW+Ay/e2QQVDXm3iC2MWlJ
 7cIEM+5N7vyTdLqVuHCrSw7omaaw2Wc5ZVaygQ41aeWowulsojWx822Mb6hu9FKHd4NCGaFfX
 XWVwWZxYoC+k5xkQraHHaRs9PPIwMbgPYO/WswBzLARS0czaPwE5soGHENstwm8zrWVDBIA6I
 /g8ge65vPHkmP/iQP7lUH+SztmM9XMdfFltpRZztfmcodgcUymP+1wCWmz6q2HPkGMnBSgzxN
 rDc0nEDBblEm6YsrrMEo6MwuwN0QzD+c9LOplPxO6Mb1ushp3uHqS43jvedpr1wcBkg45zhyK
 KsfO58L1T8L5zs7OFxv/NhPQsZ+F/1PTVuMno7j/A5qseQKVyRprXtcPm1y/UUqd9dAw9BR5S
 +FGCIxEzR0m2aQFXLuiAevjsvg9/PgFs14ZcvADmZ+9252wN5QS6UT+KJBNQ1xLrkMWcAelmj
 1HlIEegM49RNmFSKrorAL7RS1tMXGAY0k47N9tu4jIzeRJCur2COEWLUd97aGaYzlVu7EWYFI
 rrPiC2U0QkmVpgsM9etDTfECFjzZvi/h3FJRiTVehohrbtpgdR03Co1APu9UPzYZXjAyQjAWq
 dl9FV73vtX4Q4O10orKNApO8B+by5HorygQ1L8+g9wtFU1Ool+ExD2JOosq/yizDzfzgNMyJV
 ImGmqPrly+ErYKsE741aJOEcDJgb6fqKubmCJEp4pAHKla5lgVwWhmHHCXPtE32m1SA0kpbKU
 aYdj/oTHPZTvw0HQlszkKBHQB2wUH6W7y428PDbePvHXfE817/rzmfLtjoTxrjZ6n4feaDGyc
 1QhHrToOqKC5Js5Tno8P3/zjX7+ykEfx85ABse2YF6OtauFQgrn5VFWOe9JI5YVhE9p+fzMLJ
 2tV01Qhqb0kYcX9ymiDUwNFRsQzp+Qa+eHh6foN8MoacGaQRLsJrHATbGN/p8hHlgGqp5EClc
 N1euUWzUbHicKgvXPhbFRrmoNcDuzsyZ/AagEe0soC7ucZhkReIdzg64/2TaJSKcKczi0xPwU
 0SxofxeN5NmgUEDp4BDUsu/fyoNey84tq/E9JP3dhmdudv5WrpAXRA5An6SiwXmEmqi9T7hbi
 xF3sKcSejEkKx22OVGpg68IqnyuVcDDwVZl4pigTjEj9iqBLhfjHOhvcslOOBD8aUsEOB0KsM
 wjkoWfa/lfzW4y97hwRDBlgUE+DW1fxqxKGcNLHaw/LKCOFLnh5EKkos=
Received-SPF: pass client-ip=217.72.192.73; envelope-from=emacs@HIDDEN;
 helo=mout.kundenserver.de
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,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 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
Cc: joaotavora@HIDDEN
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 (/)

This naive patch makes at least the error vanish; don=E2=80=99t know if it=
=E2=80=99s
enough.


diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 2b901ed7875..4de52255e53 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1059,7 +1059,8 @@ eglot-client-capabilities
                         :workspaceEdit `(:documentChanges t)
                         :didChangeWatchedFiles
                         `(:dynamicRegistration
-                          ,(if (eglot--trampish-p s) :json-false t))
+                          ,(if (eglot--trampish-p s) :json-false t)
+                          :relativePatternSupport t)
                         :symbol `(:dynamicRegistration :json-false)
                         :semanticTokens '(:refreshSupport t)
                         :configuration t
@@ -4257,11 +4258,24 @@ eglot-register-capability
   (let* (success
          (globs (mapcar
                  (eglot--lambda ((FileSystemWatcher) globPattern kind)
-                   (cons (eglot--glob-compile globPattern t t)
-                         ;; the default "7" means bitwise OR of
-                         ;; WatchKind.Create (1), WatchKind.Change
-                         ;; (2), WatchKind.Delete (4)
-                         (or kind 7)))
+                   (let ((glob-string
+                          ;; globPattern can be either a string or an obje=
ct
+                          ;; with 'pattern' and optional 'baseUri' fields
+                          (if (stringp globPattern)
+                              globPattern
+                            (let ((pattern (plist-get globPattern :pattern=
))
+                                  (base-uri (plist-get globPattern :baseUr=
i)))
+                              (if base-uri
+                                  ;; Combine baseUri path with pattern
+                                  (concat (file-name-as-directory
+                                           (eglot-uri-to-path base-uri))
+                                          pattern)
+                                pattern)))))
+                     (cons (eglot--glob-compile glob-string t t)
+                           ;; the default "7" means bitwise OR of
+                           ;; WatchKind.Create (1), WatchKind.Change
+                           ;; (2), WatchKind.Delete (4)
+                           (or kind 7))))
                  watchers))
          (dirs-to-watch
           (delete-dups (mapcar #'file-name-directory


Cheers, Andreas.




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

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


Received: (at 79809) by debbugs.gnu.org; 15 Nov 2025 10:06:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 15 05:06:38 2025
Received: from localhost ([127.0.0.1]:33852 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vKDAy-0007F7-NA
	for submit <at> debbugs.gnu.org; Sat, 15 Nov 2025 05:06:38 -0500
Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]:59577)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <joaotavora@HIDDEN>)
 id 1vKDAv-0007Ex-5O
 for 79809 <at> debbugs.gnu.org; Sat, 15 Nov 2025 05:06:35 -0500
Received: by mail-ot1-x331.google.com with SMTP id
 46e09a7af769-7c7533dbd87so200526a34.2
 for <79809 <at> debbugs.gnu.org>; Sat, 15 Nov 2025 02:06:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1763201187; x=1763805987; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=Zvp800ud1UBp1YfqwdkSAlJkTJ8MaPfD2tFXRBBWezs=;
 b=OvkK0LZXotUWtOoy/603MffzAGTR80NkO6PRRM77q80OEO4USeNT1+udvK8mhEUrs+
 39PkO175nhgwjz4GJt4pJYZveBISzTJm9MVvQl4RUqCtaZurSfF+cQAjsK9HuiwySHn3
 HAacridF8fIT/EAOcGWLZs8OkS0a3+H/CAfdwLB3d5dUdnoUmyF1POjKpQ3BWe/amyRh
 5UP2oqnvMpG5gN60Nq6XZaEpIh1kWhShFlTwrG7hnpLMtOXmFBvKTTlMgX9tRUXDg8OW
 nEgwO4uEQk6KpFEiFKigC2OF33rhx0RdVGbJHqG0krztfZZw8RPBZuKp9vM2phj9Arcd
 yywg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1763201187; x=1763805987;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=Zvp800ud1UBp1YfqwdkSAlJkTJ8MaPfD2tFXRBBWezs=;
 b=emJX3MZ8y+M1a4mQJ09bn5AX4VnztdCCgCQIxOGwWZ9RgzRxoX1UArGR1d7GFN6nIW
 Fn5rV76oIQLKaPWkhKl+655sDKmPzGkgXwlHzRfzbIv1nl7IDmwYB7O8sdCxCLUJqEHy
 H6Hkkqc+DHy1/XwL881CUGHKvNvUIHIJ681LX/reH3QNWSVjV2SHhcIkWteNc9OKVTtK
 L5CUbVs5FABcZm9aELA8GA3qEtPDAuhiOkhzGkMPSrcvR8hdkTpVGl43EFAGW3Z7PotO
 rDOn+u8w1HFe0Vnm9Vpc6uKzfGN7tVYaN+Yxm7KaFzgDVf6RtCWrrA2+95BI8ALfzPgP
 Eg0g==
X-Forwarded-Encrypted: i=1;
 AJvYcCVr03xntcCVphIQVdHtRPLzqtu65UgrkkNGQkLQfLtNxZHzsiqdR+y1r3CI9wGYdHCTEleqsg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yy6iqH4D+IsQInjTx4WJOfX3PcXGKkP1Cyy56qrrFbBXtTVPDIY
 zzd/9KYJvQXbBf6vfjmvuC5LUoz8ItJ4A7n/Un40Qk744S1yu+FGDAN/QPDCsI3amTCT00AsH6t
 tjxKooXIEgUhu0KSqLjnBxf8yj5KtYO4=
X-Gm-Gg: ASbGncuMFVX+2XiH2xoD3XfIf6ulQXh5HzmkEPFsqICAhj0gdP6yahmTQexG+iVeKwl
 g8EYUurNw8DBXMWbm91UUYJeCcsmBtyuz1M/e5P9b6O7D993wjKiLuYbcSe6OkCAY2cf7a6E4fZ
 JLW2OSXES3hQtSrub+cllz9ExF2vxBpnCxvaT4tYltgwgbmg9HVTrcYGwkeb1HVV6YiQDLyTuWM
 d94SQK3MFP2XKfg+G4uOTx1hy1i7WMAnIXVoN22YtH2xvY+mZdYnZGlfSlPnpcaJRFFZ+LE5Z2b
 iqskYw==
X-Google-Smtp-Source: AGHT+IGb6fvcHe20L/gcDqpU7vcJCa/6zS29ZULMHVsXVg0Z4cFbCV51rlT2LrJhar4NmvLPrlJ7WV77u/OIBclr1so=
X-Received: by 2002:a05:6808:1649:b0:44d:aa8b:58f2 with SMTP id
 5614622812f47-450973fabecmr2919766b6e.9.1763201187004; Sat, 15 Nov 2025
 02:06:27 -0800 (PST)
MIME-Version: 1.0
References: <e310ac57-2b2c-4f68-944f-a88c843bab66@HIDDEN>
 <86tsyvockr.fsf@HIDDEN>
In-Reply-To: <86tsyvockr.fsf@HIDDEN>
From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
Date: Sat, 15 Nov 2025 10:07:49 +0000
X-Gm-Features: AWmQ_bmGUHFTtxHsG_-pNwZ5NbP-KhQkrgrRrIUFxyamDrqnCeckkkAVlNjn6Mc
Message-ID: <CALDnm52DUmn+GOo5n9M2ieG80PkkaweHUtLakjNCB8bNDbTXpw@HIDDEN>
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
To: Eli Zaretskii <eliz@HIDDEN>, Cay Horstmann <cay@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000006b458606439f4461"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <at> debbugs.gnu.org, hkirsch@HIDDEN
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 (-)

--0000000000006b458606439f4461
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I've seen this issue before.

https://github.com/joaotavora/eglot/discussions/1542

The server is failing to check for "RelativePattern" support in the client.

So it's a server bug.  But  relativePatternSupport can be added to Eglot
without much difficulty.  Maybe even an LLM can add it (and then I will
will review the code).

Jo=C3=A3o

On Sat, Nov 15, 2025 at 9:43=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote:
>
> > Date: Mon, 10 Nov 2025 11:03:39 +0000
> > From: hkirsch@HIDDEN
> >
> > With recent version of eclipse.jdt.ls, Eglot throws a Lisp error during
> > initialization with a debug trace shown below indicating that it cannot
> > work with the watcher information sent back by the server.
> >
> > eclipse.jdt.ls version: at least since 1.49 (what I tested).
> > Probably since their commit 7d8b8b4fbb0b38492f289b42de19777d77606440 Th=
u
> > Mar 6 15:23:22 2025 -0500
> > which has:
> >
> > -       public static String toGlobPattern(IPath path) {
> > +       public static Either<String, RelativePattern>
> > toGlobPattern(IPath path) {
> >
> > so here they seem to start using the RelativePattern thing.
>
> Thanks.  Jo=C3=A3o, any comments or suggestions?
>
> > eglot-version: 1.19
> >
> > emacs-version: GNU Emacs 30.2 (build 1, x86_64-pc-linux-gnu, GTK+
> > Version 3.24.33, cairo version 1.16.0) of 2025-08-17, modified by Debia=
n
> >
> > To reproduce:
> >
> > Download eclipse jdtls from
https://download.eclipse.org/jdtls/milestones/?d
> >
> > Direct link:
> >
https://www.eclipse.org/downloads/download.php?file=3D/jdtls/milestones/1.4=
9.0/jdt-language-server-1.49.0-202507311558.tar.gz
> >
> > After unpacking the tar.gz, configure eglot to run the bin/jdtls in the
> > unpacked directory as the LSP server, i.e. just make sure it is found a=
s
> > the executable jdtls on PATH.
> >
> >
> > 1. Extract the tgz containing:
> > - a fake .git subdir to let projects find the root dir
> > - a single Java source file, src/Fail.java
> > - .classpath and .project to keep jdtls at bay
> > - debug-trace.txt as produced by Lisp error
> > - eglot-events.txt
> >
> > 2. Run: emacs -Q -f package-initialize
> > 3. Execute: M-x toggle-debug-on-error
> > 4. Find file: src/Fail.java
> > 5. Execute: M-x eglot
> >
> > This produces the following debug trace also contained in the tgz:
> >
> > Debugger entered--Lisp error: (wrong-type-argument char-or-string-p
> > (:baseUri "file:/home/harald/work/" :pattern
"eglot-watchers-jdts-fail"))
> >    eglot--glob-parse((:baseUri "file:/home/harald/work/" :pattern
> > "eglot-watchers-jdts-fail"))
> >    eglot--glob-compile((:baseUri "file:/home/harald/work/" :pattern
> > "eglot-watchers-jdts-fail") t t)
> >    #f(compiled-function (jsonrpc-lambda-elem79) #<bytecode
> > -0x139d9884ce9f11e6>)((:globPattern (:baseUri "file:/home/harald/work/"
> > :pattern "eglot-watchers-jdts-fail") :kind 4))
> >    mapcar(#f(compiled-function (jsonrpc-lambda-elem79) #<bytecode
> > -0x139d9884ce9f11e6>) [(:globPattern "**/*.java") (:globPattern
> > "**/.project") (:globPattern "**/.classpath") (:globPattern
> > "**/.settings/*.prefs") (:globPattern "**/src/**") (:globPattern
> > "**/*.gradle") (:globPattern "**/*.gradle.kts") (:globPattern
> > "**/gradle.properties") (:globPattern "**/pom.xml") (:globPattern
> > (:baseUri "file:/home/harald/work/" :pattern "eglot-watchers-jdts-fail"=
)
> > :kind 4)])
> >    #f(compiled-function (arg1 arg2 arg3 &rest rest) "Handle dynamic
> > registration of workspace/didChangeWatchedFiles." #<bytecode
> > 0x858a50cf23e1643>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91>
> > workspace/didChangeWatchedFiles "adb8c86a-b1a1-46e9-9a63-80f4c54ff038"
> > :watchers [(:globPattern "**/*.java") (:globPattern "**/.project")
> > (:globPattern "**/.classpath") (:globPattern "**/.settings/*.prefs")
> > (:globPattern "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :patter=
n
> > "eglot-watchers-jdts-fail") :kind 4)])
> >    apply(#f(compiled-function (arg1 arg2 arg3 &rest rest) "Handle
> > dynamic registration of workspace/didChangeWatchedFiles." #<bytecode
> > 0x858a50cf23e1643>) #<eglot-lsp-server eglot-lsp-server-1e992dbf9f91>
> > workspace/didChangeWatchedFiles ("adb8c86a-b1a1-46e9-9a63-80f4c54ff038"
> > :watchers [(:globPattern "**/*.java") (:globPattern "**/.project")
> > (:globPattern "**/.classpath") (:globPattern "**/.settings/*.prefs")
> > (:globPattern "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :patter=
n
> > "eglot-watchers-jdts-fail") :kind 4)]))
> >    eglot-register-capability(#<eglot-lsp-server
> > eglot-lsp-server-1e992dbf9f91> workspace/didChangeWatchedFiles
> > "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :watchers [(:globPattern
> > "**/*.java") (:globPattern "**/.project") (:globPattern "**/.classpath"=
)
> > (:globPattern "**/.settings/*.prefs") (:globPattern "**/src/**")
> > (:globPattern "**/*.gradle") (:globPattern "**/*.gradle.kts")
> > (:globPattern "**/gradle.properties") (:globPattern "**/pom.xml")
> > (:globPattern (:baseUri "file:/home/harald/work/" :pattern
> > "eglot-watchers-jdts-fail") :kind 4)])
> >    eglot--register-unregister(#<eglot-lsp-server
> > eglot-lsp-server-1e992dbf9f91> [(:id
> > "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers
> > [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern
> > "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern
> > "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :patter=
n
> > "eglot-watchers-jdts-fail") :kind 4)]))] register)
> >    #f(compiled-function (arg1 arg2 &rest rest) "Handle server request
> > client/registerCapability." #<bytecode
> > -0x156012ebe0c37209>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91>
> > client/registerCapability :registrations [(:id
> > "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers
> > [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern
> > "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern
> > "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :patter=
n
> > "eglot-watchers-jdts-fail") :kind 4)]))])
> >    apply(#f(compiled-function (arg1 arg2 &rest rest) "Handle server
> > request client/registerCapability." #<bytecode -0x156012ebe0c37209>)
> > #<eglot-lsp-server eglot-lsp-server-1e992dbf9f91>
> > client/registerCapability (:registrations [(:id
> > "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers
> > [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern
> > "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern
> > "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :patter=
n
> > "eglot-watchers-jdts-fail") :kind 4)]))]))
> >    eglot-handle-request(#<eglot-lsp-server
> > eglot-lsp-server-1e992dbf9f91> client/registerCapability :registrations
> > [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers
> > [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern
> > "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern
> > "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :patter=
n
> > "eglot-watchers-jdts-fail") :kind 4)]))])
> >    apply(eglot-handle-request #<eglot-lsp-server
> > eglot-lsp-server-1e992dbf9f91> client/registerCapability (:registration=
s
> > [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers
> > [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern
> > "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern
> > "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :patter=
n
> > "eglot-watchers-jdts-fail") :kind 4)]))]))
> >    #f(compiled-function (server method params) #<bytecode
> > 0x1f1ac0b30d0648aa>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91>
> > client/registerCapability (:registrations [(:id
> > "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers
> > [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern
> > "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern
> > "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :patter=
n
> > "eglot-watchers-jdts-fail") :kind 4)]))]))
> >    jsonrpc-connection-receive(#<eglot-lsp-server
> > eglot-lsp-server-1e992dbf9f91> (:jsonrpc "2.0" :id "6" :method
> > "client/registerCapability" :params (:registrations [(:id
> > "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers
> > [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern
> > "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern
> > "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern ... :kind 4)]))])))
> >    #f(compiled-function (conn msg) #<bytecode
> > -0x1cb2362863397428>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91>
> > (:jsonrpc "2.0" :id "6" :method "client/registerCapability" :params
> > (:registrations [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers
> > [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern
> > "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern
> > "**/src/**") (:globPattern "**/*.gradle") (:globPattern
> > "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern
> > "**/pom.xml") (:globPattern ... :kind 4)]))])))
> >    apply(#f(compiled-function (conn msg) #<bytecode
> > -0x1cb2362863397428>) (#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91=
>
> > (:jsonrpc "2.0" :id "6" :method "client/registerCapability" :params
> > (:registrations [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers [... ...
> > ... ... ... ... ... ... ... ...]))]))))
> >    timer-event-handler([t 26897 44860 488187 nil #f(compiled-function
> > (conn msg) #<bytecode -0x1cb2362863397428>) (#<eglot-lsp-server
> > eglot-lsp-server-1e992dbf9f91> (:jsonrpc "2.0" :id "6" :method
> > "client/registerCapability" :params (:registrations [(:id
> > "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method
> > "workspace/didChangeWatchedFiles" :registerOptions (:watchers ...))])))
> > nil 915000 nil])
> >
> >
> >
> > Further the following appears in the eglot events, also in the tgz
> > (search for baseUri):
> >
> > [jsonrpc] e[10:35:52.508] <-- client/registerCapability[5]
> >
{"jsonrpc":"2.0","id":"5","method":"client/registerCapability","params":{"r=
egistrations":[{"id":"03cb5593-e485-4fdd-83aa-e5f1c9892abe","method":"works=
pace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"=
**/*.java"},{"globPattern":"**/.project"},{"globPattern":"**/.classpath"},{=
"globPattern":"**/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globPat=
tern":"**/*.gradle"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**/g=
radle.properties"},{"globPattern":"**/pom.xml"},{"globPattern":{"baseUri":"=
file:/home/harald/work/","pattern":"eglot-watchers-jdts-fail"},"kind":4}]}}=
]}}
> >
> >
> > Though the pattern seems silly in the example, it is important to have
> > for formatter and properties files read by eclipse which are not part o=
f
> > the project directory.
> >
> > Regards
> > Harald



--
Jo=C3=A3o T=C3=A1vora

--0000000000006b458606439f4461
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I&#39;ve seen this issue before.</div><div><br></div>=
<div><a href=3D"https://github.com/joaotavora/eglot/discussions/1542">https=
://github.com/joaotavora/eglot/discussions/1542</a></div><br>The server=C2=
=A0is failing to check for &quot;RelativePattern&quot; support in the clien=
t.<br><br><div>So it&#39;s a server bug.=C2=A0 But=C2=A0 relativePatternSup=
port can be added to Eglot=C2=A0</div><div>without much=C2=A0difficulty.=C2=
=A0 Maybe even an LLM can add it (and then I will</div><div>will review the=
 code).</div><div><br></div><div>Jo=C3=A3o</div><br>On Sat, Nov 15, 2025 at=
 9:43=E2=80=AFAM Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@gnu=
.org</a>&gt; wrote:<br>&gt;<br>&gt; &gt; Date: Mon, 10 Nov 2025 11:03:39 +0=
000<br>&gt; &gt; From: <a href=3D"mailto:hkirsch@HIDDEN">hkirsch@posteo.=
de</a><br>&gt; &gt;<br>&gt; &gt; With recent version of <a href=3D"http://e=
clipse.jdt.ls">eclipse.jdt.ls</a>, Eglot throws a Lisp error during<br>&gt;=
 &gt; initialization with a debug trace shown below indicating that it cann=
ot<br>&gt; &gt; work with the watcher information sent back by the server.<=
br>&gt; &gt;<br>&gt; &gt; <a href=3D"http://eclipse.jdt.ls">eclipse.jdt.ls<=
/a> version: at least since 1.49 (what I tested).<br>&gt; &gt; Probably sin=
ce their commit 7d8b8b4fbb0b38492f289b42de19777d77606440 Thu<br>&gt; &gt; M=
ar 6 15:23:22 2025 -0500<br>&gt; &gt; which has:<br>&gt; &gt;<br>&gt; &gt; =
- =C2=A0 =C2=A0 =C2=A0 public static String toGlobPattern(IPath path) {<br>=
&gt; &gt; + =C2=A0 =C2=A0 =C2=A0 public static Either&lt;String, RelativePa=
ttern&gt;<br>&gt; &gt; toGlobPattern(IPath path) {<br>&gt; &gt;<br>&gt; &gt=
; so here they seem to start using the RelativePattern thing.<br>&gt;<br>&g=
t; Thanks.=C2=A0 Jo=C3=A3o, any comments or suggestions?<br>&gt;<br>&gt; &g=
t; eglot-version: 1.19<br>&gt; &gt;<br>&gt; &gt; emacs-version: GNU Emacs 3=
0.2 (build 1, x86_64-pc-linux-gnu, GTK+<br>&gt; &gt; Version 3.24.33, cairo=
 version 1.16.0) of 2025-08-17, modified by Debian<br>&gt; &gt;<br>&gt; &gt=
; To reproduce:<br>&gt; &gt;<br>&gt; &gt; Download eclipse jdtls from <a hr=
ef=3D"https://download.eclipse.org/jdtls/milestones/?d">https://download.ec=
lipse.org/jdtls/milestones/?d</a><br>&gt; &gt;<br>&gt; &gt; Direct link:<br=
>&gt; &gt; <a href=3D"https://www.eclipse.org/downloads/download.php?file=
=3D/jdtls/milestones/1.49.0/jdt-language-server-1.49.0-202507311558.tar.gz"=
>https://www.eclipse.org/downloads/download.php?file=3D/jdtls/milestones/1.=
49.0/jdt-language-server-1.49.0-202507311558.tar.gz</a><br>&gt; &gt;<br>&gt=
; &gt; After unpacking the tar.gz, configure eglot to run the bin/jdtls in =
the<br>&gt; &gt; unpacked directory as the LSP server, i.e. just make sure =
it is found as<br>&gt; &gt; the executable jdtls on PATH.<br>&gt; &gt;<br>&=
gt; &gt;<br>&gt; &gt; 1. Extract the tgz containing:<br>&gt; &gt; - a fake =
.git subdir to let projects find the root dir<br>&gt; &gt; - a single Java =
source file, src/Fail.java<br>&gt; &gt; - .classpath and .project to keep j=
dtls at bay<br>&gt; &gt; - debug-trace.txt as produced by Lisp error<br>&gt=
; &gt; - eglot-events.txt<br>&gt; &gt;<br>&gt; &gt; 2. Run: emacs -Q -f pac=
kage-initialize<br>&gt; &gt; 3. Execute: M-x toggle-debug-on-error<br>&gt; =
&gt; 4. Find file: src/Fail.java<br>&gt; &gt; 5. Execute: M-x eglot<br>&gt;=
 &gt;<br>&gt; &gt; This produces the following debug trace also contained i=
n the tgz:<br>&gt; &gt;<br>&gt; &gt; Debugger entered--Lisp error: (wrong-t=
ype-argument char-or-string-p<br>&gt; &gt; (:baseUri &quot;file:/home/haral=
d/work/&quot; :pattern &quot;eglot-watchers-jdts-fail&quot;))<br>&gt; &gt; =
=C2=A0 =C2=A0eglot--glob-parse((:baseUri &quot;file:/home/harald/work/&quot=
; :pattern<br>&gt; &gt; &quot;eglot-watchers-jdts-fail&quot;))<br>&gt; &gt;=
 =C2=A0 =C2=A0eglot--glob-compile((:baseUri &quot;file:/home/harald/work/&q=
uot; :pattern<br>&gt; &gt; &quot;eglot-watchers-jdts-fail&quot;) t t)<br>&g=
t; &gt; =C2=A0 =C2=A0#f(compiled-function (jsonrpc-lambda-elem79) #&lt;byte=
code<br>&gt; &gt; -0x139d9884ce9f11e6&gt;)((:globPattern (:baseUri &quot;fi=
le:/home/harald/work/&quot;<br>&gt; &gt; :pattern &quot;eglot-watchers-jdts=
-fail&quot;) :kind 4))<br>&gt; &gt; =C2=A0 =C2=A0mapcar(#f(compiled-functio=
n (jsonrpc-lambda-elem79) #&lt;bytecode<br>&gt; &gt; -0x139d9884ce9f11e6&gt=
;) [(:globPattern &quot;**/*.java&quot;) (:globPattern<br>&gt; &gt; &quot;*=
*/.project&quot;) (:globPattern &quot;**/.classpath&quot;) (:globPattern<br=
>&gt; &gt; &quot;**/.settings/*.prefs&quot;) (:globPattern &quot;**/src/**&=
quot;) (:globPattern<br>&gt; &gt; &quot;**/*.gradle&quot;) (:globPattern &q=
uot;**/*.gradle.kts&quot;) (:globPattern<br>&gt; &gt; &quot;**/gradle.prope=
rties&quot;) (:globPattern &quot;**/pom.xml&quot;) (:globPattern<br>&gt; &g=
t; (:baseUri &quot;file:/home/harald/work/&quot; :pattern &quot;eglot-watch=
ers-jdts-fail&quot;)<br>&gt; &gt; :kind 4)])<br>&gt; &gt; =C2=A0 =C2=A0#f(c=
ompiled-function (arg1 arg2 arg3 &amp;rest rest) &quot;Handle dynamic<br>&g=
t; &gt; registration of workspace/didChangeWatchedFiles.&quot; #&lt;bytecod=
e<br>&gt; &gt; 0x858a50cf23e1643&gt;)(#&lt;eglot-lsp-server eglot-lsp-serve=
r-1e992dbf9f91&gt;<br>&gt; &gt; workspace/didChangeWatchedFiles &quot;adb8c=
86a-b1a1-46e9-9a63-80f4c54ff038&quot;<br>&gt; &gt; :watchers [(:globPattern=
 &quot;**/*.java&quot;) (:globPattern &quot;**/.project&quot;)<br>&gt; &gt;=
 (:globPattern &quot;**/.classpath&quot;) (:globPattern &quot;**/.settings/=
*.prefs&quot;)<br>&gt; &gt; (:globPattern &quot;**/src/**&quot;) (:globPatt=
ern &quot;**/*.gradle&quot;) (:globPattern<br>&gt; &gt; &quot;**/*.gradle.k=
ts&quot;) (:globPattern &quot;**/gradle.properties&quot;) (:globPattern<br>=
&gt; &gt; &quot;**/pom.xml&quot;) (:globPattern (:baseUri &quot;file:/home/=
harald/work/&quot; :pattern<br>&gt; &gt; &quot;eglot-watchers-jdts-fail&quo=
t;) :kind 4)])<br>&gt; &gt; =C2=A0 =C2=A0apply(#f(compiled-function (arg1 a=
rg2 arg3 &amp;rest rest) &quot;Handle<br>&gt; &gt; dynamic registration of =
workspace/didChangeWatchedFiles.&quot; #&lt;bytecode<br>&gt; &gt; 0x858a50c=
f23e1643&gt;) #&lt;eglot-lsp-server eglot-lsp-server-1e992dbf9f91&gt;<br>&g=
t; &gt; workspace/didChangeWatchedFiles (&quot;adb8c86a-b1a1-46e9-9a63-80f4=
c54ff038&quot;<br>&gt; &gt; :watchers [(:globPattern &quot;**/*.java&quot;)=
 (:globPattern &quot;**/.project&quot;)<br>&gt; &gt; (:globPattern &quot;**=
/.classpath&quot;) (:globPattern &quot;**/.settings/*.prefs&quot;)<br>&gt; =
&gt; (:globPattern &quot;**/src/**&quot;) (:globPattern &quot;**/*.gradle&q=
uot;) (:globPattern<br>&gt; &gt; &quot;**/*.gradle.kts&quot;) (:globPattern=
 &quot;**/gradle.properties&quot;) (:globPattern<br>&gt; &gt; &quot;**/pom.=
xml&quot;) (:globPattern (:baseUri &quot;file:/home/harald/work/&quot; :pat=
tern<br>&gt; &gt; &quot;eglot-watchers-jdts-fail&quot;) :kind 4)]))<br>&gt;=
 &gt; =C2=A0 =C2=A0eglot-register-capability(#&lt;eglot-lsp-server<br>&gt; =
&gt; eglot-lsp-server-1e992dbf9f91&gt; workspace/didChangeWatchedFiles<br>&=
gt; &gt; &quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff038&quot; :watchers [(:glob=
Pattern<br>&gt; &gt; &quot;**/*.java&quot;) (:globPattern &quot;**/.project=
&quot;) (:globPattern &quot;**/.classpath&quot;)<br>&gt; &gt; (:globPattern=
 &quot;**/.settings/*.prefs&quot;) (:globPattern &quot;**/src/**&quot;)<br>=
&gt; &gt; (:globPattern &quot;**/*.gradle&quot;) (:globPattern &quot;**/*.g=
radle.kts&quot;)<br>&gt; &gt; (:globPattern &quot;**/gradle.properties&quot=
;) (:globPattern &quot;**/pom.xml&quot;)<br>&gt; &gt; (:globPattern (:baseU=
ri &quot;file:/home/harald/work/&quot; :pattern<br>&gt; &gt; &quot;eglot-wa=
tchers-jdts-fail&quot;) :kind 4)])<br>&gt; &gt; =C2=A0 =C2=A0eglot--registe=
r-unregister(#&lt;eglot-lsp-server<br>&gt; &gt; eglot-lsp-server-1e992dbf9f=
91&gt; [(:id<br>&gt; &gt; &quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff038&quot; =
:method<br>&gt; &gt; &quot;workspace/didChangeWatchedFiles&quot; :registerO=
ptions (:watchers<br>&gt; &gt; [(:globPattern &quot;**/*.java&quot;) (:glob=
Pattern &quot;**/.project&quot;) (:globPattern<br>&gt; &gt; &quot;**/.class=
path&quot;) (:globPattern &quot;**/.settings/*.prefs&quot;) (:globPattern<b=
r>&gt; &gt; &quot;**/src/**&quot;) (:globPattern &quot;**/*.gradle&quot;) (=
:globPattern<br>&gt; &gt; &quot;**/*.gradle.kts&quot;) (:globPattern &quot;=
**/gradle.properties&quot;) (:globPattern<br>&gt; &gt; &quot;**/pom.xml&quo=
t;) (:globPattern (:baseUri &quot;file:/home/harald/work/&quot; :pattern<br=
>&gt; &gt; &quot;eglot-watchers-jdts-fail&quot;) :kind 4)]))] register)<br>=
&gt; &gt; =C2=A0 =C2=A0#f(compiled-function (arg1 arg2 &amp;rest rest) &quo=
t;Handle server request<br>&gt; &gt; client/registerCapability.&quot; #&lt;=
bytecode<br>&gt; &gt; -0x156012ebe0c37209&gt;)(#&lt;eglot-lsp-server eglot-=
lsp-server-1e992dbf9f91&gt;<br>&gt; &gt; client/registerCapability :registr=
ations [(:id<br>&gt; &gt; &quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff038&quot; =
:method<br>&gt; &gt; &quot;workspace/didChangeWatchedFiles&quot; :registerO=
ptions (:watchers<br>&gt; &gt; [(:globPattern &quot;**/*.java&quot;) (:glob=
Pattern &quot;**/.project&quot;) (:globPattern<br>&gt; &gt; &quot;**/.class=
path&quot;) (:globPattern &quot;**/.settings/*.prefs&quot;) (:globPattern<b=
r>&gt; &gt; &quot;**/src/**&quot;) (:globPattern &quot;**/*.gradle&quot;) (=
:globPattern<br>&gt; &gt; &quot;**/*.gradle.kts&quot;) (:globPattern &quot;=
**/gradle.properties&quot;) (:globPattern<br>&gt; &gt; &quot;**/pom.xml&quo=
t;) (:globPattern (:baseUri &quot;file:/home/harald/work/&quot; :pattern<br=
>&gt; &gt; &quot;eglot-watchers-jdts-fail&quot;) :kind 4)]))])<br>&gt; &gt;=
 =C2=A0 =C2=A0apply(#f(compiled-function (arg1 arg2 &amp;rest rest) &quot;H=
andle server<br>&gt; &gt; request client/registerCapability.&quot; #&lt;byt=
ecode -0x156012ebe0c37209&gt;)<br>&gt; &gt; #&lt;eglot-lsp-server eglot-lsp=
-server-1e992dbf9f91&gt;<br>&gt; &gt; client/registerCapability (:registrat=
ions [(:id<br>&gt; &gt; &quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff038&quot; :m=
ethod<br>&gt; &gt; &quot;workspace/didChangeWatchedFiles&quot; :registerOpt=
ions (:watchers<br>&gt; &gt; [(:globPattern &quot;**/*.java&quot;) (:globPa=
ttern &quot;**/.project&quot;) (:globPattern<br>&gt; &gt; &quot;**/.classpa=
th&quot;) (:globPattern &quot;**/.settings/*.prefs&quot;) (:globPattern<br>=
&gt; &gt; &quot;**/src/**&quot;) (:globPattern &quot;**/*.gradle&quot;) (:g=
lobPattern<br>&gt; &gt; &quot;**/*.gradle.kts&quot;) (:globPattern &quot;**=
/gradle.properties&quot;) (:globPattern<br>&gt; &gt; &quot;**/pom.xml&quot;=
) (:globPattern (:baseUri &quot;file:/home/harald/work/&quot; :pattern<br>&=
gt; &gt; &quot;eglot-watchers-jdts-fail&quot;) :kind 4)]))]))<br>&gt; &gt; =
=C2=A0 =C2=A0eglot-handle-request(#&lt;eglot-lsp-server<br>&gt; &gt; eglot-=
lsp-server-1e992dbf9f91&gt; client/registerCapability :registrations<br>&gt=
; &gt; [(:id &quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff038&quot; :method<br>&g=
t; &gt; &quot;workspace/didChangeWatchedFiles&quot; :registerOptions (:watc=
hers<br>&gt; &gt; [(:globPattern &quot;**/*.java&quot;) (:globPattern &quot=
;**/.project&quot;) (:globPattern<br>&gt; &gt; &quot;**/.classpath&quot;) (=
:globPattern &quot;**/.settings/*.prefs&quot;) (:globPattern<br>&gt; &gt; &=
quot;**/src/**&quot;) (:globPattern &quot;**/*.gradle&quot;) (:globPattern<=
br>&gt; &gt; &quot;**/*.gradle.kts&quot;) (:globPattern &quot;**/gradle.pro=
perties&quot;) (:globPattern<br>&gt; &gt; &quot;**/pom.xml&quot;) (:globPat=
tern (:baseUri &quot;file:/home/harald/work/&quot; :pattern<br>&gt; &gt; &q=
uot;eglot-watchers-jdts-fail&quot;) :kind 4)]))])<br>&gt; &gt; =C2=A0 =C2=
=A0apply(eglot-handle-request #&lt;eglot-lsp-server<br>&gt; &gt; eglot-lsp-=
server-1e992dbf9f91&gt; client/registerCapability (:registrations<br>&gt; &=
gt; [(:id &quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff038&quot; :method<br>&gt; =
&gt; &quot;workspace/didChangeWatchedFiles&quot; :registerOptions (:watcher=
s<br>&gt; &gt; [(:globPattern &quot;**/*.java&quot;) (:globPattern &quot;**=
/.project&quot;) (:globPattern<br>&gt; &gt; &quot;**/.classpath&quot;) (:gl=
obPattern &quot;**/.settings/*.prefs&quot;) (:globPattern<br>&gt; &gt; &quo=
t;**/src/**&quot;) (:globPattern &quot;**/*.gradle&quot;) (:globPattern<br>=
&gt; &gt; &quot;**/*.gradle.kts&quot;) (:globPattern &quot;**/gradle.proper=
ties&quot;) (:globPattern<br>&gt; &gt; &quot;**/pom.xml&quot;) (:globPatter=
n (:baseUri &quot;file:/home/harald/work/&quot; :pattern<br>&gt; &gt; &quot=
;eglot-watchers-jdts-fail&quot;) :kind 4)]))]))<br>&gt; &gt; =C2=A0 =C2=A0#=
f(compiled-function (server method params) #&lt;bytecode<br>&gt; &gt; 0x1f1=
ac0b30d0648aa&gt;)(#&lt;eglot-lsp-server eglot-lsp-server-1e992dbf9f91&gt;<=
br>&gt; &gt; client/registerCapability (:registrations [(:id<br>&gt; &gt; &=
quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff038&quot; :method<br>&gt; &gt; &quot;=
workspace/didChangeWatchedFiles&quot; :registerOptions (:watchers<br>&gt; &=
gt; [(:globPattern &quot;**/*.java&quot;) (:globPattern &quot;**/.project&q=
uot;) (:globPattern<br>&gt; &gt; &quot;**/.classpath&quot;) (:globPattern &=
quot;**/.settings/*.prefs&quot;) (:globPattern<br>&gt; &gt; &quot;**/src/**=
&quot;) (:globPattern &quot;**/*.gradle&quot;) (:globPattern<br>&gt; &gt; &=
quot;**/*.gradle.kts&quot;) (:globPattern &quot;**/gradle.properties&quot;)=
 (:globPattern<br>&gt; &gt; &quot;**/pom.xml&quot;) (:globPattern (:baseUri=
 &quot;file:/home/harald/work/&quot; :pattern<br>&gt; &gt; &quot;eglot-watc=
hers-jdts-fail&quot;) :kind 4)]))]))<br>&gt; &gt; =C2=A0 =C2=A0jsonrpc-conn=
ection-receive(#&lt;eglot-lsp-server<br>&gt; &gt; eglot-lsp-server-1e992dbf=
9f91&gt; (:jsonrpc &quot;2.0&quot; :id &quot;6&quot; :method<br>&gt; &gt; &=
quot;client/registerCapability&quot; :params (:registrations [(:id<br>&gt; =
&gt; &quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff038&quot; :method<br>&gt; &gt; =
&quot;workspace/didChangeWatchedFiles&quot; :registerOptions (:watchers<br>=
&gt; &gt; [(:globPattern &quot;**/*.java&quot;) (:globPattern &quot;**/.pro=
ject&quot;) (:globPattern<br>&gt; &gt; &quot;**/.classpath&quot;) (:globPat=
tern &quot;**/.settings/*.prefs&quot;) (:globPattern<br>&gt; &gt; &quot;**/=
src/**&quot;) (:globPattern &quot;**/*.gradle&quot;) (:globPattern<br>&gt; =
&gt; &quot;**/*.gradle.kts&quot;) (:globPattern &quot;**/gradle.properties&=
quot;) (:globPattern<br>&gt; &gt; &quot;**/pom.xml&quot;) (:globPattern ...=
 :kind 4)]))])))<br>&gt; &gt; =C2=A0 =C2=A0#f(compiled-function (conn msg) =
#&lt;bytecode<br>&gt; &gt; -0x1cb2362863397428&gt;)(#&lt;eglot-lsp-server e=
glot-lsp-server-1e992dbf9f91&gt;<br>&gt; &gt; (:jsonrpc &quot;2.0&quot; :id=
 &quot;6&quot; :method &quot;client/registerCapability&quot; :params<br>&gt=
; &gt; (:registrations [(:id &quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff038&quo=
t; :method<br>&gt; &gt; &quot;workspace/didChangeWatchedFiles&quot; :regist=
erOptions (:watchers<br>&gt; &gt; [(:globPattern &quot;**/*.java&quot;) (:g=
lobPattern &quot;**/.project&quot;) (:globPattern<br>&gt; &gt; &quot;**/.cl=
asspath&quot;) (:globPattern &quot;**/.settings/*.prefs&quot;) (:globPatter=
n<br>&gt; &gt; &quot;**/src/**&quot;) (:globPattern &quot;**/*.gradle&quot;=
) (:globPattern<br>&gt; &gt; &quot;**/*.gradle.kts&quot;) (:globPattern &qu=
ot;**/gradle.properties&quot;) (:globPattern<br>&gt; &gt; &quot;**/pom.xml&=
quot;) (:globPattern ... :kind 4)]))])))<br>&gt; &gt; =C2=A0 =C2=A0apply(#f=
(compiled-function (conn msg) #&lt;bytecode<br>&gt; &gt; -0x1cb236286339742=
8&gt;) (#&lt;eglot-lsp-server eglot-lsp-server-1e992dbf9f91&gt;<br>&gt; &gt=
; (:jsonrpc &quot;2.0&quot; :id &quot;6&quot; :method &quot;client/register=
Capability&quot; :params<br>&gt; &gt; (:registrations [(:id &quot;adb8c86a-=
b1a1-46e9-9a63-80f4c54ff038&quot; :method<br>&gt; &gt; &quot;workspace/didC=
hangeWatchedFiles&quot; :registerOptions (:watchers [... ...<br>&gt; &gt; .=
.. ... ... ... ... ... ... ...]))]))))<br>&gt; &gt; =C2=A0 =C2=A0timer-even=
t-handler([t 26897 44860 488187 nil #f(compiled-function<br>&gt; &gt; (conn=
 msg) #&lt;bytecode -0x1cb2362863397428&gt;) (#&lt;eglot-lsp-server<br>&gt;=
 &gt; eglot-lsp-server-1e992dbf9f91&gt; (:jsonrpc &quot;2.0&quot; :id &quot=
;6&quot; :method<br>&gt; &gt; &quot;client/registerCapability&quot; :params=
 (:registrations [(:id<br>&gt; &gt; &quot;adb8c86a-b1a1-46e9-9a63-80f4c54ff=
038&quot; :method<br>&gt; &gt; &quot;workspace/didChangeWatchedFiles&quot; =
:registerOptions (:watchers ...))])))<br>&gt; &gt; nil 915000 nil])<br>&gt;=
 &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Further the following appears =
in the eglot events, also in the tgz<br>&gt; &gt; (search for baseUri):<br>=
&gt; &gt;<br>&gt; &gt; [jsonrpc] e[10:35:52.508] &lt;-- client/registerCapa=
bility[5]<br>&gt; &gt; {&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:=
&quot;5&quot;,&quot;method&quot;:&quot;client/registerCapability&quot;,&quo=
t;params&quot;:{&quot;registrations&quot;:[{&quot;id&quot;:&quot;03cb5593-e=
485-4fdd-83aa-e5f1c9892abe&quot;,&quot;method&quot;:&quot;workspace/didChan=
geWatchedFiles&quot;,&quot;registerOptions&quot;:{&quot;watchers&quot;:[{&q=
uot;globPattern&quot;:&quot;**/*.java&quot;},{&quot;globPattern&quot;:&quot=
;**/.project&quot;},{&quot;globPattern&quot;:&quot;**/.classpath&quot;},{&q=
uot;globPattern&quot;:&quot;**/.settings/*.prefs&quot;},{&quot;globPattern&=
quot;:&quot;**/src/**&quot;},{&quot;globPattern&quot;:&quot;**/*.gradle&quo=
t;},{&quot;globPattern&quot;:&quot;**/*.gradle.kts&quot;},{&quot;globPatter=
n&quot;:&quot;**/gradle.properties&quot;},{&quot;globPattern&quot;:&quot;**=
/pom.xml&quot;},{&quot;globPattern&quot;:{&quot;baseUri&quot;:&quot;file:/h=
ome/harald/work/&quot;,&quot;pattern&quot;:&quot;eglot-watchers-jdts-fail&q=
uot;},&quot;kind&quot;:4}]}}]}}<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Thou=
gh the pattern seems silly in the example, it is important to have<br>&gt; =
&gt; for formatter and properties files read by eclipse which are not part =
of<br>&gt; &gt; the project directory.<br>&gt; &gt;<br>&gt; &gt; Regards<br=
>&gt; &gt; Harald<br><br><br><br>--<br>Jo=C3=A3o T=C3=A1vora</div>

--0000000000006b458606439f4461--




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

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


Received: (at 79809) by debbugs.gnu.org; 15 Nov 2025 09:43:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 15 04:43:59 2025
Received: from localhost ([127.0.0.1]:33767 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vKCp4-0006Ir-5h
	for submit <at> debbugs.gnu.org; Sat, 15 Nov 2025 04:43:59 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:44128)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vKCp1-0006Id-Pj
 for 79809 <at> debbugs.gnu.org; Sat, 15 Nov 2025 04:43:56 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vKCow-00045c-0S; Sat, 15 Nov 2025 04:43:50 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=FhLVFYOX/P9+p3cygokj55GDksRJqgSaLFBjwnsW6hU=; b=b/G7OEPypEw0XJ/l65wu
 j3+gDQyi14/MzNDxz0pqcMADrAESrH0fQ24RvboO316AlN9fLCveMxuifOZEPIf0rT9CWAY2ovvo2
 0lZwQXJJWrQGUhWUHqIBgI0wMLOmTFJtAEZ01q/kqMB7yKLcQ3f/sVLNfL4VJvxNKZYtktWo+4i7p
 rJpuxOW7eEfItkKbOwuk6GcIWwJ7BSQUxpzFnMX9xiqee7z0y+odZ5YOFkQXroMtuaHPpxM5+nfta
 k/o6yZHz1z6IpWxJQcDLtlQbzcMYVum5wrvuL7NH/oJe22RpGwTJliqfZvmNAgGUgO3wu8WSk3mn4
 HHMfgLQFQyZMBg==;
Date: Sat, 15 Nov 2025 11:43:48 +0200
Message-Id: <86tsyvockr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: hkirsch@HIDDEN, =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= <joaotavora@HIDDEN>
In-Reply-To: <e310ac57-2b2c-4f68-944f-a88c843bab66@HIDDEN>
 (hkirsch@HIDDEN)
Subject: Re: bug#79809: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
References: <e310ac57-2b2c-4f68-944f-a88c843bab66@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79809
Cc: 79809 <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: -3.3 (---)

> Date: Mon, 10 Nov 2025 11:03:39 +0000
> From: hkirsch@HIDDEN
> 
> With recent version of eclipse.jdt.ls, Eglot throws a Lisp error during 
> initialization with a debug trace shown below indicating that it cannot 
> work with the watcher information sent back by the server.
> 
> eclipse.jdt.ls version: at least since 1.49 (what I tested).
> Probably since their commit 7d8b8b4fbb0b38492f289b42de19777d77606440 Thu 
> Mar 6 15:23:22 2025 -0500
> which has:
> 
> -       public static String toGlobPattern(IPath path) {
> +       public static Either<String, RelativePattern> 
> toGlobPattern(IPath path) {
> 
> so here they seem to start using the RelativePattern thing.

Thanks.  João, any comments or suggestions?

> eglot-version: 1.19
> 
> emacs-version: GNU Emacs 30.2 (build 1, x86_64-pc-linux-gnu, GTK+ 
> Version 3.24.33, cairo version 1.16.0) of 2025-08-17, modified by Debian
> 
> To reproduce:
> 
> Download eclipse jdtls from https://download.eclipse.org/jdtls/milestones/?d
> 
> Direct link: 
> https://www.eclipse.org/downloads/download.php?file=/jdtls/milestones/1.49.0/jdt-language-server-1.49.0-202507311558.tar.gz
> 
> After unpacking the tar.gz, configure eglot to run the bin/jdtls in the 
> unpacked directory as the LSP server, i.e. just make sure it is found as 
> the executable jdtls on PATH.
> 
> 
> 1. Extract the tgz containing:
> - a fake .git subdir to let projects find the root dir
> - a single Java source file, src/Fail.java
> - .classpath and .project to keep jdtls at bay
> - debug-trace.txt as produced by Lisp error
> - eglot-events.txt
> 
> 2. Run: emacs -Q -f package-initialize
> 3. Execute: M-x toggle-debug-on-error
> 4. Find file: src/Fail.java
> 5. Execute: M-x eglot
> 
> This produces the following debug trace also contained in the tgz:
> 
> Debugger entered--Lisp error: (wrong-type-argument char-or-string-p 
> (:baseUri "file:/home/harald/work/" :pattern "eglot-watchers-jdts-fail"))
>    eglot--glob-parse((:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail"))
>    eglot--glob-compile((:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") t t)
>    #f(compiled-function (jsonrpc-lambda-elem79) #<bytecode 
> -0x139d9884ce9f11e6>)((:globPattern (:baseUri "file:/home/harald/work/" 
> :pattern "eglot-watchers-jdts-fail") :kind 4))
>    mapcar(#f(compiled-function (jsonrpc-lambda-elem79) #<bytecode 
> -0x139d9884ce9f11e6>) [(:globPattern "**/*.java") (:globPattern 
> "**/.project") (:globPattern "**/.classpath") (:globPattern 
> "**/.settings/*.prefs") (:globPattern "**/src/**") (:globPattern 
> "**/*.gradle") (:globPattern "**/*.gradle.kts") (:globPattern 
> "**/gradle.properties") (:globPattern "**/pom.xml") (:globPattern 
> (:baseUri "file:/home/harald/work/" :pattern "eglot-watchers-jdts-fail") 
> :kind 4)])
>    #f(compiled-function (arg1 arg2 arg3 &rest rest) "Handle dynamic 
> registration of workspace/didChangeWatchedFiles." #<bytecode 
> 0x858a50cf23e1643>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
> workspace/didChangeWatchedFiles "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" 
> :watchers [(:globPattern "**/*.java") (:globPattern "**/.project") 
> (:globPattern "**/.classpath") (:globPattern "**/.settings/*.prefs") 
> (:globPattern "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") :kind 4)])
>    apply(#f(compiled-function (arg1 arg2 arg3 &rest rest) "Handle 
> dynamic registration of workspace/didChangeWatchedFiles." #<bytecode 
> 0x858a50cf23e1643>) #<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
> workspace/didChangeWatchedFiles ("adb8c86a-b1a1-46e9-9a63-80f4c54ff038" 
> :watchers [(:globPattern "**/*.java") (:globPattern "**/.project") 
> (:globPattern "**/.classpath") (:globPattern "**/.settings/*.prefs") 
> (:globPattern "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") :kind 4)]))
>    eglot-register-capability(#<eglot-lsp-server 
> eglot-lsp-server-1e992dbf9f91> workspace/didChangeWatchedFiles 
> "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :watchers [(:globPattern 
> "**/*.java") (:globPattern "**/.project") (:globPattern "**/.classpath") 
> (:globPattern "**/.settings/*.prefs") (:globPattern "**/src/**") 
> (:globPattern "**/*.gradle") (:globPattern "**/*.gradle.kts") 
> (:globPattern "**/gradle.properties") (:globPattern "**/pom.xml") 
> (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") :kind 4)])
>    eglot--register-unregister(#<eglot-lsp-server 
> eglot-lsp-server-1e992dbf9f91> [(:id 
> "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers 
> [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
> "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
> "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") :kind 4)]))] register)
>    #f(compiled-function (arg1 arg2 &rest rest) "Handle server request 
> client/registerCapability." #<bytecode 
> -0x156012ebe0c37209>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
> client/registerCapability :registrations [(:id 
> "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers 
> [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
> "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
> "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") :kind 4)]))])
>    apply(#f(compiled-function (arg1 arg2 &rest rest) "Handle server 
> request client/registerCapability." #<bytecode -0x156012ebe0c37209>) 
> #<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
> client/registerCapability (:registrations [(:id 
> "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers 
> [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
> "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
> "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") :kind 4)]))]))
>    eglot-handle-request(#<eglot-lsp-server 
> eglot-lsp-server-1e992dbf9f91> client/registerCapability :registrations 
> [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers 
> [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
> "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
> "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") :kind 4)]))])
>    apply(eglot-handle-request #<eglot-lsp-server 
> eglot-lsp-server-1e992dbf9f91> client/registerCapability (:registrations 
> [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers 
> [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
> "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
> "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") :kind 4)]))]))
>    #f(compiled-function (server method params) #<bytecode 
> 0x1f1ac0b30d0648aa>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
> client/registerCapability (:registrations [(:id 
> "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers 
> [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
> "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
> "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
> "eglot-watchers-jdts-fail") :kind 4)]))]))
>    jsonrpc-connection-receive(#<eglot-lsp-server 
> eglot-lsp-server-1e992dbf9f91> (:jsonrpc "2.0" :id "6" :method 
> "client/registerCapability" :params (:registrations [(:id 
> "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers 
> [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
> "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
> "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern ... :kind 4)]))])))
>    #f(compiled-function (conn msg) #<bytecode 
> -0x1cb2362863397428>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
> (:jsonrpc "2.0" :id "6" :method "client/registerCapability" :params 
> (:registrations [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers 
> [(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
> "**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
> "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
> "**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
> "**/pom.xml") (:globPattern ... :kind 4)]))])))
>    apply(#f(compiled-function (conn msg) #<bytecode 
> -0x1cb2362863397428>) (#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
> (:jsonrpc "2.0" :id "6" :method "client/registerCapability" :params 
> (:registrations [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers [... ... 
> ... ... ... ... ... ... ... ...]))]))))
>    timer-event-handler([t 26897 44860 488187 nil #f(compiled-function 
> (conn msg) #<bytecode -0x1cb2362863397428>) (#<eglot-lsp-server 
> eglot-lsp-server-1e992dbf9f91> (:jsonrpc "2.0" :id "6" :method 
> "client/registerCapability" :params (:registrations [(:id 
> "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
> "workspace/didChangeWatchedFiles" :registerOptions (:watchers ...))]))) 
> nil 915000 nil])
> 
> 
> 
> Further the following appears in the eglot events, also in the tgz 
> (search for baseUri):
> 
> [jsonrpc] e[10:35:52.508] <-- client/registerCapability[5] 
> {"jsonrpc":"2.0","id":"5","method":"client/registerCapability","params":{"registrations":[{"id":"03cb5593-e485-4fdd-83aa-e5f1c9892abe","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.java"},{"globPattern":"**/.project"},{"globPattern":"**/.classpath"},{"globPattern":"**/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globPattern":"**/*.gradle"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**/gradle.properties"},{"globPattern":"**/pom.xml"},{"globPattern":{"baseUri":"file:/home/harald/work/","pattern":"eglot-watchers-jdts-fail"},"kind":4}]}}]}}
> 
> 
> Though the pattern seems silly in the example, it is important to have 
> for formatter and properties files read by eclipse which are not part of
> the project directory.
> 
> Regards
> Harald




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

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


Received: (at submit) by debbugs.gnu.org; 10 Nov 2025 14:39:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 10 09:39:09 2025
Received: from localhost ([127.0.0.1]:37931 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vIT2x-00081K-Ht
	for submit <at> debbugs.gnu.org; Mon, 10 Nov 2025 09:39:09 -0500
Received: from lists.gnu.org ([2001:470:142::17]:43220)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <hkirsch@HIDDEN>) id 1vIPh3-0004jL-OG
 for submit <at> debbugs.gnu.org; Mon, 10 Nov 2025 06:04:21 -0500
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 <hkirsch@HIDDEN>) id 1vIPga-0001A2-Uk
 for bug-gnu-emacs@HIDDEN; Mon, 10 Nov 2025 06:03:58 -0500
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <hkirsch@HIDDEN>) id 1vIPgW-0003QV-81
 for bug-gnu-emacs@HIDDEN; Mon, 10 Nov 2025 06:03:48 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 807D8240101
 for <bug-gnu-emacs@HIDDEN>; Mon, 10 Nov 2025 12:03:40 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.de; s=2017;
 t=1762772620; bh=sQsgMZY/5/JJW/leb4d5s/h3k++yPB6NY7z0QYeIiYk=;
 h=Content-Type:Message-ID:Date:MIME-Version:To:From:Subject:From;
 b=B4aY0e9rwuw2elaKGHgp7HaMZpn/ZRwMf2r4+JLkInSr1lnZHL080ilQk9QhIFhco
 FQpJMfX3famBjkn27Sh45Hw9wWghsYo9yA/XfLg6Q8z0TlH3COHDR6sAol9VqpqGw7
 XsiXR3JC2wrFUY5WsOf6AQ4X0O2WinLNOqiL4dZYRA0qwlfzwdDvEWidotoUWZiCc0
 kLR9KvycbndjvtTqZs48z2nb4CZYeAnf0ZWBu9IlmmbQlvY2BD61zl1Oot4LwtFfa6
 djLm1uRb3bRdDN9kTwI615ZF4/oZrvQa1Howoh+YjvSxSSWtetEc0VKMbguac4VVDp
 zMDhiiniB3YEQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4d4mxR3fCpz9rxG
 for <bug-gnu-emacs@HIDDEN>; Mon, 10 Nov 2025 12:03:39 +0100 (CET)
Content-Type: multipart/mixed; boundary="------------FGNCI4CGNqqpqohGyc2JEvh5"
Message-ID: <e310ac57-2b2c-4f68-944f-a88c843bab66@HIDDEN>
Date: Mon, 10 Nov 2025 11:03:39 +0000
MIME-Version: 1.0
Content-Language: en-US
To: bug-gnu-emacs@HIDDEN
From: hkirsch@HIDDEN
Subject: Eglot does not yet parse LSP protocol parts
 FileSystemWatcher->GlobPattern->RelativePattern
Received-SPF: pass client-ip=185.67.36.66; envelope-from=hkirsch@HIDDEN;
 helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 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,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_PASS=-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-Mailman-Approved-At: Mon, 10 Nov 2025 09:39:01 -0500
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 (/)

This is a multi-part message in MIME format.
--------------FGNCI4CGNqqpqohGyc2JEvh5
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hello Team.

With recent version of eclipse.jdt.ls, Eglot throws a Lisp error during 
initialization with a debug trace shown below indicating that it cannot 
work with the watcher information sent back by the server.

eclipse.jdt.ls version: at least since 1.49 (what I tested).
Probably since their commit 7d8b8b4fbb0b38492f289b42de19777d77606440 Thu 
Mar 6 15:23:22 2025 -0500
which has:

-       public static String toGlobPattern(IPath path) {
+       public static Either<String, RelativePattern> 
toGlobPattern(IPath path) {

so here they seem to start using the RelativePattern thing.


eglot-version: 1.19

emacs-version: GNU Emacs 30.2 (build 1, x86_64-pc-linux-gnu, GTK+ 
Version 3.24.33, cairo version 1.16.0) of 2025-08-17, modified by Debian

To reproduce:

Download eclipse jdtls from https://download.eclipse.org/jdtls/milestones/?d

Direct link: 
https://www.eclipse.org/downloads/download.php?file=/jdtls/milestones/1.49.0/jdt-language-server-1.49.0-202507311558.tar.gz

After unpacking the tar.gz, configure eglot to run the bin/jdtls in the 
unpacked directory as the LSP server, i.e. just make sure it is found as 
the executable jdtls on PATH.


1. Extract the tgz containing:
- a fake .git subdir to let projects find the root dir
- a single Java source file, src/Fail.java
- .classpath and .project to keep jdtls at bay
- debug-trace.txt as produced by Lisp error
- eglot-events.txt

2. Run: emacs -Q -f package-initialize
3. Execute: M-x toggle-debug-on-error
4. Find file: src/Fail.java
5. Execute: M-x eglot

This produces the following debug trace also contained in the tgz:

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p 
(:baseUri "file:/home/harald/work/" :pattern "eglot-watchers-jdts-fail"))
   eglot--glob-parse((:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail"))
   eglot--glob-compile((:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") t t)
   #f(compiled-function (jsonrpc-lambda-elem79) #<bytecode 
-0x139d9884ce9f11e6>)((:globPattern (:baseUri "file:/home/harald/work/" 
:pattern "eglot-watchers-jdts-fail") :kind 4))
   mapcar(#f(compiled-function (jsonrpc-lambda-elem79) #<bytecode 
-0x139d9884ce9f11e6>) [(:globPattern "**/*.java") (:globPattern 
"**/.project") (:globPattern "**/.classpath") (:globPattern 
"**/.settings/*.prefs") (:globPattern "**/src/**") (:globPattern 
"**/*.gradle") (:globPattern "**/*.gradle.kts") (:globPattern 
"**/gradle.properties") (:globPattern "**/pom.xml") (:globPattern 
(:baseUri "file:/home/harald/work/" :pattern "eglot-watchers-jdts-fail") 
:kind 4)])
   #f(compiled-function (arg1 arg2 arg3 &rest rest) "Handle dynamic 
registration of workspace/didChangeWatchedFiles." #<bytecode 
0x858a50cf23e1643>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
workspace/didChangeWatchedFiles "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" 
:watchers [(:globPattern "**/*.java") (:globPattern "**/.project") 
(:globPattern "**/.classpath") (:globPattern "**/.settings/*.prefs") 
(:globPattern "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") :kind 4)])
   apply(#f(compiled-function (arg1 arg2 arg3 &rest rest) "Handle 
dynamic registration of workspace/didChangeWatchedFiles." #<bytecode 
0x858a50cf23e1643>) #<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
workspace/didChangeWatchedFiles ("adb8c86a-b1a1-46e9-9a63-80f4c54ff038" 
:watchers [(:globPattern "**/*.java") (:globPattern "**/.project") 
(:globPattern "**/.classpath") (:globPattern "**/.settings/*.prefs") 
(:globPattern "**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") :kind 4)]))
   eglot-register-capability(#<eglot-lsp-server 
eglot-lsp-server-1e992dbf9f91> workspace/didChangeWatchedFiles 
"adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :watchers [(:globPattern 
"**/*.java") (:globPattern "**/.project") (:globPattern "**/.classpath") 
(:globPattern "**/.settings/*.prefs") (:globPattern "**/src/**") 
(:globPattern "**/*.gradle") (:globPattern "**/*.gradle.kts") 
(:globPattern "**/gradle.properties") (:globPattern "**/pom.xml") 
(:globPattern (:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") :kind 4)])
   eglot--register-unregister(#<eglot-lsp-server 
eglot-lsp-server-1e992dbf9f91> [(:id 
"adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers 
[(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
"**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
"**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") :kind 4)]))] register)
   #f(compiled-function (arg1 arg2 &rest rest) "Handle server request 
client/registerCapability." #<bytecode 
-0x156012ebe0c37209>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
client/registerCapability :registrations [(:id 
"adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers 
[(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
"**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
"**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") :kind 4)]))])
   apply(#f(compiled-function (arg1 arg2 &rest rest) "Handle server 
request client/registerCapability." #<bytecode -0x156012ebe0c37209>) 
#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
client/registerCapability (:registrations [(:id 
"adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers 
[(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
"**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
"**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") :kind 4)]))]))
   eglot-handle-request(#<eglot-lsp-server 
eglot-lsp-server-1e992dbf9f91> client/registerCapability :registrations 
[(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers 
[(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
"**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
"**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") :kind 4)]))])
   apply(eglot-handle-request #<eglot-lsp-server 
eglot-lsp-server-1e992dbf9f91> client/registerCapability (:registrations 
[(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers 
[(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
"**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
"**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") :kind 4)]))]))
   #f(compiled-function (server method params) #<bytecode 
0x1f1ac0b30d0648aa>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
client/registerCapability (:registrations [(:id 
"adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers 
[(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
"**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
"**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern (:baseUri "file:/home/harald/work/" :pattern 
"eglot-watchers-jdts-fail") :kind 4)]))]))
   jsonrpc-connection-receive(#<eglot-lsp-server 
eglot-lsp-server-1e992dbf9f91> (:jsonrpc "2.0" :id "6" :method 
"client/registerCapability" :params (:registrations [(:id 
"adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers 
[(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
"**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
"**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern ... :kind 4)]))])))
   #f(compiled-function (conn msg) #<bytecode 
-0x1cb2362863397428>)(#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
(:jsonrpc "2.0" :id "6" :method "client/registerCapability" :params 
(:registrations [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers 
[(:globPattern "**/*.java") (:globPattern "**/.project") (:globPattern 
"**/.classpath") (:globPattern "**/.settings/*.prefs") (:globPattern 
"**/src/**") (:globPattern "**/*.gradle") (:globPattern 
"**/*.gradle.kts") (:globPattern "**/gradle.properties") (:globPattern 
"**/pom.xml") (:globPattern ... :kind 4)]))])))
   apply(#f(compiled-function (conn msg) #<bytecode 
-0x1cb2362863397428>) (#<eglot-lsp-server eglot-lsp-server-1e992dbf9f91> 
(:jsonrpc "2.0" :id "6" :method "client/registerCapability" :params 
(:registrations [(:id "adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers [... ... 
... ... ... ... ... ... ... ...]))]))))
   timer-event-handler([t 26897 44860 488187 nil #f(compiled-function 
(conn msg) #<bytecode -0x1cb2362863397428>) (#<eglot-lsp-server 
eglot-lsp-server-1e992dbf9f91> (:jsonrpc "2.0" :id "6" :method 
"client/registerCapability" :params (:registrations [(:id 
"adb8c86a-b1a1-46e9-9a63-80f4c54ff038" :method 
"workspace/didChangeWatchedFiles" :registerOptions (:watchers ...))]))) 
nil 915000 nil])



Further the following appears in the eglot events, also in the tgz 
(search for baseUri):

[jsonrpc] e[10:35:52.508] <-- client/registerCapability[5] 
{"jsonrpc":"2.0","id":"5","method":"client/registerCapability","params":{"registrations":[{"id":"03cb5593-e485-4fdd-83aa-e5f1c9892abe","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.java"},{"globPattern":"**/.project"},{"globPattern":"**/.classpath"},{"globPattern":"**/.settings/*.prefs"},{"globPattern":"**/src/**"},{"globPattern":"**/*.gradle"},{"globPattern":"**/*.gradle.kts"},{"globPattern":"**/gradle.properties"},{"globPattern":"**/pom.xml"},{"globPattern":{"baseUri":"file:/home/harald/work/","pattern":"eglot-watchers-jdts-fail"},"kind":4}]}}]}}


Though the pattern seems silly in the example, it is important to have 
for formatter and properties files read by eclipse which are not part of
the project directory.

Regards
Harald

-- 
--------------+---------------------------------------
Harald Kirsch | hkirsch@HIDDEN 0163/240 4 052
                 HaraldKi@HIDDEN

--------------FGNCI4CGNqqpqohGyc2JEvh5
Content-Type: application/x-compressed-tar;
 name="eglot-watchers-jdts-fail.tgz"
Content-Disposition: attachment; filename="eglot-watchers-jdts-fail.tgz"
Content-Transfer-Encoding: base64

H4sIAAAAAAAAA+w92XbbuJJ5jb8Cw2Smk4xIcRG1OO2+k87SSd9sJ3YmD05OH4gEJcYUoUtS
XiYn98wfzT/Nl0wVQIqLSIle2namxe5YEgEUqoBaUSDIJgFP1BOaOFMWxepXN4lVj/pB987V
XTpcg4GNn8bANoqf2XXHsA29Z1mWqUM9+GEZd4h9hTg0Xos4oREhd6Y0ooHbXG9T+Q96sab5
lwXsmIVJrCWnySX6wAnu93sN829bg/5y/g2Y+zu6qVtG/w7Rr4zKNddffP4Pv8Y8jObOF/Ls
0NB3LXvX1jVTH34hHxZh6IcTEtBwsqATRmIWHbNol3SnfMa6cjy6Jzw66sZO5M+TuAvcE8Q7
OUhWAamqvxA/9BOfBv5/QeEX8k1JKyu7iqnpSkfxXWXX6Cgzlkw5fFXy+lA4h05nsbL7TZlH
3GFx/Aqq9PuG1VGcwAdWfRV6HItDOmPQ+DkyMbQDvGOfh3DH0IyR8r2jRJwn72kyhVur9DQK
hSIbfox8aOf5Advtdts3R+oyamgC+Lyb41+kBzBy6JyO/QDKmaAQQcVz6jD8Qefz4Oy56yfK
bhItWEdhp8xZJOwpn81o6GIV9wyI9p0PbOLHSSTgK7seDWIGwJfAJAyozZ3FDAbs6RSmFztE
sFDR9V1565NA330BRMaN4NNG8dlszIONSDg89PzJoti4gNkLHrgwXEugCTtNnqVYIuj4LHSm
EQ/TsVvfG8D1g2CfHrNlP+nvT9RPPoYJzEZaABTn9QSWs3nA2nSR13yVsJnAMfTnc5bsL+Zz
Hi3nymXziDk0YW6lIGIxD47Z8q5g6zmLJAscLidJdouAEmCjGL5RF+YRbtLgAIYJJzVWvuCg
0UkB2jENFmyfwXeQte/IfSDDyQc2D2C8S7jI2cEhr96echCezSMBbcPkBY9mFHtTZjQ6cvkJ
Ig2d+QKyQDD2JyFNFhF7yYL5JrDLyijWCDqdFKEGWMKiyv2AjlnwzvNitkJGaSg34Qnj6yT+
MXuf9VOGhuqDeSxiobNGNjKud5knpH4zPwV+eLSCN3MCGrXi+LrmPnJozkIXgJCczdmzy5GQ
Dv1+Cy0B/OaziEbO1Hdo8KzUsiI8Uun83Zfar8jqHbNjdXodu9PvDDrDzqhj6B3D6BhmBwyF
0esYdsfod4xBxxh2jFHH1DsmtDE7ptUxex3T7pj9L98LiL/0J9MA/iUtNJzLnjhtBmqT6DPU
00LFCP2OouPShFbGIO/vtQ9sSoMCvLysZoyUfyx858jzTxXBy8DuPCp81UAMIvhWvOWHMLms
eCdiJxF0C7divoic/IvGowkFRc1ezRAbVE3Ii/F7ITZRRQ9CkZTiBNyNjUMcoXF6cY76TPoC
G6oBdfTspR+2mGMaBC9TJj3bWBvFp33t+WIc+PH0mU8nIY8T3xHqJWIBGo+SskvZKHVsatji
GZNeWbE0bdRsJDomzBS6C8Ax/ERYtCk/KVnhysxh+RtwxMBBxOKZ/Cr5LrOKubF6v+TxFY2K
fsAzHjKoMgHhyP2ACQuRs4WI8FgAeh4ChTD5QlIWiadaJvAefhmmn0ZfiAw7he58of8QQNZP
2d84/KYsLuzQpY7mPzc5jt9hYHcO4wS6jL4Q8unJh7ev3v62Sz7G6GP7obMYU5ApMuPuAjyu
XfLVPdKWt7VjhhJXAPCWHxNQa8TUTZtkXjZ58oaA6GngSQICGo1goLV47nvBmfYrjcW0HItu
Aj4pAHv19sW7XSJZEsyaS0AXHftQSJyp9g8ea1B9TJ0jDWxRHPsOwtRey3v7EBX4Dk6bbME9
ESjALYFKHHi9r6L+/usXvd+rtf2QjBehG7CGnuqCCUPrW70v5GdVJZJPu9Ao5cGagGIZSaxU
LgUUKKjKrtXJWBgaFMe4kw2y8b///T8wzAI/QSEYaH8eMw0mWwtizeER09CRiIDftd/pMX2d
BlD7In56HywmQLUfEww8QawVZIxaKu0bp3Jfoliic7zwAzee+nNBKjH7APkHI2FmMom8frtx
fwMeKUmmEaMuMswJhC5o8m4xxp8Xum4x+bcQ6jejPLBvGuVXGZaoiFFeSSawREosMbTeSMMl
DNPWB5Zh2PawgSBTs/rWjRFkSoJAuX4Fc5F6GGcfmAf2dPo7HxP04mMI6snQNBo539R6xs3x
kbmUWvB+SLq8Aebw8MttRvctD9VVlL8CM2lzORuaL1zhDinddMRSi/SSmZtOXJxWCumxPwHH
TwOfKTwo+pEVKFkskYDhPAC3nb3mjnAT03oYS2jQE5jZ9xQs/HNc1C2WAZsA8+dOdQX+BMJp
Jgri+p4/ZT6VDNQqlRbzSURd9hv8CVh1AEC3JeyNcHrQv02Lj2fY6ZMgeBWClQyCuIhtJbhY
QUmwe8GFXqkw48fsRcRn+yJYwVXAShXwwZO8sApgMYdIjDWMiEQ7vQmOO6fur8LBqVb04wMW
J7i8Vj+muK6zCvspuh3zAlJLJsma1fCJnOMZ2MF9BqEHD3j4jCXMKbBIhTZB+5MEGGo6y3ml
XEmgUhwfl+GCWImghI8XniY9+AxsAw+16vN396hyH2KLA74ykfnKnAa0+u4+C6DyGhXSL6uQ
ajDSlXzavGKtGDW6pQFKWdHwI4br0iPD6NuON1YdZjG1ZzOqDi1XV23PMAyHji02stajj4vr
l0Ifai4CiMjCRRBsGqf73XkKe52OzWtdnOaODFCx3ZFYx1DGYNhwwS7xkwAV86/okKJfVNTW
y5vfN875TdISMREF12FOVKL/K8HOGDA3RLBYqt9uchj8veAsZGmmLij8ZLEW90rVGsOtCK+/
yhPo6WmatlkLXAMuMLXZ/Vqncw2SditVZTbKunlJVTXQ9aE9Zp46sG1P7XnAG5SORmpvCP7x
yOv3rMagNkW/hapaj34rVWVfoTy0onmzqlrGGowsfaYVFl2psEZ4bgGNNSqsjopzq7OUtJb5
4owjvq3kUYt5xP2z0MF76FE/DXi8zA5KR1zZNc+ROIxFpW+KHzrBwhUOW76cKdJm2TJXvi6b
uSV5ybcsFVCtDD75ZMKip7gQ6SRypVLRgOL/gH/34N8j+EdWk2pF0LUwHkC7jswoLPM6K52X
sj7V0nJWqVqa58aqJSsJlaYKMo6olp6Uw4zV0c0SHsUhKKdB4hvIfXTqZzhNF71mYbyRGwrJ
qDxKaxq8D+UMSVO1dyKmrKv3TfH8KE4OKswDIvcYxZxHbLXoUPmMiu674CuZcykCnIOWoNEq
VR4X/oFAeQXRPPVZLSrvfihPtwy/EaOa+BtQbBGAZ7WaI/AqnMYQPKtYG4OXCqtBeLWLQhTe
0HslDK/WKsXhKwNRCcSz8pVIvIRzlddX8KrG4qs1VoPxap1KNL5KVjEcrxk1QD67WwrIq1Xz
iLxhfIWGX4Wfx+QrfFMXlJcnvT4qb6CxEiLX18rj8qx8GZgXGtRG5k1c3apfiM2rBZXgPCuu
j86F5ihtelpN1S3zj+CJlCz3W574ni9FLs6tcCn7umIvioncamEscAJotaopZqBkgJ8P0HUq
qe+ATZjMtgu3Cmde6CJUiJm7J3JHYjMYqE5P3mPhYpZ+vGGzMUOLJOIH+bHciZL7c51sx8CZ
cMoin46DpcOeVeUuDIv4esTOYDyxGQ1DvtxSlP9YdhsBu4iK8gso2Tk46KHYFyOIepNCFYTR
cZyZy1isgIqG1OVhgIjle5+U8maWzsruJpH8dgRdmKVkkkKUCNEYPBz/GG8KphUVcWSeRJNF
ypRSxT8rdeIAP8CcCRv/Jds+sMyEexA/iKQ8CxJa2LKTuSGCCXgkcsRZpAdmELkY6XWmTGR/
MXGsfO+srfPVTTAJXNhpUDGGGyOm3BN213n5hWpFN78Z/EiCL/rJXdd334HNW9dPXf1yXFHZ
wHfBJHs3jpzuC/iipUO63Mypd5YDjvtAsyEXe7h2U3ZKE7XYnnz7HBKS3pa8So6575IZ9cMH
+8L8EhpNjg+/PJR1Cdk/A1s90/giAaUGcxaEDz4De4Tss/LwMVb5/jmE/9eEaAM9jXczZdZd
brF8WtwPuTZXsaFtadjjzBLinDdgZevmTadMPjCxm4Njgkomqj5KM1LMUzXnZws0XO1qTeoD
7mcVcmre/f26caldOTL0C68dLdG8yfWC6hrh+ZY8bgHn5ksaRY3sh8S0rp9d0+0NpRH9AOb3
7MfnVbvGLi2NZ/MCodlko/Itfn++lco9jW+K2OcjfENcQ0Cr5eRxs4671KTDKIvtSvEaSRjc
tCQ07PZoXv29tThLE/y1YHs20yCfOOlG6ba5p9m649mh1bh4bRXpagRQoi8q7BSVuxUFJH3o
jse2Yau2zSy1Nx7q6siwhurAcdzxcGxSd+Rt8CE+VeMruUmxnuj08Z2LEt1ixV708ScoJrnl
UCrFIpeUCtYS3iLd0mukvlfDyudJt5jm0Or1GFOZ6Tpqz3b7Kh32e2rfGg/6rjnUPYOuR79F
umU9+ueZvCtxLVrR/Kdlhm8FLVeXGb4V5Jw/M1yVvJu2FWLfK5qIuI2NuF24Z+r6U+q34G1z
8MOh/4KJLBeR6NdZtMJDi21pbLZodqNStK/OjFvO2LZHlsp6QxuCKNdVhxalKrM9wxkNRyYd
s01mvPikZkfJ8MgfLlUyd1V0Cw7s+D1NcIM6wHv0qPsoc1lryrKl3IZSJ1v6bijP1iKgj3nE
vLi+GrrOjx7Vlz3SJjJfsbZUO0oaYKflhYeraqvN+Uw7nQWrhd+UMY1Z8YHflZBATHMGq/FR
EfDzpSrsoZfV6Gj1rXbbO/qNvNm/pL+hj9zBgOqW6o5GA7VnDvvq2BkP1BGzx0bPpmNjYDRK
lUC/hb+xHv0W/sZynK7EqLWiebO/sc/Ek4vhBHcZlV3NQkGjxbsVNNX4HUXsz+l79G3r5kmq
+h7tZmNU2cnfxMqDRlYeXFISh31v6A77QGR/SNWeYbrqyOxTdaT3xrrjOpblNds3gX4LSVyP
fgtJXI7TlUxxK5o3S+J/QlCPq8kkS+WUl3JritfwwVVurLwgfTVSuUrDuWTT0nTduGkv7wNz
eOiAWXWJoZEDzo+IQRoXURHlq1zAvuBcVNVJe2ayNENPVfwFVjUzWTzMH4TNlw3N0rKhaX3v
yNMQAMjpLi7s1ONjm/1WSm7YqCWGl3U33L7tGPZA7dsjU+1Ry1JpH7S7RwfWgDrjPkSbjfwg
0G+h5Najv1HJFcbpauxYG5r/pOWNW0LLVS1vADnWLSDnvMsbgPbAbCV5o0bWHV1S8mxjNDQs
XLpxxj2153pDdTgCokcjatqOadp64wpHin4LyVuPfhvJG1yle9GK5s2S916e00DKO9vy6a8r
X8MJt4DCGnmsIeK8ojm6uYdhLelhiJnD8wzGAZsRj0ekmKVrwLt/g0+UpnjrGc4xkVMDLtJ5
sS/5GKtHi7Te3FNzKkmRsqva1+MWTz05bFghuRWTk3l8uddq2uvc1iXKNynhVRPVVkf1d3Ud
dNRt3yVWPa9Sad4ohtZmuU1sDc1D4y9Gs6Hpo34NzfkzFM1ZXqtpAApnYl3LGFx860W1OD8U
T+wRLaun5QM68nQt85xDuvIoTHMKttfIWivnk13XAK/Gnytjd67REE9LNedb7KYRkIcT/qhU
lx7bal4S7zdRXz5L8faPgmH0axyTlsplufpRs5QhoVvDGujnk7MLdrKZfQuPJ8qjMmOphs/T
S3t2yXtbtslcqur5v41Tn+f2Ln3G8Przn3UdQur0/Gez17P6d6DUMK3t+c/Xcf38t9NZQFKv
YU8BVaUQlh6vt6d8PHihDpW//bLz85Ibftm5m/8AtozOCDqYe8jYCsGbe8rKsWh0EcqEy+8f
nv/x9N3bgyev3j7/oHQbgUFskAHDr80V+SKZL5KsrtijgbV/7hYQvukxvs3X2ujsivo4x/n/
ummg/NsDY7A9//86rnbR+T8v1ccm/W/07KX+hw/U/31rq/+v5ap5Smqn/UNSOw3PSIlHpJSH
j6H8+86q07G9bs3VTv4v10d7+c/0/6Bn2Vv5v45rK/9/7as5/pv4yRU5gO39P9M2Byj/fQgK
t/7fdVzr5//l8yfPLt/HJv2vm3Z1/ntmb6v/r+OKmLdLcGt2d8qoG3dRzW/19V/nWi//fujx
yxuBC+j/gdXf6v/ruFrMPzsV59tdvI+N67/9yvzj+/+Mrf6/jusegXkmAUw6Pj5EVJUnyAjw
JZ121Yv4bG+FG3bukdd+CC2SKU3kqyzIiZ9MyU/3foL4gBE8iE2kjaDmCx4RStJHiciMx0lw
hgcmPO1Ac0Y8HgT8BAOLE74IXDJmUHvCuUtilhDuAYS0V5I+aBOTB4sw7QFBzIjvkTO+ICcU
b3CyiJm4/3AXGj/SDjn9gl/+uTVtlWu9/Ms39l22j43xv9Wr6P8B/LeV/+u4DvE9KF927kbL
43jkS6bSjBDZI/rOXdQNMw7it0fwqKqdu2OU8D0izsvauRvwCQ0CcCLlQXBxVu2madtem6/1
8j+OaAgF8eV8wPP7fwN7oG/9v+u41s+/CAwv3cdF/P+euZ3/67hazH9CJ5djggvI/0Dfyv+1
XC3mXy4MXaKPc8+/qevmNv6/lmv9/Lv5S0Qv0cdG/x+C/cr8m6j/t/7/n399DPFkYpfk/v9j
gidTQ/Ts40E3ASM/FbjgJwyusYUI3PNG2tbZ/zGv9fI/5fzo8g7gBey/sdX/13O1mf95xNSI
Ocw/ZlpM8ez28/WxYf5h4qv237S3+z+u57r3L92xH3bj6c69nXvkSUjYqZhhglNPpN5HnT+j
R0ysqnKPzBfxlHB5vBQu7x6AKciaxfhumDPCnClnMaFBUKq9ulqMFfGFz3s/ASAaoiESr+BY
NgUoJ1MWCnujyEKlCBNfjAt4uZog4IATFuJB+NJ+IREdIl9HUrBoQI9SYGpF29nxPZKwOCFq
SJT7v706+OP9x/2Xf7x7f/Dq3ds/nr77+PZA2cGdxzt3/T195+7JVMDBFsp9XyFqkDS3u+vy
nbt32TENiHwqb+/zSlUAAnUcCiOs3JeP7hE/xGbZAD16CL/ET6KIv7gwL4alQIqKFO+S+98E
iHuP9r4r5Jd/M7Hl48fwVw6ghHQKVt7AHmLqwIe/d//BA5/8OzEePkSUQ7bj+Vuz/v/8aqX/
QdrUhKtQxTnCbV7nNAIb9L9tWYOK/rfsXn+r/6/jyvX/WvUvV/YJJYIHmKsCG5AkYmAPQkzW
gSpBLkmVcKZ6UTf74TGHBmR8hrWWemoOKu2B8VDqdmgdMYpaH7qCWgBDaHi0B1lOYflWsQfx
Q8wd+klciD86ou7SUGBrAJJEPosL6GORXNKWhgjQcxYRQMV8ZEoZQcoQGFQGEJnf47Lw7Kms
+6uE4JTe3pC9gAVhYtYy4dBYdotvTmI0NVC/nhGXeXQRJB0SLwAMlaT6gkI0ZJjKRETxyTzM
iYpRThECwl12CmC4lwZgM54U4zAypWA6Q+jE99Lxyu3EklYAUKQWE6l+8lgO35gn0w39gzMA
6gLHNweaAhEJ3TORAJbEu9J5SBwJNGQnMNTCrkOJP89JkfOilZkH2o6F2yHA4FN2ke/KeUxH
EQCM2ZQe+3wRPYZ2Jwzf2C4Qw4TVmAX8BMZn+ca6uNg4b4rOBwycdE2Q6jn3gSg8cQHm+ZiF
eMQnka/TkW8Zylg9FZWUT+K0axwL6eGAp5DSDuRmxKaDhshLZgJaJ1yM9v+19+3tTSS53uff
+FPUNn7XdsbtW0IIubGZEGbYlwEeLsvZh4CnY7cTD0636bYn5ED2sx/9JFV3u+0kDoTM2R33
8wTsdl1UKkklqVQqGbHgbqMgLW0Xm2DPx4RlDyxq2/ZMEAbu//hRaDRVNlUXMkrYwJQti3VJ
I6NW4rCKbyck+Ki6DuosM7thNDX/lVqh2/dNGSG/ooKQUkGKyjIpLapHnAPCZxGaBpCsL4IQ
A0JMHHsRGAzHshnG2fQVKs8JGMAERxvz/r5W6vpxPyJqwHD9lN+vQG2GFJUIE3JFx1mEZpAp
M4zYBRWKEq3A040hqqobjQOWf7j0yOXBuGPjnhjEThKKmg6PiLDaBWGSfnoyHgB41On5o4ws
Qkv9QBkbG7A0Xhotn42lRhhCK2mroFce+mkovWLfFkiYBUsfE0/TQIjpk2Itsx1DKaZWUCGm
xgkSGiu+2YVe1XX+jWnH7gca0X8/+P5QZ8gMwg7pt3aOdRgTc8yNdSEXQXZy+RWJKBkXT24q
sw790amvk2s7rRWU4YSp++BXXEbohpE7QEoNmqYOViUviAcilQndJGnIklDi2GOpQM30lMin
BAH/QjgoxSav9sjM852ZfN+HCkAUa4/CdtcfDsIzYpHeOOiIZRJw0miSJ/XsslfrCGU9DUeK
lISscNco+F/vN+ymsjsj4oUmsOgpKpNCWXTT8hLmo2KGhHGmkqGviYhNaIcxWZdrARhCC9tL
XtcjTeAMGGLB6nVwNxhVGNDa69eOYAfSEu91OYOX0+maWs0BPY1jvIj8AV/fxec0Y7G3/sK0
JrzpCs+7H43r9o8CzGo8Pjzh6wgRjKQ3CaoJBlnkvB5icnhd5xkyUFv9rgOrJW0eNJXENn0c
92lpnt1Dtuk3iosE07ysjnED4hFNihK59KTqDlNjFI6PjicIMOxt8Fwbg12UNjXTptJokgjl
gXEgJByzYfZ/ef7qn+1XL/b32y9/3m22f97/b4yBmdEb8QCM64tMae3Uu/7vdWT0UKDR9jZ+
K/gckMHfi2XUph6P3fCQA69cVdlcNx7RNJmtpJ3KDKTpjCRI63jIMj0Te0V0OBcOZ2Ew6TYv
tZyiSGkn2+4eh4iB7FWpm5QxIUt3RuvCfJ3jmdf/5w1prRui2PVdgFf5f9fu5v1/K621hf13
K8+8/j9SR6Alnqqq4h2yesDKqjAprVa6BCSUIgsTNFb3BCfLNPdUTnOOj5mjUyUsr9N6PdIU
qNN4zGfPsGBRH1E4JIuL+F9bxVqHFrxAzEgSssOMMv417sF0JPAQ1th+JWlK5t14WMC1lqKc
OyJpSWWj5R1Km+uiJFY6kzKQFK6QLGM34yeSbkkTjvnrX3nNn3xZ/Nz8wSn+zTkvbHw3QTa/
/x958L/K/X8F/zebq6utvP9/ZW1x/vtWnkn+3wuHZxGy5Jhyp2JaJJqRAK+xbv4+Dvohqc8/
eydeECYM7KSk4SRGO8yY32BdHvqkbVIh4Q4pxAZ2TGYA8TIMI/r8W3godhiMqmHE2YYSzsV7
FiPUagD+JwkDUcHR4iQtWAWekBc58QIfD5k8pHQkdkYab57clRuLmlZsGmTdOYYFHpNC4Yle
HfvsSDolBYZG9EH1cqi8xZatoNbmoS/qLkbbNWUYjyfD0ZmYqvzaGkzWcSIVKxnXWaxbKcfh
KWTUKavuFi/hsN9J7TA2H+Bt8QbQnuDZOfGjI7F1S4H/aVSykDEWj+RCDgtgleDteHAXeBYl
7H2TOHxJIwQzJgFcuzGaEpL6UXWWBKS+20avBTQvHW+zDWz3V5ziHcdsm5aqdDycbScTZ1Rs
OarFym+/snnKF5r3O7ADWLn71Xz5oq6HhtkkgJF9O7Uro/FwlALd9Ueiu7KKDJVT91m4B95n
yQDw4EEdWy2bmwX8d3kXcliixqV5G4XNulOUxaR0fW9gCZXMg+zcTRIK3GCwVtmLcYL74aOa
MY9jrGjP/r94dVCQvj9AHw9D9TRJkzQnMOoJ1ph+Z4QR2TCyyKJKxvnly6T75mkoLkiFSItN
enQex9oHrko+yxCXQPmgQAhp94O2fJXZwkqIS9uJNYhsR6Oz7TDwkSrMvJdiCUi/pvtu/0Mv
J9qyWn/G3SSQYJmeCcwm3AZoXm6VJ2TVktHoDHaYsJnYDdw/h+zkgBeCWg1CcfvV1LBLxs4+
xbQ3EPgDmp4eTGxYyqrCgDYO/ZTuoHXgGuw2KrSbOeQkuHhv56f4WVno3HyhpqPRr5nqrQuq
p8+M6inXZeAA/2VftCymFf0Zvkt6S4GUbn8tLM2aOUtB0t7MqbMSZDwEKsWCA3vYSV/6qglb
EpGh7IoTCypEFDAM9ErizCAwJdCl+jiOeI0c+tEARniJ+jk5U3YhXBZ3X/z0j7eNd5v6/iQ+
AoaXbQnYvaLSpaNPiUlTLQgPbhwEjjZT/n8Z0CvU4Ik3BPsuLdXfl9823Pue23v3Q8XUUX6p
TCvX9o5pVvDt3MTDQX9Urh8E9aqC13zHP8G7BRh9ZEMuJ03m2izXlitFaXjprbRcbPH4Zrbd
elepSDtEE+W/sBiKTTED/2fu0N0hLJ1rUS4LXNnvS5w8wrx89XD/xQvGogCwNA66JMjSF+eF
qdKOsR003ykKuRj9lVL552RBcqbljRV84P6trYOHz/ba+08fFgrZRVlMFq/nH429qBvPXI/Z
Z3boEwukyySvvlbm0/IadGtoWNwXPVC3RwYOIvGUuDcKBbNsnsEZmls5oILE0qCjoFeTT8wW
kFdIzaFURogKsZJ4Rx6t5WW/DwZSxwyJUSKJfmC/kR5yUb+J3O2EvKMH1SzbQwIMuu6zmdil
WSHDsMbCEpIy8IXq5TK9dM3rszHZCSNAgfq+Fw36kLpES94HP65is8M/nYJI0szz9mJPHUEe
N5DbFrDAESjWXwdxTUpen5GQbFOwiNERYBOD12CfBLp47+HyFjeoKj6yDeAL2t6Q3OPFIjtW
lpKEZCUGdaJmNkMwJPRoqagqaNWDjYxaoVjdIxPCEdu8qkTlBekuBZkqXThpY/VPS7eKM9i6
BTHcpVWRqTJfhI3f+94gCfiB+9Fuc8Jqph8LHLry8PELPRxIsGIs/Zj04cIbUbGpJUvW6kpm
KW7d0B+C8JTIG9u/uFGKBEGO0iAxGY1gooysFIBpCv9JDHTEyWdy/AcTgtkvJhsdWWuUfDJQ
RMggyOxhOgOfytNKpJaKoorwWdUdT1xel2FqWeGJsU2Ou1gRnAQDbnwiG+wQqTWAdS4U4jJe
r4eNHZo5qTr0Q1CRMT/SZITgPpmRRIJkEMkNABSLUJIoxMGsbxTKrcuwygjNa08Jb3DDr2Cp
oC8MQhgYLRvzC1BExE6ahYdd5GpO9+HaMxibDKTsGImyzpJ1UEcgs8EsYZHOOwbpnp2MhEbA
/hiElkGYxbIlwdVTWZhufDAL9sYRd68sV1XMqq6onUN4ZDoq02J/7A3j1Gjk3TIwT4XmDnsR
ybaL0KGImhSVhSc+NpEGWC88DadWDiXaX1qiOqHrulf+KdFzjbpqevb/qc8ohRce1cTfodmd
WaieezejTOYt/jrUWvJnfpwuWc/8pc/BVMFsuUMGcW+ipJarm8ubrDPW50Fgiki7zhcKu1Ua
Ajh8j+20SSEionyX+YV0Q9PrfyIhrywJH4ByjmiwKpO4zo9cx94Oi1VvdAHXaV27aAMUlcYY
F75yQAhYRGS1XUm5nz1ulTfvc7IRpEbKMkSxn5O6okPvaXuJA0DDBXZ1KzwghTvyjvzCj1Md
v8ICfTIckzwg0Q0inmmQvBdsshdgdgl9uITYEYR1X6JEqiZVmjMDJL0FxdPhZYFpTQOjNnRN
1lbtRJZ99sdYIXCxKCxY9e+P9tB932ce/2/qB3dJCb/5/R8ke8nv/9xb+H9v5Zl3/0e22DPB
TYPwKNl6gYpFCs+Z7Mz8X9z9MVmHMJqAMBSW19NOycBsi9gKuu6u0SSnzNg1kj7otzl2jaQs
GprYNUqayO4aZV5eb9dorv2fMB65stv+Pc5/NFr37ub3f9Yai/Mft/LMy//DyB/yPoNBCNPE
gUEOmeKjIXA73DHd8cmhBMHAVIivvfOaUhsYiAk8EygU+xF14yIX0X/40nwrz7z7vxzd/VW7
v1fyf+vu1Prfai74/3aeOeP/Lwn/kGBuWmH3ZJv18Ix3fDWG37ELuFhCNuw8E7wu67x4odQP
4wVn7AVIjCdtzHoSWWAocNAc4ovCocmCOJYNOImr1EamTylcd4v4KeTWZBA+YSON9bYx/eKc
48NUdrP49YsnV5fF7pMctLP7h0C4xFJ6xh7Zln6PQ+zfRkd6CXQSQ/px7A1kqI8DSeqEiESd
ukTfiRUSCHeBQKPzgeIx6TN9uHpjM5Bsb6GGixKCg64XwTIbjkc23hfd2IDHLYkIJvtyx34O
+136nBxa6KVf8Mt8G+By9K+XgR7+colATjVSCTOwQdPOm8fPHVOGT9LIbZB8ux583dK/7FGP
owF9aDmFAmhoVgDlVOCk+UIrnSnZvZOSKTVKlUJBwqNhv0tcdBtbsfIJubSlU36pH+ltAacE
0w27pLRs1wGidGPtjvmZ0D+w1jm92Ui2wNIm0rYn2rCNUCtP/VN1e1SZ87ENhoOXilwU4rvU
trPwYJtNuqIWXuvJmlB2nzlCI9dgGm4/0WAKXa022Tr2X9D2noT1knZB86dN4JCknokoT27n
BQacSRM7NKX3VAEbP3IRXCWDFT7facNKU1SkO5WPsDeT6RAEU0wmscpOCeVLZ+IYJUGNP+bf
gu5D/tHS/epnzvUfup+bGiTX0wSuWv/vtXL5/1qrjbuL/H+38lxX/5/tAUAo1OTyb2wQY7Kk
BpklU5R92VaJ9dTPpPld1SVYWtSjPzYLSXLWR0TCHVupREtHOI46fsbe54Mc0RBrpBwoy9n7
aW2x+FXBUASAFS7SLqr2BJzKCVaLotFXHUXP8ZdTK0xqKAGnPwWqEOWucxTXeJS9foQNxsDX
uBeLUOeOeT7wETXkB6PkUFwWyTWc0Tj2B8Np50zsd0J4odOOfSN3bfE2hz0lQBIXA3JV33Ij
Oe2kmzbJXGbDAXk3lmOUuI6jzYq3nJ0zmtgVU6/RaXp6LSiBroYaMeK61DPBSOsDf49J4YHm
ktBSJhSQEB51E9r2ul0c13jZPwpwlLXXc4nGOAYkDzjTaIe9TrS4qWJFBMSaqN1IjmjyBmc2
Z22/63s0fXvPfvnl8av2Ly9/aj96/GQfR/j01ctnr1/s0YtWAUc9tosrhUIuxqRfO/Q+0FLl
m5KEOYwDHHAqn9Tf166a03qtRsXuFOsVLIA5KByQlQa/TUBTLQIWR041meqXkU+IooW9WmFd
zswGcIhgmDvqzhdInYPAMTXza4ZAkoMjk5TyK9Vcgt+OoK3DlVVkQv7hB7O9bRqzgDebm+ht
uSIfbMDdy2c/qjLwO0ly7E5LxVf7L9qPH+4/fYVwKAAQmFJcf39Qri3vHFRqy8X6BAFsmINm
fVjCgI/6GuSHCCF3FOFgEedE7gcuoaUDZ52+JTCpf2cWqu+YiRCpCXw7IjsY25cgN4NTnJIR
DLVBqT/8MHN675hrHnqZZ/3/BtcfP1es//eajXz8d3OtuTj/cSvPvOv/IanAH0gOeQEpwLIx
7x1pFBKLItzuOK0FZM89qi6QWKp87wQvh/Gx13TDQVc+kL1wzQU08RZKDDvCUuiDyw99YCqu
scs/MwBmPRbhh2HIgSCxL/YkRwtMDdXa1XbrwK5y3E4mE5rJnPGX0/CnIRauQ9aSMrCI7UZt
XwEJl+Oo8dlgfBMQcvr7aiA89M6hG9S3nIOHX4B9OxyDhSPxmU65OezIXDZ2sRTnHX56+PjG
UICsDhJBNhcoYrIiAo5HPAumLlIFCG0lR7kvAkmPjcooQLxCtETBcu4Bcr6gPCIeCuIRMnjF
SUFsIp9XHFvxpdfzR5rJArG/b2Xl0YAtx7zbNJmYauch4wPHNbIOtTRdRAaMmqYRkoqmnDlY
LGFAEqfLDqMzox1yZ2h/srIpNuD3gfdHxkMfZDA7FVsyDcRMh6GYcIwbygupnX6XRqaGOYZa
tHFJr9Od2nlgSZIXHKpsaPgbaQJnQ38b9HKBoKkUpkh+riayFSqFPKle1US+/AQUxMvXAIFK
a+1EWsxVOyldKdiMI+zNCcKsMVfQeyHwipplTY1Un+bHUkq62USkTsUe38hUZM3VmU5m6SyT
8ufAAyS0sLy8bJ7rPRRZg5KXErJFRUD4zPeTZJE94sHEIRviNO5YND0lP7A0tBqyrfAfAk1K
MDZUS0fMu8TUeVj+at/qamT2SEk/cfOlTCA/tXmG1F2oofGZH3Q6k6PmIzucSva8jOXAqu2Q
K0uisjRV9HJVzzqyE28cuBMLKb2Mj8lMblvBVvysn+7cSds4F5cdhpZnJ8f8hUaJCwYyg1zK
zC/svXyvVVOc6LVqA4An1pB+NqVQkjgtbfk1YaEERGEtJKnk0Zy4saG54HwSWJ4n0i1E4dA7
guqctpX1FnJKtizeZHoEb0olgrEsKhKevBIRD+3KKYv3NUZ8KZTM0AAxP69ZKBPen4ASZt5k
1IOlKbNjUkpv7fy1mXfOytTSMEq2SimJIpUTB7UZM/YLg3ENHFw5VXJIbJLGVXlIMGAXppQb
iVScYl4kc4FL5m/PahleJuD926bQQj+D0vKDmFqDrkNvNwWvaFx5fJPt3fmQql+zK8xipql6
NzHWXKvfNOhlgXfXboBCUpO2FeuZJy/7/kGlMCGcZCdGEkCOAwTZB7w+wWE3TrZpsOmUMB38
qCgxKc4FugS43ML3SMNb/332OBbPxc+88R8cIqse6hvO/9hYm8r/u3J3Ef9xO89N5v+Y4f9h
snFsZGfq+8kGZEoIKBy6cweBzgwB5dgE0pr9KLowHFQOVn19SpAsG8wI70yjNK3hkk8AgqDN
go2A1+DNC8t+x7wf9pmX/7+O8+W5gv9XmndX8vFfq83F/Q+38nxn/p/YBf7eAqDf44wiN5oD
KGX1fs/kA7YVKZyVbSdnvojKqKfUssnZEI7VRxpGhWpD9snseTYEzHPGEMmuy96AtJ2Lk7rl
crndsSduJ4//AK+7L/ceP+ZRYsyarhYDT3LYwrFNqm9NnD5Ux4s7/f5cPh9bmF0+L3w5Vmx3
jnlKIJ9rEtbbhKYJoonCODbYcOT0hOrXoSn0JS2o9zuipmbAvmnDwmQ77SR7zNrrdtPjg1kn
7BtsoA8HoYYB9DhppKZhRKAh9twYDRw9ZDPWaJrGeIjtvw6kQQckKYemuvagYH/QJbRlrQqL
kLwdDEKYzACp2fUPYU7A6+xFHIoEA0NBoTkidoElUCWjYFSK0QjGT+P7OEZi1Cp7IviI5mF/
0B/x8bGX4YBmNjbNRilONxtHUaUq59rQCo/t45ijAAUA4mHkXT4mTvM5k2YPkWHq1EYe1qOA
bX8GrVZY4rVPSGTmxi8STtBnm5AR2UJ24bctWsr/gpN/T/bau0+ebO9h0G7XlN4a91/vDhol
88WcdozbqQCNDeWuDmFua+tg/9mjwn4UhdGG2R1h51oIvtvVmI2UaDgIpaYn+nG+VcILiOBo
vk/ifL5MDhjkidWjqwg9kaOsSquxHEVDaCnjfGDP7Xrd3/uxZaZEuthTJQVlThhpIlPxjVPG
cBbg5PitbYPhZY8jx4AiOYDJMOMMBpQrOIGaSce2RLdEkqDm9LhP08Yk7QOBcVW38Tnco9cj
ygY4CepipnfoB7U0MH8iW6QAmcx9MrmuuzAU/y8+8+h/vfgkDCA8pdyJF9xk/F+z2bibz/+/
2lxrLPS/23hI/8tGnxQKkIeSFWOTP596EfKuxfLt8fO9jY1ntCC0Ni8/MIDwmaMI2tkbpRkq
Xj4ejYbxRr1Oa65PmsMHENnx+LDWD+uWtOqVNNE19IWhL8elu/5IEiYg45t/KtlH7D40J/id
Tvw29GJsJ3nG3mZcTtP9tyrcxMCLR6l37ANH5Eiw/Eji3j3GBiudXdVjVLfs8k0BDEy2ARSU
E4YCVi4nTAq0nCmXZHNp9Zp5jhTJnJ8dCTX9NHey1WXCcGQjIKeSqMcIJbQZUTz0cUST8/T1
k+sqvx/HfnSWMLyjjQOkUmbhwe3RtUQ+mIzQmKxfot6R1KioM1E1RWC+LSNv88iR5OhvSCjE
pPU6ud8dGk3XPxwfHcnsT2b+KTaMbXRGm5wMqGBDyZOwTkk+jmVPqxY4G5FtJ/BBHp9toukA
29oc2WlkVOmAuTVbrWQbKNU4Ck4yGTiPiBTYPewBBKIcWtnBUrVajcE7LwA1RUJdG9PZ5rnc
Rqq+tk5vm9TocmVTykX+KDqj35v6/bc4DNrDD0ebBb5h6DMc4awMmr+/fPZ0Y+O/X24WlpJS
2HKw75EniVo5RwRlN5yu+fz57JrPnwNq6n7gjYPOcdtOMoMYjw9N7j1aBqQhNWHftRmTqMGJ
oPpxOnap53fLxVDzSgnbtSUfIb12dz53EI90XjV/+8xfmdPOz9HcORAKKCZqKQzlIlfsk6L8
N67DRNcmuJcuJLkEZm0RRUPoxGUMqndcNc4OMjAx8duyrka10n8OoCJO7gd8h7rU2BiPeusO
/yD0TK9xMkGgOwgEOslldcfQ65hrAlDbEHHAs9evsm1pS9pI8sI5aOBXOYNTrGIi5Y38LF1t
WrQlM8TN2LkjLA7DIAZhfvyUjNJIGWeSeB2kDmPWecQp2flWFzIopHCf08OUJqskHLN0Bbvw
TvsDNgKAC2KGcRSkTODukDh2d4AQd6frIwtSOYG9Mj1GpkI7RiQM2uapbZUPlvd+fvKwzQjW
z4+fVk0pGbn7GwybUJPIlSqFJdAMBi0NVDQf/YYp/kXHdqUkEOcAiykBjOxUHFSCcJFLD079
ElT3mIU+x1KwVk6rQbrWMMFwrhu7xkzLRT5tN3F3QI3vowjJfiXrfOkOGqHFAmn+aXlH/igs
D1UFYJxkMXW4B4fmN8CdAiEnydL7R9AGAgCDzll6p0fsD+ARoJF3+7zqBZypijOg0LI46MYO
ig36J2KfM7cl7oOMJQJ7sibZiqaASvFGjfkRrg9BO0kmIKIGxO/aAC0ICGTxhCQi8qDfytMo
q5pG1TQrxv9onI4jgmkGYsFczoyFyHFYNjGhyeRuk+3qLO0/fcj56t7KigtBkuOmqiTIU0xv
zJjNKv+u2Nswbx2O0ngnrzO44J9CpPx669CSIrEcIricd++QL4/+4ZR3l0hDVjssFzDM8wlE
LloDo6pATOWeIGRa0kkJZb60lJTR15tT8glLmcq6+qbZsny8c365lE/GZWxb6bguHJQtesG4
7M/TQ5M7ErSZjSTWTuSZD2eXPRcxn/BguZggATTqbF7dSz8glaFv9dqNtIU5O5VzCVns/8vU
3x98rn+DbJ6lCiSrtwBqF22eeXZcIA2n/EbKAL85V81C9aUd02AZo8UzHwnkk/o4SH01cTj4
XbXs2nLm/gpkxbSb+wpXXcUA9+G6NgPoBYulUNesxTK/WnLyvVy9C1fMOZTMiVWT4FWBuj3/
5FClSxCdJzQpe601nWtsysHPuRWxr9HE8pxI398kmEYUrzc49c5iZZKMHRfqGWc+biUiPA65
vhYVbzKO3iJ5oUZqIAtmPxqdOaY38Ph+Lyy0oL+uhI9PACDN8nEpVZqoMPJq2G2RU2S3O/U1
lnnonUlADO9xxHxYVQ1nTjxHdrPvISSFFtvf+92xN1AH5NK0Qs7aWfmqqb7hub5Esy87daci
4MxaZTNluSUxfvKmB6lh53LvKc9Qg9fgKbk4OYRrjUAbbibiK2e2Wd0y88oKpvfPIHtKJ/FZ
XEJubvuic3Z02g9KKlqybW2bN/1gpbWx8ZM/2jvt6mRNlPiXGUX1g4P6QR1y5VwCiD4zBsS0
o3rTtfB2Y6OjTZ5nhPcE3OcLH+5/2jOP//drz33b56r7v9fy97+3cAB84f+9jecm8r9dte+P
o8l247868yw4b9+mp8Hzx5SnYgVmRApw7M91YgVmRgokZ4cnM8Z9r3xx+RPfqeIzSu45TLYy
rzyuXOObIcSW4Zt3qVIyAFrN5Gwy6whsrQ+SdPpm+gi6npFCXVyyaAibmo7XBlJMn7vdff3q
52dffegWmTvcjzHuGtAjtU2+s0JCXOXdzo5cqWlPx1tq7WhW4O54OMAFrf4MbGGvVjKjSGR2
WXOF5AAqaceFJb5EgcYxDvofjduxI/JNqf7+rVl6t9zEv/VuqTJ1t8bDy+FIr9j4o/n/cvkv
MSZx/dv6uCr+s5GX/817qyur/2Xu3swQL3/+5PJ/vvnH8d2vJ4Jrz3+rsXK3tZj/23jmm39k
W7zd+V+7t5j/23gunH/2uiDLRcevjT6NvqUPjvFfW71g/lvNxprN/7DSuHvvHua/sbj/83ae
h+xcI32ZkziQouI+6cdDiQbbMOXTKAyOONLTtRo8Bz/izm2Ji3CHpryBXPKvoz52cAb+BpmN
J35dEFaHA6HumI0hIiqiwDgXUZxTqRSMkV9d+vdQwmzL36t1bGxRezfWviFNGn3c6ZW16a6b
XAVehp81GnbcgXdy2PVc3FZ0737F3NlClCXfqO02PjVX7nfvr6+vdvz7vWbTX9upEHQA9rl2
f2OwbnzAhSGrjJQTb9jxovKNwm3eTgLuLC/Xl2u/eb971Pn0TzUN+Z39Y2fgxTESY8/+OZY7
DWPqYIgzgDNLxVGnvrw886fl2lHkdQf+pT/WPoxmN6w/w8L0o1Hfn11qGJ7UPp0Mpn678Ql9
dzEJEgM3YYe38M+K+WsEWwj/VIxj00mekZHKFwoe9bFDapOtARIOE613+9093lt+Izsgjzjy
yskSROPT+t11726j02ut+M211RUi4ztbAvsgHmoGZ5N/4Tb9+/db3cPe/d795s5VXRrH6x6u
d9bXPPew6TXd1TX/vnvfW1tx1xu91c7d1V6vsbJOyLPYWlDkH0mRnBj/AhHzB9KluXm6LC8I
89+GMFOVQAiLJrvjDfXkxEJm/ZlJI1UWE9IYB/bjV5AGzWS/OzcBnPij45CKX0FQVNKC9Izz
2JD4WRDPH088lXfGzss86tisFU+pCru2+LEz6JPpVbet7iVSanKJgy5+d63RbPmHfqOzcq/V
uP9VyteF3VmCkyU4XpD1n4us51flvjNNf4XidjFNlxdE/acm6nSxP2ZCdZVCF4JzQWM3Ljhn
EdpCmi0o7Ual2ezVWSlLp5gvNoorkx6SZq/pdRqHK41uY2113fNuWHtc0OaCNu2OQicMAp8p
09Us4V9BauUNbc44rVqDQAI5rWVo5UJaZPDBAQui/LchStxrP0lPFws7kJfB3al5W6Jz2FpZ
a62vrazcv7faWv8qCbcguwXZXWYHz0985k9MfcDrHH+KcuB81D8hbHDGJ1Who/LbkWmtrd+/
Z1ZX19caZnV9vbl+zwT9wTcLhj/x3BDaBeuMyPvNu41GAx/JkPmjI1YWz00+F8f/qbS/gT4u
j/9qNFurmv+nudZcbVG55tpaYxH/dSvP1gNa8WwGk22nCZnlByQTabHedl6/euSuOw92CltK
DQ/TOxN2CktbONKwcxEJbdX5Zyqmhxp2tur2E720Wf7wuZ79cjjuD7ovh36Hvug3vREFL7TT
MDqq+SRLhzh73R3VOBENVBcu70dJ51QhSTopX+sT37fquR70hQJAvY3GkS9F5fPFfcvv6JrL
oa20+pYkvfO7L3y5pFDalLcCWb+707y31my17t9rNNZX17fq/eyYs2NCSN7OSmOrzh/41YnM
AH/htrJwMoyR7Zk+HfmfHnHXv0i1pK8svpCboX0Sdse0YHw5QEjwl3Z778X+7qv9h+0f/9n+
++4/dttPdp/+9Hr3p/32y/0X/9h/0W7nMExYyIC2VU9GbD9OoCShhQlS+6PZZPEsnsWzeP7j
nv8FFtQvCQBAAQA=

--------------FGNCI4CGNqqpqohGyc2JEvh5--




Acknowledgement sent to hkirsch@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#79809; 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, 3 Jan 2026 11:00:02 UTC

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