From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty 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 11:53:21 +1300 Message-ID: <9b0bd8fee0cb08997b2f0bcf79a785b9@webmail.orcon.net.nz> References: <9edad0d855d9f4618eb94f52c864670b@autistici.org> <83fsrgw6mu.fsf@gnu.org> <87v8yltad5.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24485"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: 52163@debbugs.gnu.org, iung@autistici.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 15 23:54:21 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 1n8rwD-0006EZ-JK for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jan 2022 23:54:21 +0100 Original-Received: from localhost ([::1]:52130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8rwB-0001n7-QZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jan 2022 17:54:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8rvy-0001mv-TT for bug-gnu-emacs@gnu.org; Sat, 15 Jan 2022 17:54:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8rvu-0001SM-4j for bug-gnu-emacs@gnu.org; Sat, 15 Jan 2022 17:54:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8rvu-0007HZ-56 for bug-gnu-emacs@gnu.org; Sat, 15 Jan 2022 17:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jan 2022 22:54: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.164228721727955 (code B ref 52163); Sat, 15 Jan 2022 22:54:02 +0000 Original-Received: (at 52163) by debbugs.gnu.org; 15 Jan 2022 22:53:37 +0000 Original-Received: from localhost ([127.0.0.1]:42213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8rvV-0007Gp-26 for submit@debbugs.gnu.org; Sat, 15 Jan 2022 17:53:37 -0500 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:36727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8rvS-0007Gf-SN for 52163@debbugs.gnu.org; Sat, 15 Jan 2022 17:53:35 -0500 Original-Received: from [10.253.37.70] (port=27120 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1n8rvF-0004FZ-V2; Sun, 16 Jan 2022 11:53:22 +1300 Original-Received: from ip-139-180-65-103.kinect.net.nz ([139.180.65.103]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Sun, 16 Jan 2022 11:53:21 +1300 In-Reply-To: <87v8yltad5.fsf@gnus.org> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:224356 Archived-At: > Eli Zaretskii writes: > >>> * Reproducing >>> - Case 1: >>> emacs -Q >>> C-u 999 a >>> visual-line-mode >>> C-p C-a >>> C-e C-a >> >> 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. 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. 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. If I repeatedly press C-e, the cursor moves vertically down the first column of all those visual lines. Only the final visual line of the logical line will it move to the end. I'm seeing this in both 27.2 and GNU Emacs 28.0.90. Further testing indicates that the lack of any spaces in the wrapped visual lines is a factor. In a visual line with a space, the visual line will *end* with a space, and C-a will move to that. In this recipe there are no such spaces, and the problem arises. -Phil