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#72420: set-goal-column misbehaves with a line-prefix and visual-line-mode Date: Wed, 07 Aug 2024 17:29:03 +0300 Message-ID: <8634ngo18w.fsf@gnu.org> References: <86cymosmh6.fsf@gnu.org> <86mslooav5.fsf@gnu.org> <865xsco783.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14781"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72420@debbugs.gnu.org To: "Martin Edstrom" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 07 16:29:48 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 1sbhff-0003gz-4k for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Aug 2024 16:29:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbhfX-0008J4-GB; Wed, 07 Aug 2024 10:29:39 -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 1sbhfV-0008Ec-9B for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 10:29:37 -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 1sbhfU-0003pC-V9 for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 10:29:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=4nuPy8ib2NNyWxWOae3jvUfqOwHUNMwq8DvGTN+uZpE=; b=cQaJ8xh9Vg/nSpDgscSrBJpQh5La1YHO+9+qPyMQ//fw+naR0g96a8b80FvRjOWjDM9Q97w2OmS8bhuhA59WjgIlsPDToYzzXNC/DPpp1zXfXGTzsejiVo4vLVZavgsjdglqsoR/27urBxyxdotEPWxQafW4/Z6L70tJ5Efjs6M3OA7ziH2dZd8exQQd1Qa0vu09OW6ZRMr7ifZQHcFcAsQGJMRHTS8h/JtL5pWwsQUqEROuYt8htFY3zOT9ZDgtzvxeAkgVvsBoHXP/OYzyiqqQ1c7K2dXwYmqoZNawBRXq777ypZkg6ZGR9LbEH2UAbVJLfo0QZhU8ONm7zUKxvQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbhfu-0008WM-6R for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 10:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Aug 2024 14:30: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.172304098232690 (code B ref 72420); Wed, 07 Aug 2024 14:30:02 +0000 Original-Received: (at 72420) by debbugs.gnu.org; 7 Aug 2024 14:29:42 +0000 Original-Received: from localhost ([127.0.0.1]:34865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbhfZ-0008VC-R5 for submit@debbugs.gnu.org; Wed, 07 Aug 2024 10:29:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbhfX-0008Uu-FP for 72420@debbugs.gnu.org; Wed, 07 Aug 2024 10:29:40 -0400 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 1sbhf1-0003hu-Fa; Wed, 07 Aug 2024 10:29:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4nuPy8ib2NNyWxWOae3jvUfqOwHUNMwq8DvGTN+uZpE=; b=Kvq+pcoXLWwR X7NbWVeP2JrxdWBdlqBHHGqN/yfk2sQwCEhpKi2JsmPCT2vGm6f5qriseLpHZ247tKv4+LilmmN2T Z4NJbDkSYkLpV/yQpkp03LRHbdfW1b22SCFC9cmMkOjuErvdfjmTkQ677pS53+n7D+4HVn68FiHi/ IV3OlwcCddBU128iciEe25qgQgnmX+vSJNoeVUvNj5T+ReEFK86dswI0cGtc5AgHkFxLXn4orb1wf OPlKUBjjkZk8ZDrVzlIbSHGCckU60024/zsDFeeiwI2ZXrUP0nqlXHdEmxkKgpPv29xO2Wi5cqF1K wg8jigQuLzUukybFD2kNaw==; In-Reply-To: (meedstrom@runbox.eu) 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:289888 Archived-At: > From: "Martin Edstrom" > CC: "72420" <72420@debbugs.gnu.org> > Date: Wed, 07 Aug 2024 16:03:40 +0200 (CEST) > > > > From: "Martin Edstrom" > > > CC: "72420" <72420@debbugs.gnu.org> > > > Date: Wed, 07 Aug 2024 14:07:45 +0200 (CEST) > > > > > > But, it's odd that visual-line-mode does not affect it for you - it does for me. > > > > > > 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 described. > > > > If you leave visual-line-mode off, then type C-p twice from "z", don't > > you see point go to the 3rd "*" of the line "**** h4"? And if so, > > isn't that what you meant by "the goal column actually seems to be > > offset in some way influenced by the line prefix"? Or did I > > misunderstand what you consider a problem in the existing behavior? > > Indeed, on that line, the behavior is the same with and without visual-line-mode, going to the 3rd "*". > > However if I go up to a list item such as "- x...........", I observe different behavior. With visual-line-mode, point ends up on the bullet, not on "x". > > That is surprising, no? Not to me, it isn't, but then I've hacked on that code too much... Anyway, the problem is the difference in behavior between visual-line-mode on and off, and you consider the behavior with the mode off as correct? Because this was not what your original report said, AFAICT.