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 14:01:18 +0300 Message-ID: <86mslooav5.fsf@gnu.org> References: <86cymosmh6.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31726"; 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 13:02:19 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 1sbeQs-00087F-TI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Aug 2024 13:02:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbeQh-0000NR-1W; Wed, 07 Aug 2024 07:02:07 -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 1sbeQD-00082o-Gw for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 07:01: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 1sbeQD-0005DD-6u for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 07:01:37 -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=FgWn7LWic/qIZ6pPWwyi/RpCSn8RM0bifGiqhcgCPyo=; b=kLj7i4DcioJM4GJvFzvjder3XFRZXHcuGZWz5TP210ZDPGP75XfnlRSNtF7aAm7tMH2t0ZeaaPj/uXXjynO1tZHrPpnSwydwcKCdwSlnV/CRTLpvamegsBf4WDbSCskjAyvMPRA8KpUxRahOmG5fL2VJIMCxhVj4W+K7D7W4vi4gmr2waFjk2T1C3YMCoZmjitW0xhlHzphbIo4FE7XupNFVYP1KbZP82w+qlYMNPHmxTWvSPM1kEcDNQkazfte5dFecPV8/Ig6wKb4+tFki7QpKuZJ8DN/4Aqh6VcrS3PMoiKeEJiL9sLBvWQfHbnP46IADVqgJRvTL1UyMxpwZpQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbeQb-0001GS-VW for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 07:02:01 -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 11:02: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.17230285164839 (code B ref 72420); Wed, 07 Aug 2024 11:02:01 +0000 Original-Received: (at 72420) by debbugs.gnu.org; 7 Aug 2024 11:01:56 +0000 Original-Received: from localhost ([127.0.0.1]:33785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbeQV-0001Fy-OG for submit@debbugs.gnu.org; Wed, 07 Aug 2024 07:01:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbeQT-0001Fg-J8; Wed, 07 Aug 2024 07:01:54 -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 1sbePy-0005C9-By; Wed, 07 Aug 2024 07:01:22 -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=FgWn7LWic/qIZ6pPWwyi/RpCSn8RM0bifGiqhcgCPyo=; b=Fr/nJ0Tw2UWp aHijJeyQkgrCrFHir35J5ygtcRaUXAGjCn7BTztDPLgPASirs4TwkmL70RedPSJ0M/cQkblwTWeKs AEhSoF59Dd5lF3Fj+3mb1tRV9eWcQ8oteAXTx9Z46eycIhwY+oSUzC35/zv3edTCheZekqgvGCkTU O9mRu4CnHLtGcGqWSkvQoVH11eJEtkDZ2YFhOLqnoJCgmVbcwesLQ9PuNYrdjpTkknmGpYjrAY5Oi WMosNbxUpOkwqxDDBVyL+zEWpE18oXK5k7AiThLl7HHdi660TK6J8XtVKDnss27IFkwYzbNk7Wg/C NZ08+bm5rI94G6RGq6k5LA==; 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:289871 Archived-At: tags 72420 notabug thanks > From: "Martin Edstrom" > CC: "72420" <72420@debbugs.gnu.org> > Date: Tue, 06 Aug 2024 16:10:09 +0200 (CEST) > > Alright, I keep being mistaken about the reproducibility of my bug reports, but I'm reasonably sure the following steps are reproducible. I think they are, thanks. > Step 3: Run M-x visual-line-mode. Note: I get the same behavior without visual-line-mode, so I think this Step 3 is not needed. > 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 column actually seems to be offset in some way influenced by the line prefix. 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. 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. This is the intended behavior, so there's no bug here.