[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: behaviour of shell-command-on-region
From: |
tomas |
Subject: |
Re: behaviour of shell-command-on-region |
Date: |
Mon, 22 Feb 2010 10:27:07 +0100 |
User-agent: |
Mutt/1.5.15+20070412 (2007-04-11) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, Feb 22, 2010 at 10:16:37AM +0100, tomas@tuxteam.de wrote:
> On Sun, Feb 21, 2010 at 12:38:10PM -0500, Dan Davison wrote:
> > I'm having trouble understanding the output-buffer and replace arguments
[...]
> This won't work when the external command wants real input, though :-(
A workaround would be to use the more basic "call-process-region". This
works:
(call-process-region (point) (+ 10 (point)) "/bin/date" nil (current-buffer))
Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFLgk3rBcgs9XrR2kYRAldjAJ46cy7RRU9UnxkK34mmn2hA8DnJRQCfa8eG
Tha10OKgxTozawO4PL+diAc=
=bLh2
-----END PGP SIGNATURE-----