[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34123: A patch to fix reading EOF characters in non-interactive mode
From: |
Lars Ingebrigtsen |
Subject: |
bug#34123: A patch to fix reading EOF characters in non-interactive mode |
Date: |
Wed, 19 Aug 2020 12:57:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> And I think that's true? It happens here in read_minibuf_noninteractive:
>
> if (len || c == '\n' || c == '\r')
> {
> val = make_string (line, len);
> xfree (line);
> }
> else
> {
> xfree (line);
> error ("Error reading from stdin");
> }
>
> So I think that error can only happen on an end-of-file? Anybody
> objecting to changing that to and end-of-file error?
There were no objections, so I've now done this in Emacs 28. (It didn't
seem NEWS-worthy, so I didn't add a NEWS item.)
Witch that change, I think Noam's approach to handling EOF characters in
non-interactive Emacsen should work fine, so I'm closing this bug
report. If more work needs to be done here, please respond and we'll
reopen the bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no