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 19:21:02 +0200 Organization: Informatimago Message-ID: <87vdlvfaf5.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> <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: 8bit X-Trace: ger.gmane.org 1247593301 26361 80.91.229.12 (14 Jul 2009 17:41:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2009 17:41:41 +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 19:41:34 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 1MQm0R-0007cZ-VE for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 19:41:32 +0200 Original-Received: from localhost ([127.0.0.1]:38128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQm0R-00048J-4O for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 13:41:31 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 58 Original-X-Trace: individual.net Caa2lV+Cm5/yQuaUR6JTRghsjoLL52ctI+QS6Mgus1EUTVpOpf Cancel-Lock: sha1:NDA0YzI1NTIyYWFmYzRiMjZkYWFkYzA0YjAyN2VjYzUxZWZhMmJlYg== sha1:16vhpcjG6bE7hMYAa0aURaT95Wk= 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:170872 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:66069 Archived-At: Francis Moreau writes: > 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 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). > > 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.   >> > > So why is it silly to implement the 'automatic pager emulation' in > shell mode and not in 'M-x term' ? It is clear from the first paragraph of my previous answer, but since you don't understand (to the point of making this thread sound trollish), I'll repeat: it is silly to implement the 'automatic pager emulation' in shell mode, because the feature is ALREADY IMPLEMENTED IN THE GUISE of a BUFFER, a WINDOW and PgUp and PgDn to browse the buffer. What more do you want? more or less implement exactly the same features, they load the file in a buffer, and display a window-long at a time, and let you advance and (for less) retroced on the press of a key. If you don't like the keys PgUp or PgDn, there's already substitute keys implemented in emacs shell, namely C-v and M-v, and if you don't like them either, it's trivial to bind other keys. -- __Pascal Bourguignon__