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

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

Read from stdin in non-batch mode


From: Thorsten Jolitz
Subject: Read from stdin in non-batch mode
Date: Sat, 19 Oct 2013 10:43:14 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Hi List,

how can I (directly) achieve this behaviour in non-batch mode?

,-------------------------------------------------------------------------
| t used as a stream means that the input is read from the minibuffer.
| [...]. If Emacs is running in batch mode, standard input is used
| instead of the minibuffer. For example,
|
|           (message "%s" (read t))
|
| will read a Lisp expression from standard input and print the result to
| standard output.
`-------------------------------------------------------------------------

>From the manual it seems that I have to either pipe in/output through a
buffer or write a function - there is no input-stream 'stdin' and no
output-stream 'stdout' mentioned that would allow for the bahaviour
described above.

--
cheers,
Thorsten




reply via email to

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