all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Phil Sainty <psainty@orcon.net.nz>, Lars Ingebrigtsen <larsi@gnus.org>
Cc: 52163@debbugs.gnu.org, iung@autistici.org
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	[thread overview]
Message-ID: <42F16660-8FDC-499E-896B-D7DABDC59FD8@gnu.org> (raw)
In-Reply-To: <9b0bd8fee0cb08997b2f0bcf79a785b9@webmail.orcon.net.nz>

On January 16, 2022 12:53:21 AM GMT+02:00, Phil Sainty <psainty@orcon.net.nz> wrote:
> > Eli Zaretskii <eliz@gnu.org> 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.

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.





  reply	other threads:[~2022-01-16  7:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-28 14:49 bug#52163: 28.0.60; visual-line-mode breaks C-a and C-e in extreme case iung--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-28 17:07 ` Eli Zaretskii
2022-01-15 13:08   ` Lars Ingebrigtsen
2022-01-15 22:53     ` Phil Sainty
2022-01-16  7:22       ` Eli Zaretskii [this message]
2022-01-16  9:58         ` Phil Sainty
2022-01-16 10:18           ` Eli Zaretskii
2022-01-16 10:23             ` Eli Zaretskii
2022-01-16 11:08               ` Phil Sainty
2022-01-16 10:55             ` Phil Sainty
2022-01-16 11:03               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42F16660-8FDC-499E-896B-D7DABDC59FD8@gnu.org \
    --to=eliz@gnu.org \
    --cc=52163@debbugs.gnu.org \
    --cc=iung@autistici.org \
    --cc=larsi@gnus.org \
    --cc=psainty@orcon.net.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.