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#52163: 28.0.60; visual-line-mode breaks C-a and C-e in extreme case Date: Sun, 16 Jan 2022 09:22:05 +0200 Message-ID: <42F16660-8FDC-499E-896B-D7DABDC59FD8@gnu.org> References: <9edad0d855d9f4618eb94f52c864670b@autistici.org> <83fsrgw6mu.fsf@gnu.org> <87v8yltad5.fsf@gnus.org> <9b0bd8fee0cb08997b2f0bcf79a785b9@webmail.orcon.net.nz> 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="28310"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: 52163@debbugs.gnu.org, iung@autistici.org To: Phil Sainty , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 16 08:23:37 2022 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 1n8zt2-00078H-6k for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jan 2022 08:23:36 +0100 Original-Received: from localhost ([::1]:60130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8zt0-0005qr-Pc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jan 2022 02:23:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8zsU-0005pp-Fo for bug-gnu-emacs@gnu.org; Sun, 16 Jan 2022 02:23:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8zsU-00065v-6Y for bug-gnu-emacs@gnu.org; Sun, 16 Jan 2022 02:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8zsU-0006As-3X for bug-gnu-emacs@gnu.org; Sun, 16 Jan 2022 02:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jan 2022 07:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52163 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 52163-submit@debbugs.gnu.org id=B52163.164231773723656 (code B ref 52163); Sun, 16 Jan 2022 07:23:02 +0000 Original-Received: (at 52163) by debbugs.gnu.org; 16 Jan 2022 07:22:17 +0000 Original-Received: from localhost ([127.0.0.1]:42391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8zrk-00069U-Mr for submit@debbugs.gnu.org; Sun, 16 Jan 2022 02:22:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8zrj-00069G-93 for 52163@debbugs.gnu.org; Sun, 16 Jan 2022 02:22:15 -0500 Original-Received: from [2001:470:142:3::e] (port=44140 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8zrc-00062I-5i; Sun, 16 Jan 2022 02:22:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Subject:To:From: Date; bh=CLT0pSv9/GmA+kjhzT9xHS7Qt6CA4MjsAq4eyxyXHQM=; b=nR2JHw8wDAYF0VZ1ZwLE gDyG6aHNrj4dCmyx8cPt01sCP1W1JAyl0Jvj4izTL9yCWrEIk37rPS4EHJLqqbzFBpRsM+dda/nY3 XKPxvtA9egrzx4D69s+6Usy5WXtgS9APZC6XaU88tBTdGaxZ8I5suFl9QpKb5Rz7bC+V8lf9sCOtT W8dhh85592by8V0QRFFKpPWW6IywPVr5aJn7tUfAuqgBaUbb8Cugp/oE9BHxzGATJb7wS259zGOXV fRDBu/L7tWape6v/w+bDycNGj5LrppnQBjV5NHqQoXe4I1cQZoYKk/xKfdXwuCu9cDFdmRtTx7nfO Ktt+g9a9L+MtEA==; Original-Received: from [2a02:14f:1f8:e330::2306:db58] (port=34092 helo=[IPv6:::1]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8zrb-0005by-Hu; Sun, 16 Jan 2022 02:22:08 -0500 In-Reply-To: <9b0bd8fee0cb08997b2f0bcf79a785b9@webmail.orcon.net.nz> Autocrypt: addr=eliz@gnu.org; keydata= mQENBF+pf4UBCAC6vjkWLSAsQpe8YIGKLQzNOJx/IjGtCdFF8uzmO5jmME+SD8ROuJN+t5KXVw58 uzu75EFD0vHTY9e+udJ2gkpuy0NnzkFcbumdLLo2ERKCoSctZZRhzKXI5z5cHxCqW0B2ygHRrRLt oNlGID7bAgcgSViT1ptGqTXO7zGVu4Airok7dNzcPtHgns8GlR5YAFX0TvE6oGd0l2VPghNeVJKJ OjrbfhoDxl3ucFpqbqMH8z9HTLDOFpz8UaYYUdJMi3xX6vwTZxI2sM2RRVLUpZyllAkSMI4lln1O OgazM/62DJUs/rKIHKBnF6h3/qsJUjUYXaAHbrXY26mWllAd536lABEBAAG0I0VsaSBaYXJldHNr aWkgKGVsaXopIDxlbGl6QGdudS5vcmc+iQE4BBMBAgAiBQJfqX+FAhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgAAKCRCRwSYvAeuNOYUQB/4/iIKKOG45ijNaRoTvmJJZMvj1S07WQxEm7c5SHEeE QbLOAxB9vESOV7sLueuN3oqEndtzyYt4x1WTSBmHFF7h5fcCMjBs41siOIp5Sj/xD0Bvaa0IKGCR SZ7PAo8Mq3wgajXpTpn9vxE2PmtzA8KdEE0K1+f9pVAfOpUIcCl44rIxLUW352XG0y7iz6c/O6LB 1deOKMiKFctKO7pBti1dJEm1ImewLH3H8uTbwspLOs3EB8xhsESxmTidnze68HX2jt+2EeMgCdki NU+LWbexQZPfIS7+ZmE06ll0v6+Jy7ZdTkCCRypKWTnW7pIFsq/p4kybV8O/kHSV6B4vvQBfuQEN BF 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" Xref: news.gmane.io gmane.emacs.bugs:224366 Archived-At: On January 16, 2022 12:53:21 AM GMT+02:00, Phil Sainty wrote: > > Eli Zaretskii writes: > >=20 > >>> * Reproducing > >>> - Case 1: > >>> emacs -Q > >>> C-u 999 a > >>> visual-line-mode > >>> C-p C-a > >>> C-e C-a > >>=20 > >> What are the problems you see in this recipe? Please be specific, > >> because it could be that what you see on your system we cannot see > >> on ours=2E >=20 > I just tried that recipe, and with visual-line-mode (and > line-move-visual) enabled C-e certainly doesn't behave how I'd expect=2E >=20 > Rather than C-e moving to the end of the current visual line, if the > current visual line wraps then it moves to the beginning of the next > visual line=2E If I repeatedly press C-e, the cursor moves vertically > down the first column of all those visual lines=2E Only the final > visual line of the logical line will it move to the end=2E >=20 > I'm seeing this in both 27=2E2 and GNU Emacs 28=2E0=2E90=2E >=20 > Further testing indicates that the lack of any spaces in the wrapped > visual lines is a factor=2E In a visual line with a space, the visual > line will *end* with a space, and C-a will move to that=2E >=20 > In this recipe there are no such spaces, and the problem arises=2E Where do you want Emacs to place the cursor when there's no whitespace at = end of visual line? IOW, before declaring that there is a problem, please be sure to consider = any reasonable solutions=2E