Commit fa90970d authored by Richard M. Stallman's avatar Richard M. Stallman

(Vtty_erase_char): Variable defined

(syms_of_keyboard): Set up Lisp variable.
Also set up `num-nonmacro-input-chars' to report actual keystrokes.
parent 4ec5cb58
......@@ -171,6 +171,9 @@ static int inhibit_local_menu_bar_menus;
/* Nonzero means C-g should cause immediate error-signal. */
int immediate_quit;
/* The user's ERASE setting. */
Lisp_Object Vtty_erase_char;
/* Character to recognize as the help char. */
Lisp_Object Vhelp_char;
......@@ -8127,11 +8130,20 @@ This includes key sequences read from keyboard macros.\n\
The number is effectively the number of interactive command invocations.");
num_input_keys = 0;
DEFVAR_INT ("num-nonmacro-input-chars", &num_nonmacro_input_chars,
"Number of characters read from the keyboard so far.\n\
Does not include characters read from keyboard macros.");
num_nonmacro_input_chars = 0;
DEFVAR_LISP ("last-event-frame", &Vlast_event_frame,
"The frame in which the most recently read event occurred.\n\
If the last event came from a keyboard macro, this is set to `macro'.");
Vlast_event_frame = Qnil;
/* This variable is set up in sysdep.c. */
DEFVAR_LISP ("tty-erase-char", &Vtty_erase_char,
"The ERASE character as set by the user with stty.");
DEFVAR_LISP ("help-char", &Vhelp_char,
"Character to recognize as meaning Help.\n\
When it is read, do `(eval help-form)', and display result if it's a string.\n\
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment