From: tyler <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: editing output in shell mode
Date: Fri, 09 Jan 2009 17:45:09 -0400 [thread overview]
Message-ID: <87r63cyx0a.fsf@blackbart.sedgenet> (raw)
In-Reply-To: 20524da70901091312y4b016693p15be5e93eec3f4f9@mail.gmail.com
"Samuel Wales" <samologist@gmail.com> writes:
> Let's say you do something in shell mode that produces a lot of
> output. Normally, you'd use less(1), but that is not possible in shell
> mode.
>
> Ideally, you'd view the output in an emacs buffer, perhaps in text
> mode, so that you can edit it and navigate it.
>
> Is there a way to pipe this output to, say, emacsclient?
>
When I'm in shell mode, I just leave long output right there. For ex.,
you can issue 'cat README.txt' to dump the contents of a big file, then
C-c C-p to put you at the top of the output, and navigate through as
per usual.
You can delete the output when you're done a few different ways. You can
get to the following prompt with C-c C-n, from where C-c C-o will delete
the previous output (usually). Sometimes the contents of the file will
screw this up, in which case C-c C-p to back up to the previous prompt,
then use M-h C-w to select and kill the 'cat' command and the
associated output.
As an alternative, you could ignore the fact that you're in shell mode,
and issue the command using M-!, which will dump the output into a new
buffer named *Shell Command Output*, which might be more what you're
after.
HTH,
Tyler
next prev parent reply other threads:[~2009-01-09 21:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-09 21:12 editing output in shell mode Samuel Wales
2009-01-09 21:32 ` Peter Dyballa
2009-01-09 21:45 ` tyler [this message]
[not found] <mailman.4437.1231535539.26697.help-gnu-emacs@gnu.org>
2009-01-09 21:39 ` David Kastrup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r63cyx0a.fsf@blackbart.sedgenet \
--to=tyler.smith@mail.mcgill.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).