From: Miles Bader <miles@lsi.nec.co.jp>
Cc: jidanni@ms46.hinet.net, emacs-devel@gnu.org
Subject: Re: comint-interrupt-subjob also kills pending input
Date: 19 Jun 2002 10:32:13 +0900 [thread overview]
Message-ID: <buohek0rr36.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <200206180810.g5I8ALJ14851@aztec.santafe.edu>
Richard Stallman <rms@gnu.org> writes:
> With your change it becomes much more difficult to do that.
>
> It is trivial -- M-p brings it back.
Ah, I didn't realize that. However, like the previous situation with
`C-y' yanking back the text, it seems likely that _most_ people won't
realize this.
It also results in a somewhat inconsistent situation that might confuse
users -- the `unsent' input is treated as if it had been sent to the
process in every way _except_ that wasn't sent (in particular, being put
into the `command ring', and being highlighted in bold like other `input').
Sometimes in fact it is very important to know what has been sent and
what hasn't, and this behavior confuses the issue (I guess you can
often [but not always] tell by looking for bold text followed by a
non-bold `C-c C-c', but again, this is `special knowledge' that a naive
user might not pick up on).
> Instead of replacing `comint-kill-input' with `comint-skip-input', why
> not just have nothing?
>
> I don't like that. C-c C-c in Emacs is supposed to be like C-c in
> an ordinary terminal. People could be painfully surprised if that
> fails to discard the input.
I think rather they would be pleasantly surprised; this is something
that terminals can't do, but emacs can do easily and well.
I'm not sure why you think it would cause any pain, since it's
completely obvious what's going on (after all, the unsent input floats
ahead of any new input and is available for editing), and very easy to
delete the input using the normal editing procedures for command lines.
This is important, I think -- unlike every other behavior, it doesn't
require any special knowledge, you just edit like normal.
Personally, I find that it's _usually_ the case that when I hit C-c C-c
with unsent input, it's because I forgot to kill a program, and had
started to type the next command, and then suddenly realized what was
going on, and hit C-c C-c. To me this seems like a common scenario,
and it's obviously one in which the assumption should be that the user
wants to keep the input.
-Miles
--
I'd rather be consing.
next prev parent reply other threads:[~2002-06-19 1:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m2sn3qnaa2.fsf@jidanni.org>
2002-06-14 15:47 ` comint-interrupt-subjob also kills pending input Richard Stallman
2002-06-17 2:21 ` Miles Bader
2002-06-18 8:10 ` Richard Stallman
2002-06-18 14:55 ` Stefan Monnier
2002-06-19 1:32 ` Miles Bader [this message]
2002-06-20 14:34 ` Richard Stallman
2002-06-20 20:02 ` Miles Bader
2002-06-22 22:52 ` Richard Stallman
2002-06-23 0:12 ` Miles Bader
2002-06-24 9:33 ` Richard Stallman
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=buohek0rr36.fsf@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=emacs-devel@gnu.org \
--cc=jidanni@ms46.hinet.net \
--cc=miles@gnu.org \
/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).