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#66942: move-to-column behavior when newlines have a display property Date: Sun, 05 Nov 2023 07:59:45 +0200 Message-ID: <83cywo4u5q.fsf@gnu.org> References: <87zfztkvyq.fsf@nixos.mail-host-address-is-not-set> 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="9204"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66942@debbugs.gnu.org To: Sebastian =?UTF-8?Q?W=C3=A5linder?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 05 07:00:43 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 1qzWBf-0002Cz-9A for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Nov 2023 07:00:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzWBP-0006Gw-Qn; Sun, 05 Nov 2023 01:00:27 -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 1qzWBN-0006GS-N5 for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 01:00:25 -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 1qzWBN-00004w-E2 for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 01:00:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzWBx-0005sW-VQ for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 01:01:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Nov 2023 06:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66942 X-GNU-PR-Package: emacs Original-Received: via spool by 66942-submit@debbugs.gnu.org id=B66942.169916404822553 (code B ref 66942); Sun, 05 Nov 2023 06:01:01 +0000 Original-Received: (at 66942) by debbugs.gnu.org; 5 Nov 2023 06:00:48 +0000 Original-Received: from localhost ([127.0.0.1]:36011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzWBj-0005rf-QO for submit@debbugs.gnu.org; Sun, 05 Nov 2023 01:00:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzWBi-0005rL-BL; Sun, 05 Nov 2023 01:00:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzWB2-0008GD-DV; Sun, 05 Nov 2023 01:00:04 -0500 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=SiZozH6B+io1GIOj7Tk4Wze4aPpigipG5BozQtRr/QI=; b=Ti+QNPutGhQKM7lSMf2e 4NUT0h0gmz+FVmmmev7LfqdQ/Ou86X7+WE5qgNz9ffvDNCN5Tzfgi3OhOqiM7OZhDv3erjHF9jKN0 MjTOw60qonIWL2+S9dm1WCPPr5AA6hXg2VGaIT6efJ4v4qrbgfKezYD9pttjh6+Os3UuMcNc3z/rW HkxUcNP3n7ky1JYyjTo5m4tx7mnchOxR1bTA4QRImGxNqIUppn5i/OhNwOQy72572DEanqEGHy34H kVUk0NLi055YPODlEEC8OSe+/mNQAIMOdO929ooXIGQt+YVFZ3jfeB7Smlf3q07jUhoy3FmHg/A8I 6PQmOpk09ZSvcA==; In-Reply-To: <87zfztkvyq.fsf@nixos.mail-host-address-is-not-set> (message from Sebastian =?UTF-8?Q?W=C3=A5linder?= on Sun, 05 Nov 2023 09:14:05 +1100) 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:273803 Archived-At: unarchive 64988 forcemerge 66942 64988 thanks > From: Sebastian Wålinder > Date: Sun, 05 Nov 2023 09:14:05 +1100 > > There was a bug that I encountered in a downstream Emacs package relating to setting line-move-visual to nil and running line-move when the package has created overlays on newlines. > > The maintainer of the package has tracked down the bug to some incorrect behavior in the function move-to-column when overlays are present on newlines. > > Here's a link to the issue that describes the issue with move-to-column: > https://github.com/jdtsmith/indent-bars/issues/22 > > Thoughts? It's the intended behavior. It is the best Emacs can do given the limitations posed by such overlay strings, see the detailed explanation in bug#64988. My best recommendation is not to use overlay strings with embedded newlines, if accurate movement by columns is important.