Subject: bug#39291: M-: history doesn't store erroneous input

From: Paul Pogonyshev <[email-masked]>
Date: Sun, 26 Jan 2020 16:16:23 +0100

M-: (oops-i-forgot-to-type-the-closing-paren RET
=> End of file during parsing

Error itself is fine, but the problem is if you now
type M-: again, you won't find your input in the
history and have to retype everything from scratch
instead of just fixing the typo.

This is a regression in trunk compared at least to
26.3.