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

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

Re: reading from standard input in batch mode


From: Eric Abrahamsen
Subject: Re: reading from standard input in batch mode
Date: Tue, 22 May 2018 14:52:42 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Noam Postavsky <npostavs@gmail.com> writes:

> On 22 May 2018 at 17:07, Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
>
>> output unfortunately also contains the string "Lisp expression:"
>
> Might have to do with the FIXME in lread.c:
>
> DEFUN ("read", Fread, Sread, 0, 1, 0,
>        doc: [...])
>   (Lisp_Object stream)
> {
>   if (NILP (stream))
>     stream = Vstandard_input;
>   if (EQ (stream, Qt))
>     stream = Qread_char;
>   if (EQ (stream, Qread_char))
>     /* FIXME: ?! When is this used !?  */
>     return call1 (intern ("read-minibuffer"),
>           build_string ("Lisp expression: "));
>
>   return read_internal_start (stream, Qnil, Qnil);
> }

Beats me, really -- I guess it's trying to figure out when you're using
it interactively, and when you aren't? `princ' and `prin1' gave me the
prepended string, but `append-to-file' on the string didn't.




reply via email to

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