From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uHJhKBJG7mPMbAEAbAwnHQ (envelope-from ) for ; Thu, 16 Feb 2023 16:04:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cEeFJxJG7mMNkgAAG6o9tA (envelope-from ) for ; Thu, 16 Feb 2023 16:04:50 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6A4D8D63E for ; Thu, 16 Feb 2023 16:04:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSfnO-0008IF-6I; Thu, 16 Feb 2023 10:03:38 -0500 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 1pSV00-0001PJ-E2 for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 22:31:56 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSUzy-0004L2-A4 for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 22:31:55 -0500 Received: by mail-pl1-x632.google.com with SMTP id b5so752554plz.5 for ; Wed, 15 Feb 2023 19:31:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=iaq59nbaT1msbd6MmKw21tIPt8ofEAg7WAg863V5swQ=; b=RHdEB3RQ9+Fcwzw7+7SWAuTMlWpim/Gj84xF74RHk9PdMOi4qd0rzKTVPjdvU/3XjJ cT4p+d8T7lTtkuWXzALlXSkhzM7nfgfyvsLnWgMoUPHRMPt+a0ByiMmCWCtPxyERo34z RD+1EpZWzBQCSz13YqR65ZwrJsQnn/bZayKtT1rS/xi3I2ZUXgLqutDiXCdMswE9pOOl psQHFIb7hVyWXbdITRDKSMWFu3eMWuFxXMWbGVTSYCZGbg2zJvIzvFY3BzMYNlvTZe/3 FxJbMmYbncLOzx3W3s7ZFsrFVDt5X2mXq6x5al8hE21VE17WH3HChyVbnZ4wycg04YDF +tdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iaq59nbaT1msbd6MmKw21tIPt8ofEAg7WAg863V5swQ=; b=bFzXMT6yqSxx4K8vqKqz9DQ9+k3y37KQ9wv8y77h2bxqRcblRcstlDgi6BS4lJ9qLe MSJdwiGZyHHixpiZFlKg4X7PK4YtcgZ/ROGf7Mm7PamI90FNRvaDaqMcWTMVEytspamk 5OJjE5BA17LtmLV6rwgpq76Qs9nABNcyllIJwAde5ptjjZHZyDSZc8fPjnkBz+orOCyG dUb+PVVvODfBcHOf/zgx35/dGlTh7GSpOQjSLvL1YrC1ql5E2VLk3FanfH3pOMYItkWD fqSn0uMZiwn2PNWvTuZo4oTT5s7Vcp8MUrqxc8H1jAI9xyOU7wWktVTea9b37dW8Fp6j /lZw== X-Gm-Message-State: AO0yUKVdnd7Tj2SPHOkqmAcV+KLgXZJu6J4fg1iueweT8/8jgcdLkHYC Oo2WxCjNKMva2AS8d4QI86G5Pz9FVj/5Ezgpf+Ah6bqcJsM= X-Google-Smtp-Source: AK7set8xsM+dOBhtE4NHjyzclFeWUrB4t1cbtGZOayzMXlWsPHq1JL+b1MVFH2N+GxLaK6h2neYP6ffKR50LaNYuBlM= X-Received: by 2002:a17:90b:1f8f:b0:233:3c5a:b41b with SMTP id so15-20020a17090b1f8f00b002333c5ab41bmr176884pjb.133.1676518311483; Wed, 15 Feb 2023 19:31:51 -0800 (PST) MIME-Version: 1.0 From: Darius Foo Date: Thu, 16 Feb 2023 11:30:00 +0800 Message-ID: Subject: [BUG] org-indent and display text property not preserving column when moving To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000006a5f6e05f4c8d65e" Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=darius.foo.tw@gmail.com; helo=mail-pl1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 16 Feb 2023 10:03:37 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676559890; a=rsa-sha256; cv=none; b=BHFO2XLXP6DtTrsXmf96D0d8kcvnxmJPsWx7qUjJFU+PVFB4Xc/IIJkN1g9qEv8G3UhGIp DFKCa8OL03f1hbIvNrEaVjnUcgS39PLltyauo4/JPomqbnE4n9WzjVBvTLLZE2QpO9plsZ IDA2edH+CJdD6xMcJl0jYBZ4ebaot3dOt5tcTNs0W/ofApmDdNBFvB3sNfIn9QeNlHNKIm WrO+YfI5pXiRnlvR+4mRhBlfJOmwyaCAJGLxDsI7kYVuKvRWfskPcYcL85H3pDXTngcppK VrA3lJAXJIBbjaIGAyl05GznrdZJ1kuORiMcS7d5JYEoJJs6VPVZI0TvHkI7tg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RHdEB3RQ; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676559890; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iaq59nbaT1msbd6MmKw21tIPt8ofEAg7WAg863V5swQ=; b=OLTiLjwaPEFb0d/w8ZFBOgKwKeYme7Xy6vswe8nu+SeItoXptfnaQoKxWlnYyVdDV9M2dA b0+AH+LS2a4Dhd3Qgax2zu5Kv+NeKPO+LeIGu9hNgOV7W27qWGZ7kPaTo88zXwdG5kxbji IchwIvQGnHGdy/mAXnM6ekuPdURfA9Hg9uNvj3eyFN2xVUwHpxJFw66kbvG1um8ckiGAyN NzNvxnrJCAJ6rz/7h2hKRA88Y8ENS65+V6tP2EIk4mL/+gawNaHPNcMq1ObST0qh3t++Lx zcCkM3ym3iyYIFhhJszEWxZMAKlQvhjDIUv+R9MyUkZkC07g8tvxRw4cL4egzQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RHdEB3RQ; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Spam-Score: -4.83 X-Spam-Score: -4.83 X-Migadu-Queue-Id: 6A4D8D63E X-Migadu-Scanner: scn1.migadu.com X-TUID: xVeEUo5AzlLn --0000000000006a5f6e05f4c8d65e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I've encountered what seems like a bug with org-indent. When I move the cursor using the arrow keys on lines with the display text property set, its column isn't preserved, jumping ahead or back by a fixed amount. This issue actually came up with org-modern, but I'm minimized it to the following. (use-package org :mode (("\\.org$" . org-mode)) :custom (org-startup-indented t) :config (font-lock-add-keywords 'org-mode '(("^\\(-\\)\\( \\)" 1 '(face nil display "=E2=80=A2"))))) Here is an org file to try it on. With the cursor on x, pressing up moves it to y instead of a, and pressing down moves it back to x. It seems like the amount moved depends on the indentation added by org-indent: with point on z, pressing up moves it to w. * h1 ** h2 - a...y....... - x........... *** h3 **** h4 - ........w... - z........... Thanks. Darius Emacs : GNU Emacs 28.2 (build 2, x86_64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.5.1 (Build 21G83)) of 2023-01-06 Package: Org mode version 9.6.1 (9.6.1-g74eb0f @ /Users/darius/.emacs.d/straight/build/org/) --0000000000006a5f6e05f4c8d65e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, I've encountered what seems like a bug with org-in= dent. When I move the cursor using the arrow keys on lines with the display= text property set, its column isn't preserved, jumping ahead or back b= y a fixed amount.

This issue actually came up with org-modern, but I= 'm minimized it to the following.

=C2=A0 =C2=A0 (use-package org=
=C2=A0 =C2=A0 =C2=A0 :mode (("\\.org$" . org-mode))
=C2=A0= =C2=A0 =C2=A0 :custom
=C2=A0 =C2=A0 =C2=A0 (org-startup-indented t)
= =C2=A0 =C2=A0 =C2=A0 :config
=C2=A0 =C2=A0 =C2=A0 (font-lock-add-keyword= s 'org-mode '(("^\\(-\\)\\( \\)" 1 '(face nil display= "=E2=80=A2")))))

Here is an org file to try it on. With t= he cursor on x, pressing up moves it to y instead of a, and pressing down m= oves it back to x. It seems like the amount moved depends on the indentatio= n added by org-indent: with point on z, pressing up moves it to w.

= =C2=A0 =C2=A0 * h1
=C2=A0 =C2=A0 ** h2
=C2=A0 =C2=A0 - a...y.......=C2=A0 =C2=A0 - x...........
=C2=A0 =C2=A0 *** h3
=C2=A0 =C2=A0 ***= * h4
=C2=A0 =C2=A0 - ........w...
=C2=A0 =C2=A0 - z...........
Thanks.
Darius

Emacs =C2=A0: GNU Emacs 28.2 (bui= ld 2, x86_64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.5.1 (Build 21= G83))
=C2=A0of 2023-01-06
Package: Org mode version 9.6.1 (9.6.1-g74e= b0f @ /Users/darius/.emacs.d/straight/build/org/)
--0000000000006a5f6e05f4c8d65e--