summaryrefslogtreecommitdiff
path: root/lisp/novice.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-12-22 13:34:15 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-12-22 13:34:15 +0100
commit70266929c3eb173fae0c64d56f8d402a805ca786 (patch)
treecc3cd6ec573646e1fff2add8ccb6872dc60f9374 /lisp/novice.el
parentdbd0eef0c7c412583e5c5ca1d0d256a5f5490c10 (diff)
downloademacs-70266929c3eb173fae0c64d56f8d402a805ca786.tar.gz
emacs-70266929c3eb173fae0c64d56f8d402a805ca786.tar.bz2
emacs-70266929c3eb173fae0c64d56f8d402a805ca786.zip
Simplify disabled-command-function prompting
* lisp/novice.el (disabled-command-function): Use a prompt for `read-event' instead of messaging it, so that people using Emacspeak get the prompt read to them.
Diffstat (limited to 'lisp/novice.el')
-rw-r--r--lisp/novice.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/novice.el b/lisp/novice.el
index 16766c253c5..a4d043574a7 100644
--- a/lisp/novice.el
+++ b/lisp/novice.el
@@ -88,14 +88,13 @@ SPC to try the command just this once, but leave it disabled.
;; (help-mode))
)
(fit-window-to-buffer (get-buffer-window "*Disabled Command*"))
- (message "Type y, n, ! or SPC (the space bar): ")
(let ((cursor-in-echo-area t))
- (while (progn (setq char (read-event))
+ (while (progn (setq char (read-event
+ "Type y, n, ! or SPC (the space bar): "))
(or (not (numberp char))
(not (memq (downcase char)
'(?! ?y ?n ?\s ?\C-g)))))
- (ding)
- (message "Please type y, n, ! or SPC (the space bar): "))))
+ (ding))))
(setq char (downcase char))
(pcase char
(?\C-g (setq quit-flag t))