diff src/keyboard.c @ 104362:cc98a0640268

(syms_of_keyboard): Default to 5 buttons, which should be enough for the most common situations. Avoid SET_SYMBOL_VALUE.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 19 Aug 2009 14:39:35 +0000
parents 19668aab4711
children cd8d62c35d57
line wrap: on
line diff
--- a/src/keyboard.c	Wed Aug 19 11:23:19 2009 +0000
+++ b/src/keyboard.c	Wed Aug 19 14:39:35 2009 +0000
@@ -11973,9 +11973,9 @@
       }
   }
 
-  button_down_location = Fmake_vector (make_number (1), Qnil);
+  button_down_location = Fmake_vector (make_number (5), Qnil);
   staticpro (&button_down_location);
-  mouse_syms = Fmake_vector (make_number (1), Qnil);
+  mouse_syms = Fmake_vector (make_number (5), Qnil);
   staticpro (&mouse_syms);
   wheel_syms = Fmake_vector (make_number (4), Qnil);
   staticpro (&wheel_syms);
@@ -12330,7 +12330,7 @@
 #endif
   Qecho_area_clear_hook = intern ("echo-area-clear-hook");
   staticpro (&Qecho_area_clear_hook);
-  SET_SYMBOL_VALUE (Qecho_area_clear_hook, Qnil);
+  Fset (Qecho_area_clear_hook, Qnil);
 
   DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag,
 	       doc: /* Non-nil means menu bar, specified Lucid style, needs to be recomputed.  */);