]> git.eshelyaron.com Git - emacs.git/commitdiff
* xfns.c (unwind_create_frame):
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 11 Nov 2011 18:33:30 +0000 (19:33 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 11 Nov 2011 18:33:30 +0000 (19:33 +0100)
* nsfns.m (unwind_create_frame):
* w32fns.c (unwind_create_frame): Use Fmemq to check if frame is in
Vframe_list.

Fixes: debbugs:9999
src/ChangeLog
src/nsfns.m
src/w32fns.c
src/xfns.c

index fc1859a0ca582901477c1aac0ea54f5e423d4dae..049c2399caa5806232f7d8c51c5b3f9861be9bba 100644 (file)
@@ -1,3 +1,10 @@
+2011-11-11  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfns.c (unwind_create_frame):
+       * nsfns.m (unwind_create_frame):
+       * w32fns.c (unwind_create_frame): Use Fmemq to check if frame is in
+       Vframe_list (Bug#9999).
+
 2011-11-11  Dmitry Antipov  <dmantipov@yandex.ru>
 
        * xdisp.c (syms_of_xdisp): Remove duplicated definition of Qtext.
index 23362433a3973b52f546a9d96b5108910ef3bb71..20b021c6f5decb8a761f9428ba63896fa9f12f2d 100644 (file)
@@ -1057,7 +1057,7 @@ unwind_create_frame (Lisp_Object frame)
     return Qnil;
 
   /* If frame is ``official'', nothing to do.  */
-  if (!CONSP (Vframe_list) || !EQ (XCAR (Vframe_list), frame))
+  if (NILP (Fmemq (frame, Vframe_list)))
     {
 #if GLYPH_DEBUG && XASSERTS
       struct ns_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
index 6f32442514a4f3984921c7f01873ddbf0d9c6997..ffbcff866944c0f6d66548681bf32a3db568399c 100644 (file)
@@ -3986,7 +3986,7 @@ unwind_create_frame (Lisp_Object frame)
   struct frame *f = XFRAME (frame);
 
   /* If frame is ``official'', nothing to do.  */
-  if (!CONSP (Vframe_list) || !EQ (XCAR (Vframe_list), frame))
+  if (NILP (Fmemq (frame, Vframe_list)))
     {
 #if GLYPH_DEBUG
       struct w32_display_info *dpyinfo = FRAME_W32_DISPLAY_INFO (f);
index 49c4c774caec8ff0843a73eb5e6b3bc6e33cfc7a..2359a1a82c221ab6dbc2cce168019bd20795573a 100644 (file)
@@ -2929,7 +2929,7 @@ unwind_create_frame (Lisp_Object frame)
     return Qnil;
 
   /* If frame is ``official'', nothing to do.  */
-  if (!CONSP (Vframe_list) || !EQ (XCAR (Vframe_list), frame))
+  if (NILP (Fmemq (frame, Vframe_list)))
     {
 #if GLYPH_DEBUG && XASSERTS
       struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);