From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#58839: [Patch] Re: bug#58839: 29.0.50; project-kill-buffer fails when Eglot is running Date: Sat, 29 Oct 2022 12:12:22 +0100 Message-ID: References: <87sfj8umwb.fsf@posteo.net> <87edur3lil.fsf@posteo.net> <87a65f3j40.fsf@posteo.net> <213f3549-de4e-25a7-5e27-d13893e557bc@yandex.ru> <87zgdfwkle.fsf@gmail.com> <8e31a89d-e35e-6dd0-a8e3-f0b9684c8bfa@yandex.ru> <87czab16em.fsf@posteo.net> <5ea24d00-2461-7901-86d6-6bdb01f30020@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000031db9105ec2a6f33" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4378"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , Manuel Uberti , 58839@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 29 13:12:25 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oojlI-00010Z-Ew for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Oct 2022 13:12:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oojl0-0003kD-K3; Sat, 29 Oct 2022 07:12:06 -0400 Original-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 ) id 1oojkw-0003jd-Fd for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 07:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oojkw-0004Ce-6b for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 07:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oojkv-0003bC-RJ for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 07:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2022 11:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58839 X-GNU-PR-Package: emacs Original-Received: via spool by 58839-submit@debbugs.gnu.org id=B58839.166704188913792 (code B ref 58839); Sat, 29 Oct 2022 11:12:01 +0000 Original-Received: (at 58839) by debbugs.gnu.org; 29 Oct 2022 11:11:29 +0000 Original-Received: from localhost ([127.0.0.1]:35037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oojkP-0003aO-4k for submit@debbugs.gnu.org; Sat, 29 Oct 2022 07:11:29 -0400 Original-Received: from mail-ot1-f44.google.com ([209.85.210.44]:45667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oojkN-0003aB-HK for 58839@debbugs.gnu.org; Sat, 29 Oct 2022 07:11:28 -0400 Original-Received: by mail-ot1-f44.google.com with SMTP id m5-20020a9d73c5000000b0066738ce4f12so4334467otk.12 for <58839@debbugs.gnu.org>; Sat, 29 Oct 2022 04:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=wGKttaIpEohh81NSTR4BbhLEmFkhEhmEQDPfteoV32U=; b=VdBoSyzWtmSplvwWfmR83qwQiERoMpsbipC4sJAXArfXbmoNGVuGPNAhP91BOY3K/L BGz4Fkn8YHxGfOvCDbZp5LyzfabJi2vGMWaIVIPHewLykcloZI6NiZqVjH58mKF0wdnv w4NHHaHJZ7Z/fCfL/TLQ+TRovcFJcrdzVVA6a3y9E3O1Jd4k4ZaXFi7HhcjcqsO4EU3E BD0/0OTSLUWAQUY9Mm44dPDYv4a/LBEe3kG/4I1FOxsyAVPVnrldSi6/zXZjCT+q7xp2 oZ7MezkkWvethabRjI4xZZ1ZLNehC84WTxU2Ky4V0qDLosSTGys3bLCgoh0ZAk56KNTd SrcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wGKttaIpEohh81NSTR4BbhLEmFkhEhmEQDPfteoV32U=; b=MSfS/0Xd+Hx3X1uiV8xd1olnZybB0vPj/J6DI/EZpR+/10CKs/EFGtquWBCyfu68rQ gm220/Wm6pK4CipdeF/XUdvEgQOM35BNo0rSf0FXH09mgHV1QWwycUsWlNCZmrPyvB7q hE2Jqj5X10g+xSkXVNn9hOGZbO51dXWnpWtj+Br2qOTu8HOR/yUjYqP8OikQlG8kOnju bwvthZgeRv3EfKta4YLQf7+f4K5NEV0HrIChpX7PR1Uwq0yust4vPiKrHFWbI5TrfuvF 4z8ry9a70dwUZkLircmePCcFDNTnXXR+VQuIKhveoBLL8nAf1D1BBxwcVe+arjjJ57L4 5QFw== X-Gm-Message-State: ACrzQf3RYlckBE6LjOakVNYEyoIHPJ4PtDM5LbgkFiyQswX4d4uMllva IhcPnkxC7HC2M+jkJqGJ3xwTomwNxZ9uJB4Glqo= X-Google-Smtp-Source: AMsMyM48oGcAeXaFj8DwLGCADnM/Z5Onah4XI8a64JnH63UMYInCb4qIEfEXQqn05t0l6L4XNa4FNm4kkdwNrdBj9pQ= X-Received: by 2002:a9d:117:0:b0:666:e09d:577e with SMTP id 23-20020a9d0117000000b00666e09d577emr1865207otu.93.1667041881872; Sat, 29 Oct 2022 04:11:21 -0700 (PDT) In-Reply-To: <5ea24d00-2461-7901-86d6-6bdb01f30020@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246513 Archived-At: --00000000000031db9105ec2a6f33 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Oct 29, 2022 at 11:59 AM Dmitry Gutov wrote: > On 29.10.2022 09:38, Philip Kaludercic wrote: > >> But if it were to work for > >> several projects at the same time, I suppose I could say it doesn't > >> belong to any particular one. > > In that case I think a kind of "project reference counter" should ensur= e > > that the server is only then killed when the last project using it is > > killed (and the right user options are set). > > I suppose. But that kind of arrangement would require a project-specific > hook. > There isn't any one-to-many correspondence between LSP servers and projects. I don't envision adding that to Eglot anytime soon: it seems completely useless. So what problem are you even solving with this "reference counter" talk? Jo=C3=A3o --00000000000031db9105ec2a6f33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Oct 29, 2022 at 11:59 AM Dmitry Gutov <dgutov@yandex.ru> wrote:
On 29.10.2022 09:38, Philip Kaludercic wr= ote:
>>=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 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0But if it were to work for
>> several projects at the same time, I suppose I could say it doesn&= #39;t
>> belong to any particular one.
> In that case I think a kind of "project reference counter" s= hould ensure
> that the server is only then killed when the last project using it is<= br> > killed (and the right user options are set).

I suppose. But that kind of arrangement would require a project-specific hook.

There isn't any one-to-many corr= espondence between LSP servers
and projects. I don't env= ision adding that to Eglot anytime soon: it seems
completely usel= ess. So what problem are you even solving with this
"referen= ce counter" talk?

Jo=C3=A3o
--00000000000031db9105ec2a6f33--