changeset 9764:077430ee7179

(comint-read-noecho): Use `read-char-exclusive' instead of `read-char'.
author Richard M. Stallman <rms@gnu.org>
date Tue, 01 Nov 1994 01:30:16 +0000
parents 296cd41d2601
children c48a14db3f7b
files lisp/comint.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/comint.el	Tue Nov 01 00:26:36 1994 +0000
+++ b/lisp/comint.el	Tue Nov 01 01:30:16 1994 +0000
@@ -1383,7 +1383,8 @@
       (if stars
           (message "%s%s" prompt (make-string (length ans) ?*))
         (message prompt))
-      (setq c (read-char))
+      ;; Use this instead of `read-char' to avoid "Non-character input-event".
+      (setq c (read-char-exclusive))
       (cond ((= c ?\C-g)
              ;; This function may get called from a process filter, where
              ;; inhibit-quit is set.  In later versions of emacs read-char