From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cothrige Newsgroups: gmane.emacs.help Subject: Re: Piping output to a buffer Date: Mon, 25 Feb 2008 23:25:55 -0600 Organization: BellSouth Internet Group Message-ID: <878x18ffvg.fsf@celephais.home.net> References: <877igtho8a.fsf@celephais.home.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204030812 30386 80.91.229.12 (26 Feb 2008 13:00:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2008 13:00:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 26 14:00:37 2008 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 1JTzPx-0005E0-Pv for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 14:00:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTzPS-0000KS-0k for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 07:59:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!news1.google.com!news.glorb.com!bigfeed2.bellsouth.net!bignumber.bellsouth.net!news.bellsouth.net!bignews5.bellsouth.net.POSTED!fb0cad44!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:t7DM0wqHD05PpzKLgdl6pQj9/jE= Original-Lines: 20 Original-X-Complaints-To: abuse@bellsouth.net X-Abuse-Info: Please forward a copy of all headers for proper handling Original-X-Trace: ldjgbllpbapjglppdbdpiflmbcekedmfhojhikkbagflhcbojmpfdnimklchpblbebmdeclnglbieplffkhknhclgnebhmkhaoilepejjbnbijbojamnjkpjmfbadfacnmlabalcgocigaobhiggoficodkpomim Original-NNTP-Posting-Date: Tue, 26 Feb 2008 00:25:31 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:156498 X-Mailman-Approved-At: Tue, 26 Feb 2008 07:59:23 -0500 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:51883 Archived-At: Barry Margolin writes: > In article <877igtho8a.fsf@celephais.home.net>, > cothrige 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-! Yep, that did it alright. I had assumed that emacs could do it, just wondered how. I do believe that will be a convenient and useful trick to know. I thank you for filling me in on it. Many thanks, Patrick