aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-11-10 03:46:33 +0000
committerRichard M. Stallman1994-11-10 03:46:33 +0000
commit71edead178097eb7ba814ae169732ff6c4cc9b90 (patch)
tree5d31878228f1cb3b5793ee50896678ebce872c49 /src
parent2f24e04e52af3279af6612aa263ed73eb89dc3f6 (diff)
downloademacs-71edead178097eb7ba814ae169732ff6c4cc9b90.tar.gz
emacs-71edead178097eb7ba814ae169732ff6c4cc9b90.zip
(tracking_off): Test old value with NILP.
Restore the old value whatever it may be. (syms_of_keyboard): Use DEFVAR_LISP for track-mouse.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 80801cbd169..2be24b4f007 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1952,10 +1952,9 @@ static Lisp_Object
1952tracking_off (old_value) 1952tracking_off (old_value)
1953 Lisp_Object old_value; 1953 Lisp_Object old_value;
1954{ 1954{
1955 if (! XFASTINT (old_value)) 1955 do_mouse_tracking = old_value;
1956 if (NILP (old_value))
1956 { 1957 {
1957 do_mouse_tracking = Qnil;
1958
1959 /* Redisplay may have been preempted because there was input 1958 /* Redisplay may have been preempted because there was input
1960 available, and it assumes it will be called again after the 1959 available, and it assumes it will be called again after the
1961 input has been processed. If the only input available was 1960 input has been processed. If the only input available was
@@ -6400,7 +6399,7 @@ and the minor mode maps regardless of `overriding-local-map'.");
6400 Voverriding_local_map_menu_flag = Qnil; 6399 Voverriding_local_map_menu_flag = Qnil;
6401 6400
6402#ifdef HAVE_MOUSE 6401#ifdef HAVE_MOUSE
6403 DEFVAR_BOOL ("track-mouse", &do_mouse_tracking, 6402 DEFVAR_LISP ("track-mouse", &do_mouse_tracking,
6404 "*Non-nil means generate motion events for mouse motion."); 6403 "*Non-nil means generate motion events for mouse motion.");
6405#endif 6404#endif
6406 6405