unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 65980@debbugs.gnu.org
Subject: bug#65980: 30.0.50; C-e behaves surprisingly in minibuffer
Date: Fri, 15 Sep 2023 08:40:25 +0300	[thread overview]
Message-ID: <83bke4kn92.fsf@gnu.org> (raw)
In-Reply-To: <8734zg8p9m.fsf@rub.de> (message from Stephen Berman on Thu, 14 Sep 2023 22:37:41 +0200)

> From: Stephen Berman <stephen.berman@gmx.net>
> Cc: 65980@debbugs.gnu.org
> Date: Thu, 14 Sep 2023 22:37:41 +0200
> 
> > It's because of fields.  If you want this to work disregarding fields,
> > set inhibit-field-text-motion non-nil, and then C-a and C-e will do
> > what you expect even if you enter the prompt (which has the field
> > property).
> 
> Yes, that makes C-e in step 6 work the same as in step 2, but it doesn't
> explain why the two cases are different.  The point of my patch is to
> make the behavior of C-e in the minibuffer the same in both cases.  It's
> a change for the benefit of Emacs users, not for Elisp programmers.  Do
> you know of any unwanted consequences of making such a change?

Your patch changes one of the subroutines of next-line and
previous-line. Those by now became very complex creatures, and handle
many different cases of vertical cursor motion (with and without
visual-line-mode, with and without line truncation, with and without
R2L text, etc.)  So I hesitate to even consider it for this obscure use
case.  I'd be much happier if the change was in move-beginning-of-line
and move-end-of-line instead, so that it wouldn't have any chance of
affecting other commands.  Could you try to come up with such a change
instead?





  reply	other threads:[~2023-09-15  5:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-14 16:51 bug#65980: 30.0.50; C-e behaves surprisingly in minibuffer Stephen Berman
2023-09-14 17:26 ` Eli Zaretskii
2023-09-14 20:37   ` Stephen Berman
2023-09-15  5:40     ` Eli Zaretskii [this message]
2023-09-15 12:35       ` Stephen Berman
2023-09-16  7:56         ` Eli Zaretskii
2023-09-16 12:02           ` Stephen Berman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83bke4kn92.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=65980@debbugs.gnu.org \
    --cc=stephen.berman@gmx.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).