From: Lars Ingebrigtsen Date: Fri, 5 Feb 2016 03:40:59 +0000 (+1100) Subject: Display cursor in echo area when prompting X-Git-Tag: emacs-26.0.90~2733 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fa6912fc9e9013c6ec6915c6e11e43c3d4b3e6f7;p=emacs.git Display cursor in echo area when prompting * lisp/subr.el (read-multiple-choice): Display the cursor in the echo area when prompting (bug#19368). --- diff --git a/lisp/subr.el b/lisp/subr.el index a45d4a721b7..e47570a5689 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2297,13 +2297,16 @@ Usage example: "") full-prompt) (setq tchar (condition-case nil - (read-char) + (let ((cursor-in-echo-area t)) + (read-char)) (error nil))) ;; The user has entered an invalid choice, so display the ;; help messages. (when (not (assq tchar choices)) (setq wrong-char (not (memq tchar '(?? ?\C-h))) tchar nil) + (when wrong-char + (ding)) (with-help-window (setq buf (get-buffer-create "*Multiple Choice Help*")) (with-current-buffer buf