[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read-string from standard-input?
From: |
Michael Albinus |
Subject: |
Re: read-string from standard-input? |
Date: |
Tue, 15 Mar 2016 13:53:35 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Running regression tests with interactive input is not what I want. Is
>> there a technique, that read-string takes its input from a stream, like
>> standard-input?
>
> I'm not sure I understand.
>
> % emacs --batch -Q --eval '(message (read-string "hello:"))'
>
> shows that `read-string' does read from stdin already if we're not in an
> interactive session. What am I missing?
I do not want to read from stdin (UNIX level). I want to read from a
stream inside Emacs (buffer or string), defined by the Lisp variable
`standard-input'.
> Stefan
Best regards, Michael.