help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Piping output to a buffer


From: David Kastrup
Subject: Re: Piping output to a buffer
Date: Mon, 25 Feb 2008 07:56:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Barry Margolin <barmar@alum.mit.edu> writes:

> In article <877igtho8a.fsf@celephais.home.net>,
>  cothrige <cothrige@yahoo.com> wrote:
>
>> I have noticed that in vim one can invoke an external command and pipe
>> the output into the current buffer via the `!!` or `:r!` commands.
>> While I have not made a habit of really using this command in vim, as I
>> have also not made a habit of using vim, I did realize that this could
>> be a really useful capability.  So, how might one do this in emacs?
>
> C-u M-!

!! pipes the current line through the external command.  The Emacs
equivalent to that would be marking the line and then using

C-u M-|

I consider it more likely that your variant will be needed, however:
more often than not, !! eating the current line is a nuisance rather
than a benefit in vi.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

[Prev in Thread] Current Thread [Next in Thread]