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#67470: 29.1; move-end-of-line behaves badly with eglot type annotations Date: Mon, 27 Nov 2023 13:38:56 +0000 Message-ID: References: <8534wsxf1b.fsf@gmail.com> <837cm39xxu.fsf@gnu.org> <83v89n8he0.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="14857"; mail-complaints-to="usenet@ciao.gmane.io" Cc: matthewktromp@gmail.com, 67470@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 27 14:40:14 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 1r7bqP-0003eU-JB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Nov 2023 14:40:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7bq9-0006W7-Sw; Mon, 27 Nov 2023 08:39:58 -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 1r7bq8-0006Vy-Jy for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2023 08:39:56 -0500 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 1r7bq8-00052Q-CA for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2023 08:39:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7bqD-0008HI-UC for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2023 08:40:01 -0500 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: Mon, 27 Nov 2023 13:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67470 X-GNU-PR-Package: emacs Original-Received: via spool by 67470-submit@debbugs.gnu.org id=B67470.170109236531764 (code B ref 67470); Mon, 27 Nov 2023 13:40:01 +0000 Original-Received: (at 67470) by debbugs.gnu.org; 27 Nov 2023 13:39:25 +0000 Original-Received: from localhost ([127.0.0.1]:43536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7bpc-0008GF-PQ for submit@debbugs.gnu.org; Mon, 27 Nov 2023 08:39:25 -0500 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:58804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7bpa-0008G1-60 for 67470@debbugs.gnu.org; Mon, 27 Nov 2023 08:39:22 -0500 Original-Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-507be298d2aso5723588e87.1 for <67470@debbugs.gnu.org>; Mon, 27 Nov 2023 05:39:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701092349; x=1701697149; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7DbbJOlpjJZDVwIT/291oDXhnsfsjgRJdU+bDsYe7WI=; b=E7T07IIsayM951NBwNfGb3KMXsI1Cb152g9rb0QB8IKX9t2h2wfrYIbL+1KdEk+XFF sSzcPhSdGIcpFh7W/nWTGf769ZuyzH7OhEthuom9wtMq30B1XR6ibmbR7ChBwQJ6cAb9 oNrBfSpVNT2ijaMSz9rjoZ5ChB80Kw9wbrna/tFd4GPW6HwdsND/txre9iuBwmYc2hw9 Rip7x1vzPlHFYas1j7z2iUGK4k6jD/thBQIxYUfMZ35RY4uAjdExCHUc8HKR7znBcf7T tckAR7RL7QBg+ehAwgOR/c1AaNZrbraprLPkLx3cvG1gxKt4wEv0Z91MLdVFT/7UA98d Ulpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701092349; x=1701697149; 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=7DbbJOlpjJZDVwIT/291oDXhnsfsjgRJdU+bDsYe7WI=; b=YB97h+NZsiqR08qJiYZ3a3BeCXDYrju23OiRyH2edrxY4a697kNLic3Qi6wGHA3ds6 57JYYSshVu8uWT+N+nOF9ogTyhGF3p0KsafShU7x+tF0SvOH/1GhrhMt4X7tC0QfFT2j iQ2rrYolT3rBRUwH1TAvXG6WXcR8LuBH+XOxzrvFrinEEiYSrWAaUe6h2h+42OaEhRyz 7xHsb8DEeoaJxhgVNxy3GKZS/A7QVJwllK7lCIM6/1y6BQYh/ILJLU7R2ccy8Hbcr8Lj XAUwCVIYp3ZjIh6Yqifqyi04EhdywKM005nKWSSjA6esbjrXCtTV30zhJOakPCvTM7Dy fO3Q== X-Gm-Message-State: AOJu0Yw6MJ2QGysFSmTaAMBMzp1g8OmiHyiTZhn1Y/FS4qvJzD+s1lPW GLebcQHehJCt6FvBfvPfqREJYjvmCCAJpi3K/ww= X-Google-Smtp-Source: AGHT+IFKVDP0kragKkpQqWPVITq3pmpUSPKP8SBa40zdh+kmquFkJmdahRvrxqFGV/GRDL05+MeC3Q2w9MhjeanR1gg= X-Received: by 2002:a05:6512:2210:b0:500:7cab:efc3 with SMTP id h16-20020a056512221000b005007cabefc3mr9331944lfu.11.1701092349306; Mon, 27 Nov 2023 05:39:09 -0800 (PST) In-Reply-To: <83v89n8he0.fsf@gnu.org> 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:275126 Archived-At: On Mon, Nov 27, 2023 at 1:18=E2=80=AFPM Eli Zaretskii wrote: > > > From: Jo=C3=A3o T=C3=A1vora > > Date: Mon, 27 Nov 2023 13:02:36 +0000 > > Cc: matthewktromp@gmail.com, 67470@debbugs.gnu.org > > > > I have reproduced this. I can even add the following curious example > > > > some code aaaaaaaaaa > > here are|some more lines which do not have annotations > > > > Press C-p, get > > > > > > some cod| aaaaaaaaaa > > here are some more lines which do not have annotations > > > > Which looks like just what you would get if you had pressed C-e > > in the first line. Now type C-n. > > > > some code aaaaaaaaaa > > here are|some more lines which do not have annotations > > > > Which is exactly what you expect. So, the manner in which > > one arrives at the end of the line matters. > > > > > Jo=C3=A3o, how are those annotations shown? > > > > With 'before-string' and 'after-string' properties, as you > > guessed. > > I'd appreciate an example I could play with that doesn't need Eglot. > I'm not sure we can fix this, but I'd like to understand better what > gets in the way before I decide. > > Thanks. You can try in the scratch buffer with your own overlay at the end of the line with a before-string property that has the 'cursor' property set to 1 at the first character. Jo=C3=A3o