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: Wed, 07 Aug 2024 14:07:45 +0200 (CEST) Message-ID: References: <86cymosmh6.fsf@gnu.org> <86mslooav5.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="38878"; 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 Wed Aug 07 14:42:04 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 1sbfzO-0009vz-Mx for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Aug 2024 14:42:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbfz6-0002eJ-Ms; Wed, 07 Aug 2024 08:41:44 -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 1sbfyz-0002Hu-ST for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 08:41:39 -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 1sbfyz-0005Da-Ji for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 08:41:37 -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=dTF86kj+sIn0Q1ZCROjkSm5szPW7dQc/a47SGYfC5OE=; b=vDQqJqVqgj1Hfpszs+/zivqBgMf21kq0LNWWXgmvdNUd6dBn01aUPx38FfK49D4RIvSv2tSug9FMJ1hFKs0+wR02hrTuffyK90RzrQA5Wntm7e5OeIcY/MO3EWEn3/a+BUR1QaTTpNKi1HRw5u2GnhuLlE7krCLacYK0Sj1o3+Kp4o0NUz4tx6m1AWMXCn2baaeW3EU+i7jTGGhHwbLGh+Xkt+SSz1iuMlhHsfXkEIir4dRdm3uF7Yr27OfaiT9OUzp96q7SIPo5d7hu7D0vrii2oeyYfZYl4FgT8CkoKs4W0SqwSWEiCUoSuxQgRAONFvFLaEpPQc5S64Mwha4bRQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbfzO-0004TD-DN for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 08:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Martin Edstrom" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Aug 2024 12:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72420 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 72420-submit@debbugs.gnu.org id=B72420.172303450017147 (code B ref 72420); Wed, 07 Aug 2024 12:42:02 +0000 Original-Received: (at 72420) by debbugs.gnu.org; 7 Aug 2024 12:41:40 +0000 Original-Received: from localhost ([127.0.0.1]:33921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbfz0-0004ST-P6 for submit@debbugs.gnu.org; Wed, 07 Aug 2024 08:41:39 -0400 Original-Received: from mailtransmit04.runbox.com ([185.226.149.37]:60028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbfUu-0003Wp-Jd for 72420@debbugs.gnu.org; Wed, 07 Aug 2024 08:10:33 -0400 Original-Received: from mailtransmit02.runbox ([10.9.9.162] 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 1sbfSJ-00FiPj-7B for 72420@debbugs.gnu.org; Wed, 07 Aug 2024 14:07:51 +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=dTF86kj+sIn0Q1ZCROjkSm5szPW7dQc/a47SGYfC5OE=; b=SUyMcyWiipqjzsivp0xR/DrrWa zw7rTNYrtDP1TLx4JU4m6q4cqjbyZJCM/vn0UX/PMRBretjKNUKKKKl9pvyc7ZIUdin5YVtIg/LPJ vs8RcZBNLuUCd6tg/ViS99go2MUki0soDqx4Q0/quty6WTHx1jsqVlHC0X88WaxDReaqjHXFRXEOB lxKAzfupinrBLTIYJaOHGVKYVzWBUHmoVONvMn8Soww5caDK2fHjSL4CY/pnr2wUXEc22uzb7f7Bp 5d9+k+ICQxLP+h3hYgrWEvRnq6j2AgNVsuuI9FEr+l34usq/iSqod10SaNxhYV/lV6W94BX9vski8 Ah4gNkMw==; Original-Received: from [10.9.9.127] (helo=rmmprod05.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1sbfSI-0008G1-JK; Wed, 07 Aug 2024 14:07:50 +0200 Original-Received: from mail by rmmprod05.runbox with local (Exim 4.86_2) (envelope-from ) id 1sbfSD-0007Kv-H4; Wed, 07 Aug 2024 14:07:45 +0200 Content-Disposition: inline Original-Received: from [Authenticated alias (1196375)] by runbox.com with http (RMM6); Wed, 07 Aug 2024 12:07:45 GMT X-RMM-Aliasid: 1196375 X-Mailer: RMM6 In-Reply-To: <86mslooav5.fsf@gnu.org> X-Mailman-Approved-At: Wed, 07 Aug 2024 08:41:37 -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:289880 Archived-At: But, it's odd that visual-line-mode does not affect it for you - it does fo= r me.=20 If I leave visual-line-mode off, then I get the behavior I expect (i.e. set= -goal-column at column 2 is treated as column 6), which is useful. Turning= it on causes the command to behave in a way that is not useful, as I descr= ibed. Martin Edstrom On Wed, 07 Aug 2024 14:01:18 +0300, Eli Zaretskii wrote: > tags 72420 notabug > thanks >=20 > > From: "Martin Edstrom" > > CC: "72420" <72420@debbugs.gnu.org> > > Date: Tue, 06 Aug 2024 16:10:09 +0200 (CEST) > >=20 > > Alright, I keep being mistaken about the reproducibility of my bug repo= rts, but I'm reasonably sure the following steps are reproducible. >=20 > I think they are, thanks. >=20 > > Step 3: Run M-x visual-line-mode. >=20 > Note: I get the same behavior without visual-line-mode, so I think > this Step 3 is not needed. >=20 > > 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. > >=20 > > Now I would expect moving point upwards with C-p any number of times sh= ould still make point land on the text after the list bullet, but the goal = column actually seems to be offset in some way influenced by the line prefi= x. Even using C-n to come back to the line that has "z....." does not place= point on the same position as when you started out. >=20 > Yes, the column is offset by the line-prefix, because line-prefix is > not considered to be part of the text-area. You can see this already > when you type "C-x C-n" in Step 4: Emacs says the column at "z" is 2, > not 6. >=20 > This is the intended behavior, so there's no bug here.