From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Martin Edstrom" Newsgroups: gmane.emacs.bugs Subject: bug#72420: set-goal-column misbehaves with a line-prefix and visual-line-mode Date: Tue, 06 Aug 2024 16:10:09 +0200 (CEST) Message-ID: References: <86cymosmh6.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="35954"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72420 <72420@debbugs.gnu.org> To: "Eli Zaretskii" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 06 17:24:08 2024 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 1sbM2g-00098D-OU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Aug 2024 17:24:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbM2N-000410-Ay; Tue, 06 Aug 2024 11:23:48 -0400 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 1sbM2F-0003zv-6Y for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 11:23:40 -0400 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 1sbM2E-0005Mb-S3 for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 11:23:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:References:Date:From:MIME-Version:To:Subject; bh=W7KRh8zXfyp97/uvGIErurR7Qnr8jFrsawH6KAKCW+I=; b=aCLhUdUvXcI8Fefho1WgkJdqOiuVzRenx6d+7KWQ3qNJtrVQvIQevDIHvzIl9c+HaDDD0kzGnW8WLMwnIXMUM3uHe8lqj4ezAthfP6ybup26/ayH/+tahEkvOG2/LUscIbjYbDji9vOP2k/X98z0tDVYTakfBtb1gX5OKnaxgKPpiHhK8t/huF6pNaFi++Pu/CzGMzIkIkvdvT5Fkzy9BiJ4jKKpPorW5i/ykdeiApHWBnYZeEtXJ5y3ndr/gVJUKgkOBIeoxBBnXxJx11i29DtCdt0N5lCGMYMtujiVR8Gr3BeWUulNMF5OBV8cqmKhTTuNrwtFUnhD7825sjPd7A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbM2b-0000zV-O0 for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 11:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Martin Edstrom" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Aug 2024 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72420 X-GNU-PR-Package: emacs Original-Received: via spool by 72420-submit@debbugs.gnu.org id=B72420.17229578133744 (code B ref 72420); Tue, 06 Aug 2024 15:24:01 +0000 Original-Received: (at 72420) by debbugs.gnu.org; 6 Aug 2024 15:23:33 +0000 Original-Received: from localhost ([127.0.0.1]:32887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbM26-0000yE-7W for submit@debbugs.gnu.org; Tue, 06 Aug 2024 11:23:32 -0400 Original-Received: from mailtransmit04.runbox.com ([185.226.149.37]:53634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbKvk-0006y2-7n for 72420@debbugs.gnu.org; Tue, 06 Aug 2024 10:12:54 -0400 Original-Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1sbKt8-00DKGB-RC; Tue, 06 Aug 2024 16:10:10 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.eu; s=selector1; h=Message-Id:In-Reply-To:References:Date:Subject:CC:To:From: MIME-Version:Content-Transfer-Encoding:Content-Type; bh=W7KRh8zXfyp97/uvGIErurR7Qnr8jFrsawH6KAKCW+I=; b=Opa+zCIhMw3UNt8NHfOMXn3WIK Q+PWXkDvdX1xtJ6hrsV9LH6Jdme84AllJlUdrA8dRCHoniZ3NUEkQEzzb/IDpgRippbsKub7hc+iT HsP7e5Wm3pXhdqjJgS+Jc40bGPDNZvnF+AeC0ubHxXAe4/2eZibbBkyehPEhUuF6E+B0wUoGi65qV PNd0Pj6ZDi/9h+X/BZN5Tqnwmuh3b/tVm9mAe/gLP9w1Un5JEuWv1O1pOBi3JFNTeIIzzDkqDBwfh UJGil4yrxm/H1PZ0IV5NNsOLdLYjW3Uk6FfYOkie6ZWdlY4ydrST3F1qYVJYA2BJQCMkloZXp/uwi +eXQ9PyA==; Original-Received: from [10.9.9.127] (helo=rmmprod05.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1sbKt7-0006cF-C5; Tue, 06 Aug 2024 16:10:09 +0200 Original-Received: from mail by rmmprod05.runbox with local (Exim 4.86_2) (envelope-from ) id 1sbKt7-0001LN-9e; Tue, 06 Aug 2024 16:10:09 +0200 Content-Disposition: inline Original-Received: from [Authenticated alias (1196375)] by runbox.com with http (RMM6); Tue, 06 Aug 2024 14:10:09 GMT X-RMM-Aliasid: 1196375 X-Mailer: RMM6 In-Reply-To: <86cymosmh6.fsf@gnu.org> X-Mailman-Approved-At: Tue, 06 Aug 2024 11:23:29 -0400 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:289831 Archived-At: Alright, I keep being mistaken about the reproducibility of my bug reports,= but I'm reasonably sure the following steps are reproducible. Step 0: Start emacs -Q (emacs 29.4 if you have that version, Debian sid pa= ckage version 1:29.4+1-3) Step 1: Erase the scratch buffer, and paste this text: * h1 ** h2 - a.y......... - x........... *** h3 **** h4 - ....w....... - z........... Step 2: Use M-: to eval this expression: (progn (add-text-properties 12 13 '(line-prefix " ")) (add-text-properties 27 28 '(line-prefix " ")) (add-text-properties 57 58 '(line-prefix " ")) (add-text-properties 72 73 '(line-prefix " ")) (add-text-properties 12 13 '(display "=E2=80=A2")) (add-text-properties 27 28 '(display "=E2=80=A2")) (add-text-properties 57 58 '(display "=E2=80=A2")) (add-text-properties 72 73 '(display "=E2=80=A2"))) Step 3: Run M-x visual-line-mode. Step 4: Move point to "z", inside the last line, and type C-x C-n (set-goal= -column). Say yes to the disabled-command prompt. Now I would expect moving point upwards with C-p any number of times should= still make point land on the text after the list bullet, but the goal colu= mn actually seems to be offset in some way influenced by the line prefix. E= ven using C-n to come back to the line that has "z....." does not place poi= nt on the same position as when you started out. (Alternative reproduction steps: instead of step 2, use M-x org-mode RET M-= x org-indent-mode RET. That's how the bug was found.) Martin Edstrom On Sun, 04 Aug 2024 11:47:49 +0300, Eli Zaretskii wrote: > > From: "Martin Edstr=C3=B6m" > > Date: Fri, 02 Aug 2024 12:35:32 +0200 (CEST) > >=20 > > There remains a niggling issue related to bug 61580 ( https://lists.gnu= .org/archive/html/bug-gnu-emacs/2023-03/msg00094.html ) > >=20 > > Basically, reproduce that same setup. Now turn on M-x visual-line-mode = and try to use M-x set-goal-column (C-x C-n). It does not stick to the goa= l column you choose. >=20 > Thanks, but please show a full recipe for reproducing this, starting > from "emacs -Q". The original setup talks about an Org file(is that > part necessary?) and some added text properties with absolute buffer > positions, so I'd rather not guess how to repeat that. Please also > describe in more detail what you mean by "does not stick to the goal > column" -- which commands did you type that didn't honor the goal > column?=