all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bill <please_post@nomail.com>
Subject: *shell*: annoying behavior with long output
Date: Mon, 17 May 2004 20:27:14 +0000 (UTC)	[thread overview]
Message-ID: <c8b772$2uk$1@reader2.panix.com> (raw)




I'm a big fan of the Emacs shell, but one thing that really annoys
me is its behavior when a lot of output is sent to stdout.  The
cursor ends up at the very bottom of the output, even though,
invariably I'm more interested in looking at the top first and then
work my way down, which means that I end up having to search
backwards for the shell prompt to see the beginning of the output.

I have not found a satisfactory solution to this.  When I'm not in
the Emacs shell, the solution is simple: I pipe the output through
/usr/bin/less.  But the Emacs shell can't handle less too well.

Another thing I've tried is to set the mark before executing a
command, and then C-x C-x after executing it.  The problem with
this is that the top of the output gets placed in the middle of
the screen, so I have to do C-u 0 C-l to see the top screenful of
output.  Besides, this works only when I know ahead of time that
the output will be long.

Is there a way to tell the Emacs shell to keep the cursor at the
top of the output in such a way that the top screenful of output
is what is visible of the *shell* buffer immediately after executing
a command?

Thanks!

	-bill

             reply	other threads:[~2004-05-17 20:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-17 20:27 bill [this message]
2004-05-17 21:51 ` *shell*: annoying behavior with long output Johan Bockgård
2004-05-17 22:14 ` Barry Margolin
2004-05-17 23:07 ` Thien-Thi Nguyen
2004-05-17 23:35 ` Michael Slass

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='c8b772$2uk$1@reader2.panix.com' \
    --to=please_post@nomail.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.