From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#61726: [PATCH] Eglot: Support positionEncoding capability Date: Thu, 23 Feb 2023 13:04:58 +0100 Message-ID: <871qmgfuz9.fsf@gmail.com> References: <87a614g628.fsf@gmail.com> <83cz60r7hu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8603"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61726@debbugs.gnu.org, Eli Zaretskii To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 23 13:06:31 2023 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 1pVAMo-00024h-Es for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Feb 2023 13:06:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVAMb-0008Ez-Cc; Thu, 23 Feb 2023 07:06:18 -0500 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 1pVAMN-0008EL-64 for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 07:06:05 -0500 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 1pVAMM-0007YL-It for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 07:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVAMM-0000SA-5x for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 07:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2023 12:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61726 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 61726-submit@debbugs.gnu.org id=B61726.16771539071674 (code B ref 61726); Thu, 23 Feb 2023 12:06:02 +0000 Original-Received: (at 61726) by debbugs.gnu.org; 23 Feb 2023 12:05:07 +0000 Original-Received: from localhost ([127.0.0.1]:33231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVALT-0000Qw-J3 for submit@debbugs.gnu.org; Thu, 23 Feb 2023 07:05:07 -0500 Original-Received: from mail-ed1-f53.google.com ([209.85.208.53]:38469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVALR-0000QK-Hd for 61726@debbugs.gnu.org; Thu, 23 Feb 2023 07:05:05 -0500 Original-Received: by mail-ed1-f53.google.com with SMTP id cy6so35759028edb.5 for <61726@debbugs.gnu.org>; Thu, 23 Feb 2023 04:05:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=fhwl4AW8gog6RNRDXUwHdmrEgyRgC5zuPfEicAavfsg=; b=WiZAkoIwG2o+JO5C56WQrramkNK6Bfkh9youq2K787GNdHBLe4ofIXte6F2gRT2dG7 8mIjUfv2xwKGBX59uyqaklriDNfSh7zkjU1UDarD3D/uxmCr3vr3iW00kDLwHkw7HcFv fOvQzcS8re8nF/NA6W73+CB3f/vEJtLzq+2+YD6yfNjn+SMBbBhHDngUbzbycEkdBnmL ZPywHStT4gNKOPkgjLa/jWoPVE38Ux4VDFvhevMF0NqPAm8CfO3vFb+NbJD7hPMPOqNs 2LAnDFwdyDUfPrJbKhjvrDVY1NrNXOQuKwDnocvfEsvuNphVI67h50lGaXmwTXJuwUkC EXqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fhwl4AW8gog6RNRDXUwHdmrEgyRgC5zuPfEicAavfsg=; b=gxZJMIKbkzdBMoaa9sjlsQeAAwSS/DvHi5trv3zFDT4F62DJB4xIIDjffu2GMk8qRq b4ylz4pHF0i2UyIjyqkDiq13pipu4Olbt1QAEGac4epeDxFdwb++i82cE2gso1hklE2T C6QH731MsP+MOuHF5DDIsgFek/hMpq6CnGioMPQ3DxBvFzDNMkn3LS9cQF4f0pKu07NS 7L7GQN3lqf+pY03JueaNA1b0epx0uM7ia92GYQDKLcnqhWTZaZ14aeRycwvWSFgJC9hh j/rElx25LhO7LgozG/iSaTy2EXBCEskYws17delb5x3w972OpLDJmwUtQXnQvVVubMWk AdUA== X-Gm-Message-State: AO0yUKXTiydvoD9bVLhz155RGOVS84zFmyzJU+BB6clU5oX9W+mawNxT qyfUKaiAdT4U4aywtNIPzlEnP/6ntv8= X-Google-Smtp-Source: AK7set9vMhHEkjeVPuOoew/56tCXcwbDAFXKei7zVVMFTw6s2ViqseNdlqUbbgyL2QBgD/wpIuCDzQ== X-Received: by 2002:a17:906:8056:b0:88b:a30:25f0 with SMTP id x22-20020a170906805600b0088b0a3025f0mr17792799ejw.32.1677153899450; Thu, 23 Feb 2023 04:04:59 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::6fd0]) by smtp.gmail.com with ESMTPSA id y4-20020a50bb04000000b004ac54d4da22sm3261900ede.71.2023.02.23.04.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 04:04:59 -0800 (PST) In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 23 Feb 2023 11:32:45 +0000") 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256448 Archived-At: On Thu, 23 Feb 2023 at 11:32, Jo=C3=A3o T=C3=A1vora wrote: > So it's nice that this new capability popped up. But, as far as I > understand, the only benefit of leveraging it is for better > efficiency. Right? Or are we risking incompatibility with some > servers until we implement support for it? Please confirm this, > Augusto. There is no real risk in not implementing this. I don't know how many servers out there are nonconforming, because, in practice, the problem is very rare and basically will only appear if the user is operating on a line containing Emoji or uncommon math characters. So there may well be a lot of nonconforming server out there but we don't see the consequence of that very often. Digestif (which is not very important) is nonconforming because I didn't want to implement such a dumb spec. IIUC correctly, clangd was the group that pushed for this new LSP spec, but being a such a big project they surely support the official way of counting. Anyway, more than efficiency, this to me is an aesthetic question. The UTF-16 way of counting of the original LSP spec is a totally misguided idea and should be avoided.