(syms_of_keyboard): Default to 5 buttons, which should be
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 Aug 2009 14:39:35 +0000 (14:39 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 Aug 2009 14:39:35 +0000 (14:39 +0000)
enough for the most common situations.  Avoid SET_SYMBOL_VALUE.

src/ChangeLog
src/keyboard.c

index 7fc04dd..fc92f40 100644 (file)
@@ -1,7 +1,12 @@
+2009-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
+       enough for the most common situations.  Avoid SET_SYMBOL_VALUE.
+
 2009-08-18  Michael Albinus  <michael.albinus@gmx.de>
 
-       * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus): New
-       functions.
+       * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
+       New functions.
        (xd_initialize): Revert change from 2009-08-16.
 
 2009-08-18  Kenichi Handa  <handa@m17n.org>
@@ -19,8 +24,7 @@
 
 2009-08-17  Ken Raeburn  <raeburn@raeburn.org>
 
-       * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the
-       value.
+       * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
        (XFLOAT_INIT): New macro for storing a float value.
        * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
        * fns.c (sxhash): Copy out the value of a float in order to
@@ -38,8 +42,8 @@
 
 2009-08-15  Michael Albinus  <michael.albinus@gmx.de>
 
-       * dbusbind.c (xd_get_dispatch_status, xd_pending_messages): New
-       functions.
+       * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
+       New functions.
 
        * lisp.h (xd_pending_messages): Declare.
 
@@ -47,8 +51,7 @@
 
 2009-08-15  Chong Yidong  <cyd@stupidchicken.com>
 
-       * eval.c (Fcalled_interactively_p, Finteractive_p): Doc
-       fix (Bug#3936).
+       * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
 
        * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
 
index 9512e4a..dfb6256 100644 (file)
@@ -11973,9 +11973,9 @@ syms_of_keyboard ()
       }
   }
 
-  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 @@ might happen repeatedly and make Emacs nonfunctional.  */);
 #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.  */);