Subject: bug#21102: 24.5; prompt of `read-char' obscured by keystroke echo

From: Stefan Kangas <[email-masked]>
Date: Wed, 19 Aug 2020 13:05:21 -0400

found 21102 28.0.50
tags 21102 + confirmed
severity 21102 minor
thanks

Emilio Lopes <[email-masked]> writes:

> Start Emacs with "emacs -Q" and type the following in the "*scratch*" buffer:
>
>   (read-char "char: ")
>
> With the point after the right paren type now "C-x C-e"
> (`eval-last-sexp').  If you press this key-sequence slowly, waiting one
> second (the value of `echo-keystrokes') between "C-x" and "C-e" the
> prompt string ("char: ") will be obscured by the echo area showing the
> keystrokes "C-x C-e-" (note the trailing dash!).

I can reproduce this on current master.

Best regards,
Stefan Kangas