From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: Inserting output from a program into a buffer Date: Sun, 21 Feb 2010 07:28:13 +0100 Message-ID: <20100221062813.GA26668@tomas> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1266814826 3762 80.91.229.12 (22 Feb 2010 05:00:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 05:00:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tim Johnson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 21 07:54:41 2010 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.69) (envelope-from ) id 1Nj5KF-0004tE-1u for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Feb 2010 07:30:48 +0100 Original-Received: from localhost ([127.0.0.1]:53827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj5JP-0005Ni-C8 for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Feb 2010 01:29:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nj5HY-0004ow-9e for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 01:27:08 -0500 Original-Received: from [140.186.70.92] (port=39289 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj5HW-0004oi-Mz for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 01:27:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nj5HV-0005aE-Un for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 01:27:06 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:35100 helo=www.elogos.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nj5HV-0005Zm-MX for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 01:27:05 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id EB40C90050; Sun, 21 Feb 2010 07:28:13 +0100 (CET) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by eggs.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:71999 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Feb 20, 2010 at 10:45:08PM -0600, Tim Johnson wrote: > On 2010-02-21, Tim Landscheidt wrote: > > Tim Johnson wrote: > > > >> emacs 22.3.1 on slack 13.0/32-bit > > > >> Consider the following text: [...] > > Not exactly what you require, but > > C-u M-x shell-command-on-region RET will /replace/ the re- > > gion with the output of the shell-command operated on the > > original region. > Hi Tim:=20 > Thanks for the reply. I had found that command, but unfortunately > replacing the region is the last thing I want to do. The end game is a > "time card", as you might guess from the data structure and the data > structure needs to remain intact. > Thanks Again! But shell-command-on-region has an optional parameter called REPLACE. This might be what you are looking for (you'll need to wrap the call, REPLACE is set to t on interactive calls, though). Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLgNJ9Bcgs9XrR2kYRAjZZAJ4wHq3pVIRTcS4btOCjZhvoA37gMgCfVi1V dqoU+yWZE6rcu7yxRCiOv5I=3D =3DbRfw -----END PGP SIGNATURE-----