From: Stefan Kangas <stefankangas@gmail.com>
To: Philip Kaludercic <philipk@posteo.net>, Emacs-devel@gnu.org
Subject: Re: [PATCH] Don't override 'comint-prompt-read-only' by default
Date: Sat, 14 Sep 2024 16:13:12 -0700 [thread overview]
Message-ID: <CADwFkmn+iZ0sAPKoWLT5_b+w4HPrf6dzYkykQ0g9VUw+KFynuA@mail.gmail.com> (raw)
In-Reply-To: <87a5gb4fti.fsf@posteo.net>
Philip Kaludercic <philipk@posteo.net> writes:
> I am proposing this change here, because I am aware it might be
> controversial. My motivation is to have more consistent inferior modes,
> and not have to be surprised that (as in my case right now,
> inferior-python-mode doesn't allow be to kill a prompt). I haven't
> written a NEWS entry yet, but it should probably mention that anyone
> interested in restoring the old behaviour should just set
> 'comint-prompt-read-only' directly.
>
> WDYT?
Making `comint-prompt-read-only` nil in more modes seems like a step
backwards to me though; if anything I'd like to make it t in more
places. I'm actually not sure why it does not already default to t.
That's certainly the default in any REPL that I can think of, so our
default breaks most user expectations.
See, for example, users asking questions on StackOverflow like "How to
prevent backspace from deleting my shell prompt":
https://emacs.stackexchange.com/questions/21751/how-to-prevent-backspace-from-deleting-my-shell-prompt
It makes sense to have the option to be able delete the prompt, though
my preferred UI for that is closer to something like hitting `C-w` twice
(the second time to confirm) rather than setting a variable. I just
feel like this is highly situation dependent: most of the time I do not
want backspace to delete the prompt, but maybe occasionally I do.
That said, if we can agree to flip `comint-prompt-read-only` to t,
I think your patch should definitely be installed.
My $.02.
next prev parent reply other threads:[~2024-09-14 23:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-13 17:35 [PATCH] Don't override 'comint-prompt-read-only' by default Philip Kaludercic
2024-09-14 23:13 ` Stefan Kangas [this message]
2024-09-15 0:31 ` Dmitry Gutov
2024-09-15 15:48 ` Philip Kaludercic
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=CADwFkmn+iZ0sAPKoWLT5_b+w4HPrf6dzYkykQ0g9VUw+KFynuA@mail.gmail.com \
--to=stefankangas@gmail.com \
--cc=Emacs-devel@gnu.org \
--cc=philipk@posteo.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).