*** empty log message ***
authorDavid Kastrup <dak@gnu.org>
Fri, 2 Mar 2007 08:45:13 +0000 (08:45 +0000)
committerDavid Kastrup <dak@gnu.org>
Fri, 2 Mar 2007 08:45:13 +0000 (08:45 +0000)
src/ChangeLog
src/keymap.c

index afb6ce8..d963330 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-02  Stuart D. Herring <herring@lanl.gov>
+
+       * keymap.c (Fkey_binding): Don't consider two-element lists as
+       events.
+
 2007-03-01  Kenichi Handa  <handa@m17n.org>
 
        * process.c (send_process_object): Check the process status and
index 6b4b853..dd126a9 100644 (file)
@@ -1612,10 +1612,10 @@ specified buffer position instead of point are used.
 
       /* We are not interested in locations without event data */
 
-      if (EVENT_HAS_PARAMETERS (event))
+      if (EVENT_HAS_PARAMETERS (event) && CONSP (XCDR (event)))
        {
          Lisp_Object kind = EVENT_HEAD_KIND (EVENT_HEAD (event));
-         if (CONSP (XCDR (event)) && EQ (kind, Qmouse_click))
+         if (EQ (kind, Qmouse_click))
            position = EVENT_START (event);
        }
     }