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 13:00:10 -0700 (PDT) Message-ID: <8c4c91e5-382a-4974-969c-d78ba9a7092e@b15g2000yqd.googlegroups.com> 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=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247601648 21947 80.91.229.12 (14 Jul 2009 20:00:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2009 20:00:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Teemu Likonen 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 22:00:41 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 1MQoB6-0004UK-Hg for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 22:00:41 +0200 Original-Received: from localhost ([127.0.0.1]:36676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQoB5-0003Eq-WB for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jul 2009 16:00:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQoAk-00039D-6a for help-gnu-emacs@gnu.org; Tue, 14 Jul 2009 16:00:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQoAf-0002yF-6w for help-gnu-emacs@gnu.org; Tue, 14 Jul 2009 16:00:17 -0400 Original-Received: from [199.232.76.173] (port=50841 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQoAe-0002xm-WA for help-gnu-emacs@gnu.org; Tue, 14 Jul 2009 16:00:13 -0400 Original-Received: from mail-gx0-f187.google.com ([209.85.217.187]:39535) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQoAe-0001Tp-H4 for help-gnu-emacs@gnu.org; Tue, 14 Jul 2009 16:00:12 -0400 Original-Received: by gxk7 with SMTP id 7so3946622gxk.18 for ; Tue, 14 Jul 2009 13:00:10 -0700 (PDT) Original-Path: b15g2000yqd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: b15g2000yqd.googlegroups.com; posting-host=82.235.205.153; posting-account=ekTE0goAAADiVCThPmo4ph0C5bTUhQOx Original-NNTP-Posting-Host: 82.235.205.153 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-Received: by 10.100.42.4 with SMTP id p4mt16645436anp.2.1247601610796; Tue, 14 Jul 2009 13:00:10 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66072 Archived-At: On 14 juil, 00:05, Teemu Likonen wrote: > 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. > Well, no problem and thanks anyway to spend some time of your busy life to answer my question. > > 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. Ok, I'll may take a look at this just because that might be a good exercise for learning elisp. > > > 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. :-) Take a look at the subject ;-)