[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: page-at-a-time output for M-x shell
From: |
Francis Moreau |
Subject: |
Re: page-at-a-time output for M-x shell |
Date: |
Tue, 14 Jul 2009 13:00:10 -0700 (PDT) |
User-agent: |
G2/1.0 |
On 14 juil, 00:05, Teemu Likonen <tlikonen@iki.fi> 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 ;-)
- Re: page-at-a-time output for M-x shell, (continued)
- Message not available
- Message not available
- Re: page-at-a-time output for M-x shell, Pascal J. Bourguignon, 2009/07/14
- Re: page-at-a-time output for M-x shell, Francis Moreau, 2009/07/14
- Re: page-at-a-time output for M-x shell, Pascal J. Bourguignon, 2009/07/14
- Re: page-at-a-time output for M-x shell, tomas, 2009/07/14
- Message not available
- Re: page-at-a-time output for M-x shell, Francis Moreau, 2009/07/14
- Re: page-at-a-time output for M-x shell, Pascal J. Bourguignon, 2009/07/14
- Message not available
- Message not available
- Re: page-at-a-time output for M-x shell,
Francis Moreau <=
- Re: page-at-a-time output for M-x shell, Barry Margolin, 2009/07/13
- Re: page-at-a-time output for M-x shell, Miles Bader, 2009/07/14
- Re: page-at-a-time output for M-x shell, Francis Moreau, 2009/07/14
- Re: page-at-a-time output for M-x shell, Pascal J. Bourguignon, 2009/07/14
- Re: page-at-a-time output for M-x shell, Barry Margolin, 2009/07/14
- Message not available
- Re: page-at-a-time output for M-x shell, Richard Riley, 2009/07/13
Re: page-at-a-time output for M-x shell, Teemu Likonen, 2009/07/12
Re: page-at-a-time output for M-x shell, Pascal J. Bourguignon, 2009/07/13