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: Mon, 20 May 2024 23:35:02 -0400 Message-ID: References: <86seykx66p.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="19916"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 70929@debbugs.gnu.org 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 Tue May 21 05:36: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 1s9GIg-0004yn-Ri for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 May 2024 05:36:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9GIH-0001W2-Ta; Mon, 20 May 2024 23:36:07 -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 1s9GIA-0001Vf-O4 for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 23:35:59 -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 1s9GIA-00022H-Fs for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 23:35:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9GIF-0001Do-36 for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 23:36:03 -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, 21 May 2024 03:36:02 +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.17162625334685 (code B ref 70929); Tue, 21 May 2024 03:36:02 +0000 Original-Received: (at 70929) by debbugs.gnu.org; 21 May 2024 03:35:33 +0000 Original-Received: from localhost ([127.0.0.1]:46594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9GHk-0001DV-TV for submit@debbugs.gnu.org; Mon, 20 May 2024 23:35:33 -0400 Original-Received: from mail-ed1-f41.google.com ([209.85.208.41]:54320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9GHe-0001DP-JC for 70929@debbugs.gnu.org; Mon, 20 May 2024 23:35:31 -0400 Original-Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-572e48f91e9so9022295a12.0 for <70929@debbugs.gnu.org>; Mon, 20 May 2024 20:35:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716262515; x=1716867315; 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=0Q39Ip6Y8SvSojDXppTXyG7yUz1mVLxviiwyr8WzofY=; b=DLI70uzoG4wbdY9kLz5MqQl07mjZd5jo6ATlDLcYz8sPU9iHhko+2L+qxaRCCebJHo bH1H4NwAdXtC0MDjPlXX6zW6MMSGb0h/9iniO6NEjYwZKDkZ/wfjIc3x7Rd6mzdTqq4d wzAeke/Jbp+dZGTXVTSPts3FAgzhoP1LZQYJV40Auma7yzBs1FdAn+V4XwC69EC7q0Ms feH5ceTcf789Etz6bTm0dJTnFmsv0Mf7aDT4O5K0mps1mAqEiyiX4r98jBs7zl/5VmG4 0mG6S9ZubgJimgh32VmXTdqxVh3m1jms9N069MlDztCu7lC4HD2+ecdli5yTKStUznEm SVvA== X-Forwarded-Encrypted: i=1; AJvYcCVQ6xfpNW9RN6LB98lK7CDI2hD6xNk6tdcs5Xr9rtu9F7DxPa999lL8aUqt3IX101htHJFy5LhMOAv33mcsBYZNtKH5kkI= X-Gm-Message-State: AOJu0YwFGPpkGDnJpzPUqVYG2sP2w9bqXDoExu71AtfqJ5YI9mfgBqXa w2itCwVL31YrFKrsSnAV3OTaJi6PEGZkdfzIOexQ0Oz07h5Cg4NHcSxO9Ph27t0= X-Google-Smtp-Source: AGHT+IF2bgdRi9eGRW2e1BLVFloWn/yMpy887MYdaUnS+CLC6w5RARGSq30JtPsW1b3MOZlAoEkd9Q== X-Received: by 2002:a17:906:aec2:b0:a5b:53e2:519e with SMTP id a640c23a62f3a-a5b53e26b4fmr1061561266b.26.1716262514755; Mon, 20 May 2024 20:35:14 -0700 (PDT) Original-Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com. [209.85.218.47]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b01602sm1562138066b.147.2024.05.20.20.35.13 for <70929@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 May 2024 20:35:13 -0700 (PDT) Original-Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a5a88339780so778969566b.0 for <70929@debbugs.gnu.org>; Mon, 20 May 2024 20:35:13 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVq239ztgqSJM1h+d9voX/I4eRKARHLi5g+anbbfDGFO541H+5D7jWMIjrMxMat9VzDbNxVHlpkDMIdlAw1Z6Q369eaMlc= X-Received: by 2002:a17:906:c111:b0:a5a:889c:1e38 with SMTP id a640c23a62f3a-a5a889c1ebbmr1488968366b.39.1716262513774; Mon, 20 May 2024 20:35:13 -0700 (PDT) In-Reply-To: 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:285514 Archived-At: On Tue, May 14, 2024 at 10:16=E2=80=AFAM Jo=C3=A3o T=C3=A1vora wrote: > > So I don't model Eglot after VSCode, and have never done so. I model it a= fter > LSP and my knowledge of Emacs. That's not to say that I will ignore > if you show here whichever solution VSCode uses for this (if anything). > According to the Ada Language Server developers, clients usually use a minimal diff algorithm for applying edits which allows the cursor to be put at the correct location. Apparently, this is what VSCode and GNATstudio both do. According to them, this is an issue in the LSP client, not in the server. See the issue response here: https://github.com/AdaCore/ada_language_server/issues/1197