From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54488: 29.0.50; move-to-column/overlay-related regression in latest master, perhaps 28? Date: Thu, 24 Mar 2022 17:29:25 +0200 Message-ID: <83ils3cqsq.fsf@gnu.org> 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> <83mthhe3rp.fsf@gnu.org> <87fsn9f07t.fsf@gmail.com> <83bkxweomr.fsf@gnu.org> <877d8jfl85.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39613"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54488@debbugs.gnu.org, dgutov@yandex.ru 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 Mar 24 16:33:26 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 1nXPSj-000A4X-QY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 16:33:22 +0100 Original-Received: from localhost ([::1]:40964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXPSi-0003iC-FX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 11:33:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXPSR-0003gF-R4 for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2022 11:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXPSR-0003an-I6 for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2022 11:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXPSR-0007P2-Fh for bug-gnu-emacs@gnu.org; Thu, 24 Mar 2022 11:33:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Mar 2022 15:33:03 +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.164813592628341 (code B ref 54488); Thu, 24 Mar 2022 15:33:03 +0000 Original-Received: (at 54488) by debbugs.gnu.org; 24 Mar 2022 15:32:06 +0000 Original-Received: from localhost ([127.0.0.1]:49210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXPRW-0007Mw-73 for submit@debbugs.gnu.org; Thu, 24 Mar 2022 11:32:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXPRR-0007M0-7i for 54488@debbugs.gnu.org; Thu, 24 Mar 2022 11:32:01 -0400 Original-Received: from [2001:470:142:3::e] (port=58910 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXPRL-0003J2-Qm; Thu, 24 Mar 2022 11:31:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=5DBAIzp+8G7ItKNTXTALBVI1tkR/Y44UDkTQtR/LyGw=; b=LOFbGbRc53Ip634aDJxx 7q4X+0R8zOVeTAgxkaeS/bUI8cgZA07WqGBsq3BrdX0ilTTD0IpoH7Rz5eWZn+fOozBL75QNQagwA S8DtI+fJzVajrPBuKf64/IgEVHw5gSJh6LVI6B+0Nrkxox7HDkRscfN96BZzMHOWGXKiViVwU3Yji lD5fhLImuP/tCgIhPqsae74wdVQdC1nHQRNLiAZz2s0PuIBQMnchamHLrTsQKMqPPeWCZ7Xl0nlXE wXpx+mCVQMMb7sbkm0yrnEzhg149mOk/Gq2XB+jQYLvX9hv7tWzjSxZnfETmEsWOP75eE3Q5HTIws fHOquXjkOWxR7Q==; Original-Received: from [87.69.77.57] (port=1451 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXPP2-0001Aq-7t; Thu, 24 Mar 2022 11:29:32 -0400 In-Reply-To: <877d8jfl85.fsf@gmail.com> (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Thu, 24 Mar 2022 15:01:30 +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" Xref: news.gmane.io gmane.emacs.bugs:228880 Archived-At: > From: João Távora > Cc: dgutov@yandex.ru, 54488@debbugs.gnu.org > Date: Thu, 24 Mar 2022 15:01:30 +0000 > > Eli Zaretskii writes: > > > I see that you had problems reconciling the LSP idea of "columns" with > > that of Emacs. If LSP indeed works in UTF-16 (I don't know, but I > > have no reason to doubt that), then I think your solution is decent, > > although actually encoding stuff could be overhead: after all, whether > > a given codepoint takes 1 or 2 UTF-16 code units can be easily > > established by looking at the codepoints themselves. But that's an > > optimization. > > An interesting one, though. I think I follow. Is there some easy way > in Emacs to measure how many UTF-16 code units a given codepoint takes? That's easy: any codepoint above #xFFFF needs 2 UTF-16 code units. > I'm afraid I evicted this knowledge from the cache since I made that fix > 2,5 years ago... Is a "codepoint" here a character in a string/buffer? Yes.