From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.help Subject: Re: page-at-a-time output for M-x shell Date: Tue, 14 Jul 2009 08:10:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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> <877hybh6tv.fsf@galatea.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247586111 2226 80.91.229.12 (14 Jul 2009 15:41:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2009 15:41:51 +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 17:41:44 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 1MQk8W-00042F-0P for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 17:41:44 +0200 Original-Received: from localhost ([127.0.0.1]:36692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQk8V-0004tY-9M for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 11:41:43 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j21g2000vbn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 82.235.205.153 Original-X-Trace: posting.google.com 1247584245 30172 127.0.0.1 (14 Jul 2009 15:10:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 14 Jul 2009 15:10:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j21g2000vbn.googlegroups.com; posting-host=82.235.205.153; posting-account=ekTE0goAAADiVCThPmo4ph0C5bTUhQOx User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009061118 Fedora/3.0.11-1.fc10 Firefox/3.0.11, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170868 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:66065 Archived-At: On 14 juil, 12:55, p...@informatimago.com (Pascal J. Bourguignon) wrote: > 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 intermediat= e > > hidden buffer or some Lisp data type and then pages it to *shell* buffe= r > > for user? I'm pretty sure that that would be possible to implement. > > Of course. =A0It is ALREADY implemented. =A0That data structure is called > BUFFER, and the pages are called WINDOWS. =A0There is a user interface > to let the user scan the pages, they're the PgUp and PgDn keys (PAGE > UP, PAGE DOWN). No it's not. What you propose with PgUp/PgDn is a _workaround_. > > 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. =A0 > So why is it silly to implement the 'automatic pager emulation' in shell mode and not in 'M-x term' ?