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 <e6be9402-c808-4e60-af58-6d7ee6d7ed47@googlegroups.com>,
 Jonathon McKitrick <jmckitrick@gmail.com> 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, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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