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: behaviour of shell-command-on-region Date: Mon, 22 Feb 2010 10:27:07 +0100 Message-ID: <20100222092707.GB21836@tomas> References: <87vddqcwvx.fsf@stats.ox.ac.uk> <20100222091637.GA21836@tomas> 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 1266832293 24719 80.91.229.12 (22 Feb 2010 09:51:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 09:51:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 22 10:51:29 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 1NjUYf-0007Xw-RV for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Feb 2010 10:26:30 +0100 Original-Received: from localhost ([127.0.0.1]:55557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjUYe-0007I6-PT for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Feb 2010 04:26:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjUY6-0007Ef-Ld for help-gnu-emacs@gnu.org; Mon, 22 Feb 2010 04:25:54 -0500 Original-Received: from [140.186.70.92] (port=58712 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjUY4-0007EJ-9W for help-gnu-emacs@gnu.org; Mon, 22 Feb 2010 04:25:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjUY3-0007Yt-9S for help-gnu-emacs@gnu.org; Mon, 22 Feb 2010 04:25:52 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:58636 helo=www.elogos.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjUY3-0007Yg-4F for help-gnu-emacs@gnu.org; Mon, 22 Feb 2010 04:25:51 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 4745390050; Mon, 22 Feb 2010 10:27:07 +0100 (CET) Content-Disposition: inline In-Reply-To: <20100222091637.GA21836@tomas> 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:72005 Archived-At: -----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 argume= nts [...] > 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-bu= ffer)) Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLgk3rBcgs9XrR2kYRAldjAJ46cy7RRU9UnxkK34mmn2hA8DnJRQCfa8eG Tha10OKgxTozawO4PL+diAc=3D =3DbLh2 -----END PGP SIGNATURE-----