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 23:55:39 +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> <8335loyoel.fsf@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="26952"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: 52163@debbugs.gnu.org, larsi@gnus.org, 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 11:56:25 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 1n93Cw-0006tE-Qs for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jan 2022 11:56:22 +0100 Original-Received: from localhost ([::1]:52126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n93Cv-0001Kd-R8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Jan 2022 05:56:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n93Cc-0001KS-FO for bug-gnu-emacs@gnu.org; Sun, 16 Jan 2022 05:56:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49685) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n93Cc-0000Ep-6C for bug-gnu-emacs@gnu.org; Sun, 16 Jan 2022 05:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n93Cc-0005Qr-6K for bug-gnu-emacs@gnu.org; Sun, 16 Jan 2022 05:56: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 10:56: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.164233055020863 (code B ref 52163); Sun, 16 Jan 2022 10:56:02 +0000 Original-Received: (at 52163) by debbugs.gnu.org; 16 Jan 2022 10:55:50 +0000 Original-Received: from localhost ([127.0.0.1]:42588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n93CQ-0005QR-JF for submit@debbugs.gnu.org; Sun, 16 Jan 2022 05:55:50 -0500 Original-Received: from smtp-4.orcon.net.nz ([60.234.4.59]:60131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n93CO-0005QJ-T7 for 52163@debbugs.gnu.org; Sun, 16 Jan 2022 05:55:49 -0500 Original-Received: from [10.253.37.70] (port=14555 helo=webmail.orcon.net.nz) by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1n93CF-0005ck-Sy; Sun, 16 Jan 2022 23:55:40 +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 23:55:39 +1300 In-Reply-To: <8335loyoel.fsf@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:224378 Archived-At: You've convinced me that the existing behaviour isn't a bug, and as I'm not likely to try to add an alternative this can probably be closed again (if it was actually re-opened). I did have one more idea on the matter, though... On 2022-01-16 23:18, Eli Zaretskii wrote: >> > IOW, before declaring that there is a problem, please be sure to >> > consider any reasonable solutions. I've just remembered `overflow-newline-into-fringe'. AFAIK that only has an effect on lines which are *exactly* the window-width characters wide, but it occurs to me that this fringe behaviour/visualisation could be used to create a more intuitive solution for the unbreakable visual line situation, allowing C-e to visually position the cursor at the end of the visual line (in the fringe) rather than the start of the next line. It might be quite a special-case approach -- the fringe position would be the same position as the start of the next visual line, so Emacs would need a way to decide which of those two visual places to render the cursor; and in order for C-a to then move to the start of the same visual line Emacs would need to know that it had previously been rendering the cursor in the fringe, so probably the C-a and C-e commands would be handling this explicitly. It sounds kinda fiddly/complicated, and I'm not requesting that anyone tackle this, but I wanted to describe the idea here in case anyone else thinks it's worth looking into. -Phil