unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
Cc: jidanni@ms46.hinet.net, emacs-devel@gnu.org
Subject: Re: comint-interrupt-subjob also kills pending input
Date: 21 Jun 2002 05:02:58 +0900	[thread overview]
Message-ID: <87adpp7m6l.fsf@tc-1-100.kawasaki.gol.ne.jp> (raw)
In-Reply-To: <200206201434.g5KEYC318619@aztec.santafe.edu>

Richard Stallman <rms@gnu.org> writes:
>     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.
> 
> Perhaps it should kill the input when the input follows a prompt
> but not otherwise.  What do you think of that idea?

That would make sense, but I'm not sure how possible it is to do a good
job -- the code doesn't ever know when you're seeing a real prompt or
not, just that there's some non-newline-terminated output.  So if a
process displays something like `Pausing...' with no terminating
newline, comint's going to think it's a prompt until it sees more
output (in some sense, I suppose you could say that `Pausing...' _is_ a
prompt, inviting you to hit ^C!).

-MIles

-- 
The secret to creativity is knowing how to hide your sources.
  --Albert Einstein

  reply	other threads:[~2002-06-20 20:02 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
2002-06-20 14:34         ` Richard Stallman
2002-06-20 20:02           ` Miles Bader [this message]
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=87adpp7m6l.fsf@tc-1-100.kawasaki.gol.ne.jp \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jidanni@ms46.hinet.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).