From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Troy Brown Newsgroups: gmane.emacs.bugs Subject: bug#70929: 30.0.50; eglot--apply-text-edits prevents point adjustment Date: Tue, 14 May 2024 08:38:59 -0400 Message-ID: References: <87le4d55b7.fsf@betli.tmit.bme.hu> 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="3210"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70929@debbugs.gnu.org To: Felician Nemeth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 14 14:40:30 2024 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 1s6rSI-0000cM-Cp for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 May 2024 14:40:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6rS0-0002To-Fa; Tue, 14 May 2024 08:40:13 -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 1s6rRt-0002RX-6v for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 08:40:06 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6rRo-0000tU-Li for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 08:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6rRp-0004Sa-LB for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 08:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Troy Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 May 2024 12:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70929 X-GNU-PR-Package: emacs Original-Received: via spool by 70929-submit@debbugs.gnu.org id=B70929.171569036117125 (code B ref 70929); Tue, 14 May 2024 12:40:01 +0000 Original-Received: (at 70929) by debbugs.gnu.org; 14 May 2024 12:39:21 +0000 Original-Received: from localhost ([127.0.0.1]:39113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6rRB-0004S8-8N for submit@debbugs.gnu.org; Tue, 14 May 2024 08:39:21 -0400 Original-Received: from mail-ed1-f48.google.com ([209.85.208.48]:60879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6rR9-0004S0-0G for 70929@debbugs.gnu.org; Tue, 14 May 2024 08:39:20 -0400 Original-Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-573061776e8so35024a12.1 for <70929@debbugs.gnu.org>; Tue, 14 May 2024 05:39:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715690352; x=1716295152; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dbXlzBH/tgYrFBCyUisyQ8qQWk7qwTAmwBpt4N4fjGo=; b=NH/ZYeJpdjMaLMgk1zoOJf5P82eJ/1NiHXjK8gtpuDNC2IUH4gY/pghsCcnFj176sR mj3GJ2tGUAmBPE2l1ufB/bMP59T2XAGx1ZxWMh7QKFOucofowVLQqVTdVcnreq+QuiuH 7zHQjAsG2R3tFi73AHmKEqCAE9cvSDUFG11tXOZCJGe71Z/QeOhasAhCoY6+VKK1vE1D Ern/WeQHhO89/mixaCOONw0eHvYs0C2rj//W8whxy2A3aiWKxK+hSZ6wTWPGOHRzTDDB ZezADbFVbOEFmdQ06dqX658v9VwNrM4DrTpwUvvW/KIXPG3U5n7oYf43q6t0N1UZDWCg ws6Q== X-Gm-Message-State: AOJu0YxJhw3KnFqg4fWeUO2Tc0sLR9idjRSQKlF/hrhs1Q2mVGsnAW0F lufF68e8lrXPM7oELucPWU1BzgIB8sb/ay4/xQNhpIf4K9Ajv2OVX6XgzLONEgg= X-Google-Smtp-Source: AGHT+IF6CnNTwThatTnPVoe6XiM2N7ZdNJjpONjLz6JaIpd3GTrV0bTX0CNrStigoE/EkzMu0Aw09Q== X-Received: by 2002:a17:906:c304:b0:a59:ccb9:846d with SMTP id a640c23a62f3a-a5a2d5d364bmr712327366b.37.1715690351368; Tue, 14 May 2024 05:39:11 -0700 (PDT) Original-Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com. [209.85.218.43]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17922159sm721421466b.97.2024.05.14.05.39.11 for <70929@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 May 2024 05:39:11 -0700 (PDT) Original-Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a59a387fbc9so31307966b.1 for <70929@debbugs.gnu.org>; Tue, 14 May 2024 05:39:11 -0700 (PDT) X-Received: by 2002:a17:906:c405:b0:a59:c319:f1e0 with SMTP id a640c23a62f3a-a5a2d681e12mr794099466b.75.1715690350854; Tue, 14 May 2024 05:39:10 -0700 (PDT) In-Reply-To: <87le4d55b7.fsf@betli.tmit.bme.hu> X-Gmail-Original-Message-ID: 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:285013 Archived-At: On Tue, May 14, 2024 at 1:30=E2=80=AFAM Felician Nemeth wrote: > > If I remember correctly, the LSP specification does not say where the > point should be after onTypeFormatting. Something like this motivated > the rust-analyzer developers to introduce their own SnippetTextEdit > extension. The upcoming LSP version is going to contain a slightly > different version of the SnippetTextEdit. > > If my memories are correct, Ada Language Server should use this > SnippetTextEdit to unambiguously communicate its intent here. (However, > Eglot does not currently supports SnippetTextEdit.) It was my understanding as well that they went out of their way to not indicate point location, however you end up with editors doing different things. Maybe the Ada LS should take a different approach here though, as you mention.