(Fw32_register_hot_key): Don't try to register
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 13 Nov 2007 15:09:34 +0000 (15:09 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 13 Nov 2007 15:09:34 +0000 (15:09 +0000)
hot key if w32_parse_hot_key returned nil.

src/ChangeLog
src/w32fns.c

index 4cf00fc..b8a8445 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
+
+       * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
+       if w32_parse_hot_key returned nil.
+
 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * xdisp.c (load_overlay_strings): Fix copy&paste typo.
 2007-11-01  Johan Bockg\e,Ae\e(Brd  <bojohan@gnu.org>
 
        * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
-        Don't set s->stippled_p here, since it has already been set by
+       Don't set s->stippled_p here, since it has already been set by
        x_set_glyph_string_gc from x_draw_glyph_string.
 
 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
index 6199b16..c8daa64 100644 (file)
@@ -8263,7 +8263,7 @@ The return value is the hotkey-id if registered, otherwise nil.  */)
 {
   key = w32_parse_hot_key (key);
 
-  if (NILP (Fmemq (key, w32_grabbed_keys)))
+  if (!NILP (key) && NILP (Fmemq (key, w32_grabbed_keys)))
     {
       /* Reuse an empty slot if possible.  */
       Lisp_Object item = Fmemq (Qnil, w32_grabbed_keys);