From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bill Newsgroups: gmane.emacs.help Subject: *shell*: annoying behavior with long output Date: Mon, 17 May 2004 20:27:14 +0000 (UTC) Organization: none Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084826825 17944 80.91.224.253 (17 May 2004 20:47:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 May 2004 20:47:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 17 22:46:56 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BPp0i-0004xx-00 for ; Mon, 17 May 2004 22:46:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPomQ-0002Lp-Nz for geh-help-gnu-emacs@m.gmane.org; Mon, 17 May 2004 16:32:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader2.panix.com 1084825634 3028 166.84.1.3 (17 May 2004 20:27:14 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Mon, 17 May 2004 20:27:14 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.6.5 Original-Xref: shelby.stanford.edu gnu.emacs.help:123238 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18532 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18532 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