Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I give a command in shell-mode that produces lot of output then emacs takes a lot of time inserting it in the *shell* buffer, long after the command has completed execution.

Invariably, I had made some small mistake in the command, e.g. forgot -n on sed command . On a rxvt window pressing control-c takes me back to shell prompt immediately. Not so in emacs where control-c control-c kills the inferior process but if the process has completed execution it does not emacs to abort output.

Is there a way to do that? I am using GNU Emacs 23.4.1 (i686-pc-cygwin, GTK+ Version 2.24.10) of 2012-05-16 on moufang

share|improve this question

If you want to leave emacs running and just return to a shell briefly you can use <Ctrl+Z> (and then type fg tor return) otherwise to quit quickly it would be <Ctrl+X> followed by <Ctrl+C>.

share|improve this answer
I meant a command that I give in *shell-mode*, I want to return to the prompt in the *shell* buffer – Miserable Variable Jul 13 '12 at 23:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .