changeset 86053:06d410ca9dce

(Fw32_register_hot_key): Don't try to register hot key if w32_parse_hot_key returned nil.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 13 Nov 2007 15:08:01 +0000
parents a9aea64ae4ab
children 306bd9f4ebd1
files src/w32fns.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Tue Nov 13 07:50:36 2007 +0000
+++ b/src/w32fns.c	Tue Nov 13 15:08:01 2007 +0000
@@ -8263,7 +8263,7 @@
 {
   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);