From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: terminal-emulator breaking functions? Date: Mon, 18 Jul 2011 00:13:56 -0400 Organization: A noiseless patient Spider Message-ID: References: <878vs5ao4j.fsf@yun.yagibdah.de> <87vcv0ofr6.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332967891 8543 80.91.229.3 (28 Mar 2012 20:51:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2012 20:51:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 22:51:31 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SCzq1-0007Id-Du for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 22:51:25 +0200 Original-Received: from localhost ([::1]:48702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCzq0-00023c-SH for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 16:51:24 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Injection-Info: mx04.eternal-september.org; posting-host="rBrWS0LxsQCX3HMNycJoxg"; logging-data="1197"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18M4x5tNMSi+TB5NBzbzQ7w" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:kcX4Und3BxM+Y2LPo0J3GJhDHGA= sha1:O41yTCeA84SnZvHJ+w/p8Z7vpHM= Original-Xref: usenet.stanford.edu gnu.emacs.help:187843 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84169 Archived-At: >> `terminal-emulator' is a very round-about way to run a program, unless >> you really want the program's output to be displayed according to the >> rules of a terminal (i.e. interpreting the various escape code for >> cursor motion and things like that). Otherwise, you'll want things like >> call-process, start-process, and shell-command. > The problem lies in not being able to pipe the contents of a buffer to > an external program. How do I do that? Take a look at process-send-region and process-send-string. Stefan