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

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

Re: Inserting output from a program into a buffer


From: tomas
Subject: Re: Inserting output from a program into a buffer
Date: Sun, 21 Feb 2010 07:28:13 +0100
User-agent: Mutt/1.5.15+20070412 (2007-04-11)

-----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 <tim@tim-landscheidt.de> wrote:
> > Tim Johnson <tim@johnsons-web.com> 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: 
>       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ás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLgNJ9Bcgs9XrR2kYRAjZZAJ4wHq3pVIRTcS4btOCjZhvoA37gMgCfVi1V
dqoU+yWZE6rcu7yxRCiOv5I=
=bRfw
-----END PGP SIGNATURE-----




reply via email to

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