From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: page-at-a-time output for M-x shell Date: Tue, 14 Jul 2009 12:55:40 +0200 Organization: Informatimago Message-ID: <877hybh6tv.fsf@galatea.local> References: <30a09a22-cd05-44b6-9b82-8a7e6c1796d5@x3g2000yqa.googlegroups.com> <7bf1883b-3184-487c-a5a4-675f3e117342@l2g2000vba.googlegroups.com> <85269090-af0d-43fa-bd49-da265cbac558@p23g2000vbl.googlegroups.com> <3c2b0d8c-2d31-45f0-8eda-1af2320d8cf5@j9g2000vbp.googlegroups.com> <0eab476b-cd5f-444d-b2af-d82ac076e73b@r34g2000vba.googlegroups.com> <48d589d5-0f9b-4873-ab21-8fb3beedffe5@j9g2000vbp.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247571670 18119 80.91.229.12 (14 Jul 2009 11:41:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2009 11:41:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 14 13:41:04 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MQgNc-0006tu-Hs for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 13:41:04 +0200 Original-Received: from localhost ([127.0.0.1]:44486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQgNb-0003kN-UW for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 07:41:03 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!news.glorb.com!news2.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-X-Trace: individual.net vVd4g8JSVm4+wTkNOw2wZgc6zl1JfGX3MCKAqNm3s/UDYvsJNf Cancel-Lock: sha1:YjM2ZGJhNjc0MThmNzIwMDY0ZjgyNDZhOGE5YmNiYjAyZmY1MjdkZA== sha1:JtnfgQAFdV+bVKk9GK5ECjHqirY= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) Original-Xref: news.stanford.edu gnu.emacs.help:170864 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66063 Archived-At: Teemu Likonen writes: > On 2009-07-13 13:42 (-0700), Samuel Wales wrote: > >> I read the whole thread, and I am surprised at how thoroughly and >> repeatedly the OP was misunderstood. > > Then I'm certainly one of those. Sorry about that, Francis. > >> I think what he wants is shell mode (not term) but to have some sort >> of less-like solution (not less itself) for paging output. Page up and >> prompt search and term in line mode are all good ideas, but he >> probably tried them. > > Hmm, speaking speculatively, would it be some code in shell.el (or much > likely comint.el) which stores shell commands' output in an intermediate > hidden buffer or some Lisp data type and then pages it to *shell* buffer > for user? I'm pretty sure that that would be possible to implement. Of course. It is ALREADY implemented. That data structure is called BUFFER, and the pages are called WINDOWS. There is a user interface to let the user scan the pages, they're the PgUp and PgDn keys (PAGE UP, PAGE DOWN). How much silliness must we endure each day??? But note however, that M-x term implements an automatic pager in emacs, so you don't even have to remember to type |less : as soon as the output is more than a window-long, the term emacs pager jumps in. -- __Pascal Bourguignon__