changeset 79381:c157297ae42e

(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 12:55:45 +0000
parents 64025782b13f
children 820780e0ccd1
files src/w32fns.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Mon Nov 12 05:59:31 2007 +0000
+++ b/src/w32fns.c	Tue Nov 13 12:55:45 2007 +0000
@@ -8233,7 +8233,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);