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 22:58:34 +1300 Message-ID: References: <9edad0d855d9f4618eb94f52c864670b@autistici.org> <83fsrgw6mu.fsf@gnu.org> <87v8yltad5.fsf@gnus.org> <9b0bd8fee0cb08997b2f0bcf79a785b9@webmail.orcon.net.nz> <42F16660-8FDC-499E-896B-D7DABDC59FD8@gnu.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="6572"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: 52163@debbugs.gnu.org, Lars Ingebrigtsen , iung@autistici.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 16 10:59:11 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 1n92Jb-0001cU-KR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jan 2022 10:59:11 +0100 Original-Received: from localhost ([::1]:44178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n92Ja-0000Jt-KY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jan 2022 04:59:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n92JS-0000Jh-O3 for bug-gnu-emacs@gnu.org; Sun, 16 Jan 2022 04:59:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n92JS-0002d7-Ew for bug-gnu-emacs@gnu.org; Sun, 16 Jan 2022 04:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n92JS-0003wn-DC for bug-gnu-emacs@gnu.org; Sun, 16 Jan 2022 04:59: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: Sun, 16 Jan 2022 09:59: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.164232712315146 (code B ref 52163); Sun, 16 Jan 2022 09:59:02 +0000 Original-Received: (at 52163) by debbugs.gnu.org; 16 Jan 2022 09:58:43 +0000 Original-Received: from localhost ([127.0.0.1]:42495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n92J9-0003wE-BZ for submit@debbugs.gnu.org; Sun, 16 Jan 2022 04:58:43 -0500 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:49323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n92J7-0003w5-ON for 52163@debbugs.gnu.org; Sun, 16 Jan 2022 04:58:42 -0500 Original-Received: from [10.253.37.70] (port=60663 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1n92J0-0005Nl-9g; Sun, 16 Jan 2022 22:58:34 +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 22:58:34 +1300 In-Reply-To: <42F16660-8FDC-499E-896B-D7DABDC59FD8@gnu.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:224373 Archived-At: On 2022-01-16 20:22, Eli Zaretskii wrote: > 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. In this scenario I would expect it to place the cursor on the final character of the original visual line, rather than the first character of the subsequent visual line. If you do C-a C-e C-a and the two C-a commands take you to two different positions (and indeed different lines), I think that is very strange indeed. Regardless of the solution, there is no whitespace for the cursor to be positioned at, so I think the decision to use position N+1 rather than N seems somewhat arbitrary, and unintuitive as a "Move point to end of current line" behaviour. I expect the counter argument is that the first character of the next line *is* the position at the end of the visual line if it's not possible to break that line (i.e. the region between the C-a and C-e positions is indeed the entire visual line); but I think visual lines are such a dynamic notion to begin with (depending on window width, font size, etc, etc), and the "end" of an unbreakable line an even fuzzier notion, that using the position of the last char of that line doesn't seem like it would be very problematic for most users. A user option to select between the two behaviours would be nice. -Phil