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#54488: 29.0.50; move-to-column/overlay-related regression in latest master, perhaps 28? Date: Wed, 23 Mar 2022 10:04:40 +0000 Message-ID: <87k0clf0hz.fsf@gmail.com> References: <87bkxzdccp.fsf@gmail.com> <831qyvfpv4.fsf@gnu.org> <83fsnbfd72.fsf@gnu.org> <8735jbc6gj.fsf@gmail.com> <6095582d-7065-8089-e8c7-857f070f8ce2@yandex.ru> <87y212b9nt.fsf@gmail.com> <83a6difahu.fsf@gnu.org> <835yo6f5tu.fsf@gnu.org> <834k3qf48k.fsf@gnu.org> <87r16uavhm.fsf@gmail.com> <83zglidnbs.fsf@gnu.org> <83y212dj2w.fsf@gnu.org> <83pmmde484.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="11452"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 54488@debbugs.gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 23 11:04:16 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 1nWxqg-0002nL-TG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Mar 2022 11:04:15 +0100 Original-Received: from localhost ([::1]:33608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWxqf-0002Dx-Ie for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Mar 2022 06:04:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWxqU-0002Di-GC for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2022 06:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWxqT-0001Yi-Pn for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2022 06:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nWxqT-0006F4-Ja for bug-gnu-emacs@gnu.org; Wed, 23 Mar 2022 06:04: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: Wed, 23 Mar 2022 10:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54488 X-GNU-PR-Package: emacs Original-Received: via spool by 54488-submit@debbugs.gnu.org id=B54488.164802982823973 (code B ref 54488); Wed, 23 Mar 2022 10:04:01 +0000 Original-Received: (at 54488) by debbugs.gnu.org; 23 Mar 2022 10:03:48 +0000 Original-Received: from localhost ([127.0.0.1]:42796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWxqF-0006EY-LY for submit@debbugs.gnu.org; Wed, 23 Mar 2022 06:03:48 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:38864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWxqD-0006EG-Qi for 54488@debbugs.gnu.org; Wed, 23 Mar 2022 06:03:46 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id t11so1330510wrm.5 for <54488@debbugs.gnu.org>; Wed, 23 Mar 2022 03:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=bsZFT7C8NWA8BcB+vzgTYxkG3V5/6yAMzuLVtUPfR6g=; b=aLqisHhfMOJvcGPKcETAHqVi/3UbusvdD3yx3xnxUy3L9s1tXrlFRaONzh3MsRfuUm yneJoDmCbdRZFGbu4yyZaVSd2kPJcbihsLa3hHIIEvKj2MQS0KI5xAYoqrnApeGIqAj6 g4fySLaOVWuDcjhUgXy+lB1prVkUmSWDlNqJNSAAm/pZGSmAAFmdY0YDmkpjWd4NtsQ8 iFRmdB/EsHRxndmEqEt9/jpU0DWwZw61I91mGAkLu2g2dl9WwnSMOKmDUFOofc8wZ6qg +VQek1uGjEcdB2nmC3MywIPfLsqsImPUuUDb1w7OJIZatz6Y9KjaHa4D+NT9Q+LI7jyp 8ivQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=bsZFT7C8NWA8BcB+vzgTYxkG3V5/6yAMzuLVtUPfR6g=; b=kLQQqDpWkyOOssFSvPeX/UemJXWrLvH5dFutJDLvqWQAz7LXOiaJlvWdAF8uJVmgh0 GUo16W7Kzx6oA9RYM+KrgCNQj/IVWbr9LpPKJoBwhxUJ3pwLsbI9znXZ8JuGlICWb+8r E/FhQcqHmPzB3NovYGhwASftCv2o/OS04rbKgGAXoFFGcJsH2O2KAzhTptKaQsNfYxx7 TGCkU+v9vykDld/oWkeFMEDA3ney9ndIkiPRR/2JeUJaDepolcaPJb60vBrHFekepqKO Um1xG0SPoTEIPDGwZV+QQRZ+61mVg8v4hZ43CsR50OoYvMYnnxEO4Q6TiHF2RUwn5IV9 +bSw== X-Gm-Message-State: AOAM530qQukKRwxuEaEaXZb6gHxciHDobs1ZmN7Hk3wAn66LAgRDoPbX ArvYbozyQVNUbqrtUOGAmMwkVkb68TKnjg== X-Google-Smtp-Source: ABdhPJw4oyqiTTlMmTlJBikWQ7Qb0rBI9rSZS9tdUsZAN6MAZZELYdYxIAkf2mj8sBgGkjlooVTDWA== X-Received: by 2002:a5d:510d:0:b0:203:f72e:ee24 with SMTP id s13-20020a5d510d000000b00203f72eee24mr20405933wrt.183.1648029819459; Wed, 23 Mar 2022 03:03:39 -0700 (PDT) Original-Received: from krug (87-196-72-45.net.novis.pt. [87.196.72.45]) by smtp.gmail.com with ESMTPSA id v8-20020a1cf708000000b0034d7b5f2da0sm3697238wmh.33.2022.03.23.03.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Mar 2022 03:03:38 -0700 (PDT) In-Reply-To: <83pmmde484.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 23 Mar 2022 05:29:31 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:228793 Archived-At: Eli Zaretskii writes: >> From: Jo=C3=A3o T=C3=A1vora >> Date: Tue, 22 Mar 2022 21:05:09 +0000 >> Cc: Dmitry Gutov , 54488@debbugs.gnu.org >>=20 >> > > do (condition-case eob-err >> > > (forward-char (/ (if (> diff 0) (1+ diff) (1- diff)) 2= )) >> > > (end-of-buffer (cl-return eob-err)))))) >>=20 >> I don't see how this could cause the problem you describe, but please >> note that encode-coding-region generally changes the text in the >> region, so maybe what you consider to be outside the restriction >> isn't? >>=20 >> I passed it t as the last argument, so it should be non-destructive to t= he buffer. > > But you do that in a loop AFAIU, so one iteration could affect the > next ones. But I'm just hand-waving here. I'm not doing it a loop for destructive effect. I'm doing it for measuring. If you're interested in the full 2018 story, it's https://github.com/joaotavora/eglot/pull/125.=20 =20 >> Anyway, do you have an example of text in which this function causes >> point to return such problematic values? >>=20 >> The only example I have is the one I described already, as best as I cou= ld. A user reported it to me, i installed >> clangd, and I reproduced it very easily. >>=20 >> If you could consider installing clangd then running that ready-to-use r= ecipe, I'd venture to say it's the easiest >> way for you to understand the problem. > > Sorry, not going to happen. Is it because it's a non GPL server, or just because you don't like to install LSP servers? Other LSP servers will probably have the same problem. > And I don't see why that would be necessary: the problem happens > entirely in Emacs Lisp, so the only thing we need from clangd is its > output that Emacs uses. Can't you or someone collect that and include > it in the recipe? Actually, I do have that, and a LSP could be built that simply replays those logs. But this is too complex. I guess if you could point me to (your?) commit that changed the behaviour in I can do the reproduction here and see the problem myself, when I have time. Jo=C3=A3o