emacs-devel
[Top][All Lists]
Advanced

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

Re: Request: Please add a prompt to read-event


From: Lars Ingebrigtsen
Subject: Re: Request: Please add a prompt to read-event
Date: Sat, 18 Dec 2021 08:39:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

"T.V Raman" <raman@google.com> writes:

> Emacspeak advices read-event and read-char to speak their
> prompt. There are a few places in Emacs where read-event and/or
> read-char  are called without a prompt; e.g. disabled-command-function
>
> Could we perhaps fix this?

[...]

>      (message "Type y, n, ! or SPC (the space bar): ")
>      (let ((cursor-in-echo-area t))
>        (while (progn (setq char (read-event))
>                    (or (not (numberp char))
>                        (not (memq (downcase char)
>                                   '(?! ?y ?n ?\s ?\C-g)))))
>        (ding)
>        (message "Please type y, n, ! or SPC (the space bar): "))))

Hm...  that is pretty odd.  Why is it using `message' here instead of
just using that string as the prompt to `read-event'?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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