aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-19 02:35:09 +0000
committerRichard M. Stallman1997-05-19 02:35:09 +0000
commitfa90970d22959b8f3d1d2d55973a4344f3298e4e (patch)
tree12dcfea3b80a3264820d2bc8a896eda8d4e5d40a
parent4ec5cb58ba8f3009a6fc1232ce35b2b7a322d747 (diff)
downloademacs-fa90970d22959b8f3d1d2d55973a4344f3298e4e.tar.gz
emacs-fa90970d22959b8f3d1d2d55973a4344f3298e4e.zip
(Vtty_erase_char): Variable defined
(syms_of_keyboard): Set up Lisp variable. Also set up `num-nonmacro-input-chars' to report actual keystrokes.
-rw-r--r--src/keyboard.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index f299bd01e2d..b221da53d7c 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -171,6 +171,9 @@ static int inhibit_local_menu_bar_menus;
171/* Nonzero means C-g should cause immediate error-signal. */ 171/* Nonzero means C-g should cause immediate error-signal. */
172int immediate_quit; 172int immediate_quit;
173 173
174/* The user's ERASE setting. */
175Lisp_Object Vtty_erase_char;
176
174/* Character to recognize as the help char. */ 177/* Character to recognize as the help char. */
175Lisp_Object Vhelp_char; 178Lisp_Object Vhelp_char;
176 179
@@ -8127,11 +8130,20 @@ This includes key sequences read from keyboard macros.\n\
8127The number is effectively the number of interactive command invocations."); 8130The number is effectively the number of interactive command invocations.");
8128 num_input_keys = 0; 8131 num_input_keys = 0;
8129 8132
8133 DEFVAR_INT ("num-nonmacro-input-chars", &num_nonmacro_input_chars,
8134 "Number of characters read from the keyboard so far.\n\
8135Does not include characters read from keyboard macros.");
8136 num_nonmacro_input_chars = 0;
8137
8130 DEFVAR_LISP ("last-event-frame", &Vlast_event_frame, 8138 DEFVAR_LISP ("last-event-frame", &Vlast_event_frame,
8131 "The frame in which the most recently read event occurred.\n\ 8139 "The frame in which the most recently read event occurred.\n\
8132If the last event came from a keyboard macro, this is set to `macro'."); 8140If the last event came from a keyboard macro, this is set to `macro'.");
8133 Vlast_event_frame = Qnil; 8141 Vlast_event_frame = Qnil;
8134 8142
8143 /* This variable is set up in sysdep.c. */
8144 DEFVAR_LISP ("tty-erase-char", &Vtty_erase_char,
8145 "The ERASE character as set by the user with stty.");
8146
8135 DEFVAR_LISP ("help-char", &Vhelp_char, 8147 DEFVAR_LISP ("help-char", &Vhelp_char,
8136 "Character to recognize as meaning Help.\n\ 8148 "Character to recognize as meaning Help.\n\
8137When it is read, do `(eval help-form)', and display result if it's a string.\n\ 8149When it is read, do `(eval help-form)', and display result if it's a string.\n\