unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: tomas@tuxteam.de
To: tomas@tuxteam.de
Cc: help-gnu-emacs@gnu.org
Subject: Re: behaviour of shell-command-on-region
Date: Mon, 22 Feb 2010 10:27:07 +0100	[thread overview]
Message-ID: <20100222092707.GB21836@tomas> (raw)
In-Reply-To: <20100222091637.GA21836@tomas>

-----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-----




  reply	other threads:[~2010-02-22  9:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87vddqcwvx.fsf@stats.ox.ac.uk>
2010-02-22  9:16 ` behaviour of shell-command-on-region tomas
2010-02-22  9:27   ` tomas [this message]
2010-02-24  6:20   ` tomas
     [not found] ` <mailman.1633.1266830128.14305.help-gnu-emacs@gnu.org>
2010-02-22 10:05   ` Pascal J. Bourguignon
2010-02-22 16:47     ` tomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100222092707.GB21836@tomas \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).