From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: page-at-a-time output for M-x shell Date: Tue, 14 Jul 2009 01:05:48 +0300 Message-ID: <87y6qs1bnn.fsf@iki.fi> 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 1247522810 7542 80.91.229.12 (13 Jul 2009 22:06:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2009 22:06:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Francis Moreau To: Samuel Wales Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 14 00:06:43 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 1MQTfW-00068u-MV for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 00:06:43 +0200 Original-Received: from localhost ([127.0.0.1]:42129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQTfV-0007Gs-W7 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jul 2009 18:06:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQTf8-0007Gd-3m for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 18:06:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQTf3-0007GQ-1J for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 18:06:17 -0400 Original-Received: from [199.232.76.173] (port=52125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQTf2-0007GN-Qk for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 18:06:12 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:35449 helo=kirsi2.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQTf2-00083N-4y for help-gnu-emacs@gnu.org; Mon, 13 Jul 2009 18:06:12 -0400 Original-Received: from mithlond.arda.local (80.220.180.181) by kirsi2.inet.fi (8.5.014) id 49F6DD5802A90B0C; Tue, 14 Jul 2009 01:06:02 +0300 Original-Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1MQTee-0004Hb-K7; Tue, 14 Jul 2009 01:05:48 +0300 In-Reply-To: (Samuel Wales's message of "Mon, 13 Jul 2009 13:42:22 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:66045 Archived-At: 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. >From quick glance it looks like comint-output-filter is the function which handles the output that's coming from shell commands. The function is called automatically when Emacs sees data coming from an external process. I can see no pager features there but that's the place to start for someone who's interested. Split the functionality: have the output filter function write directly to hidden buffer and implement another output function which moves content from hidden buffer to *shell* buffer, possibly page by page. > It doesn't seem like he's so wrong for merely asking how to do that or > whether it is possible. I agree with that. Assuming I'm finally understanding what is being asked. :-)