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 15:19:56 +0300 Message-ID: <865xsco783.fsf@gnu.org> References: <86cymosmh6.fsf@gnu.org> <86mslooav5.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32282"; 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 14:21:00 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 1sbff1-0008C1-Lg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Aug 2024 14:20:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbfej-0007b9-O2; Wed, 07 Aug 2024 08:20:41 -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 1sbfeg-0007aq-9x for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 08:20:38 -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 1sbfef-0001yk-MB for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 08:20: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=/QHzIw4mJpHfYKXLLFUUZ9nezPlITNFRXeEhNHPF6Y4=; b=pbKZwDM66QmTBkjMZQ2MoDrI4s+z8mIq0kma4T2Xed87ZLlKIf0SqxVbyJhOdYV0RPQtTwzgzPDbRfaL6a9wbX0a4dsFb4virx2+j9Y0bZ9sMh7wTbyMA2AkRcVZWBwL2w1ry+Kl5WdHKqtUli9U7YAMNQ0AKvjkfedqbFKlv56Pj57VVNr078AGEOBahTbAAm/15GnpSc3Ff/S2MtcOZPB1KmcfR14G2soN73Dqm28DTXaS9ClaSanyTljCS+RdA25a/dkWnH+QkQDi6uBquI4u2aklIJt+at4dVVis1z2OyFYT/10PFYPT9if4X3ZEEiKVMV0w2N/VmvXc7hpPrA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbff4-0003qg-6r for bug-gnu-emacs@gnu.org; Wed, 07 Aug 2024 08:21: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 12:21: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.172303323514736 (code B ref 72420); Wed, 07 Aug 2024 12:21:02 +0000 Original-Received: (at 72420) by debbugs.gnu.org; 7 Aug 2024 12:20:35 +0000 Original-Received: from localhost ([127.0.0.1]:33917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbfec-0003pb-Le for submit@debbugs.gnu.org; Wed, 07 Aug 2024 08:20:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbfeb-0003pM-0N for 72420@debbugs.gnu.org; Wed, 07 Aug 2024 08:20:33 -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 1sbfe4-0001g9-NQ; Wed, 07 Aug 2024 08:20:00 -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=/QHzIw4mJpHfYKXLLFUUZ9nezPlITNFRXeEhNHPF6Y4=; b=rwNbnffHk8MB PEc7nTpWu04bTPsuYGKepod88YXoEPYUp2UZjtv85sPSW3Ffwp9B7a3ooLX6WgXCxPept2rq/PKl/ YoX9XOQVYIVlrW1viaFxqk7wwy9L9rznE6PDFPxTi+nAoeoYQlh0eD2YZrnbiGzikU/wL8+aD+/UG Lmul1+I20RtLxWV4dXpltQGBsO+kIoR8ORhuMBv1exZTMg2sfTIikzJxVTXIpxyHaMs+NnI+k3/p6 6ss6nqTK5oj6gyWOBV4M2MFPWslFBKZH0cfwXGiFA759BMVhZsriV6UViVWRWsEc2mPoZOvGzjxMT 4vwhGm0dtNUFMokC6xJTdQ==; 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:289879 Archived-At: > 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?