]> git.eshelyaron.com Git - emacs.git/commitdiff
Display cursor in echo area when prompting
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2016 03:40:59 +0000 (14:40 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2016 03:40:59 +0000 (14:40 +1100)
* lisp/subr.el (read-multiple-choice): Display the cursor in
the echo area when prompting (bug#19368).

lisp/subr.el

index a45d4a721b7bc110b09d83359733053ce85d599b..e47570a56896423bdbba9238b79681b88d3c3019 100644 (file)
@@ -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