changeset 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 c31a03d47ec9
children 790054ad67dd
files src/ChangeLog src/keyboard.c
diffstat 2 files changed, 14 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Aug 19 11:23:19 2009 +0000
+++ b/src/ChangeLog	Wed Aug 19 14:39:35 2009 +0000
@@ -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).
 
--- 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.  */);