all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jim Porter <jporterbugs@gmail.com>
Cc: 60666@debbugs.gnu.org
Subject: bug#60666: 30.0.50; [PATCH] Use field properties in Eshell buffers
Date: Tue, 10 Jan 2023 22:11:31 +0200	[thread overview]
Message-ID: <83o7r6m9os.fsf@gnu.org> (raw)
In-Reply-To: <6a94f805-cb0f-2328-71f8-c64891b18e06@gmail.com> (message from Jim Porter on Tue, 10 Jan 2023 11:28:17 -0800)

> Date: Tue, 10 Jan 2023 11:28:17 -0800
> Cc: 60666@debbugs.gnu.org
> From: Jim Porter <jporterbugs@gmail.com>
> 
> On 1/10/2023 4:13 AM, Eli Zaretskii wrote:
> > I don't think I understand why keeping eshell-bol and telling people
> > to bind <HOME> to that function if they want wouldn't be a much more
> > reasonable solution.  I'm probably missing something.
> 
> Do you mean that users who want <home> to go to the very beginning of 
> the line would bind it to 'eshell-bol'? If so, that wouldn't help. 
> 'eshell-bol' moves the point to the beginning of the user's input, not 
> the actual beginning of the line.

That's not what I see in Emacs 29.  C-a moves to the beginning of
input, i.e. it stops at the end of the prompt, whereas HOME goes all
the way to the beginning of screen line, including the prompt.

"C-h c" says that C-a is bound to eshell-bol, but HOME is bound to
move-beginning-of-line.

I'm asking why not let users have this distinction after your change,
with some easy customization?

> If you mean the other way, and that users who want <home> to go to the 
> beginning of the input should just bind it to 'eshell-bol', that would 
> help, but then we wouldn't get the benefits of using 'field' properties 
> in Eshell. One of the nice things about using 'field' properties is that 
> 'eshell-prompt-regexp' is no longer necessary[1]. That regexp is fairly 
> brittle. Also, users who customize their prompt need to make sure they 
> update it correctly.

I understand the benefits, but from user POV we just removed some
functionality as the price of making maintenance easier.  That is not
a good balance for users who want the removed functionality.





  reply	other threads:[~2023-01-10 20:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-08 23:34 bug#60666: 30.0.50; [PATCH] Use field properties in Eshell buffers Jim Porter
2023-01-09 12:09 ` Eli Zaretskii
2023-01-09 17:52   ` Jim Porter
2023-01-10 12:13     ` Eli Zaretskii
2023-01-10 19:28       ` Jim Porter
2023-01-10 20:11         ` Eli Zaretskii [this message]
2023-01-10 20:51           ` Jim Porter
2023-01-11 12:15             ` Eli Zaretskii
2023-01-12 18:10               ` Jim Porter
2023-01-13 13:07                 ` Eli Zaretskii
2023-01-14 19:30                   ` Jim Porter

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=83o7r6m9os.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=60666@debbugs.gnu.org \
    --cc=jporterbugs@gmail.com \
    /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.