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

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

Re: Buffer or string as file input?


From: Barry Margolin
Subject: Re: Buffer or string as file input?
Date: Fri, 21 Feb 2014 18:46:35 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Jonathon McKitrick <address@hidden> wrote:

> I need to call CALL-PROCESS but the stdin argument will be a string I am 
> constructing.  I would prefer to avoid writing that to a file just to read it 
> into the command.
> 
> Is there a way to use a buffer or string as a file input, like a stream?

call-process-region uses a region in the current buffer as stdin for the 
process.

-- 
Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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