bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: window-live-p problem with initial-frame-alist


From: Gerd Moellmann
Subject: Re: window-live-p problem with initial-frame-alist
Date: 25 Oct 2001 17:46:25 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

Philippe Waroquiers <address@hidden> writes:

> Then cut the frame in 2 (C-x 5 2).

(C-x 2)

> Use the left mouse button to drag the middle mode line (to resize the
> windows). Then, the following error is reported :
> 
> byte-code: Wrong type argument: window-live-p, t

Thanks, Philippe.  I think this should fix it:

Index: frame.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/frame.c,v
retrieving revision 1.270
retrieving revision 1.271
diff -c -r1.270 -r1.271
*** frame.c     2001/10/21 07:27:56     1.270
--- frame.c     2001/10/25 15:44:11     1.271
***************
*** 2085,2091 ****
        else if (EQ (parameter, Qdisplay) && FRAME_X_P (f))
        value = XCAR (FRAME_X_DISPLAY_INFO (f)->name_list_element);
  #endif /* HAVE_X_WINDOWS */
!       else
        {
          value = Fassq (parameter, f->param_alist);
          if (CONSP (value))
--- 2085,2092 ----
        else if (EQ (parameter, Qdisplay) && FRAME_X_P (f))
        value = XCAR (FRAME_X_DISPLAY_INFO (f)->name_list_element);
  #endif /* HAVE_X_WINDOWS */
!       else if (EQ (parameter, Qbackground_color)
!              || EQ (parameter, Qforeground_color))
        {
          value = Fassq (parameter, f->param_alist);
          if (CONSP (value))
***************
*** 2120,2132 ****
                    }
                }
            }
-         else if (EQ (parameter, Qdisplay_type)
-                  || EQ (parameter, Qbackground_mode))
-           /* Avoid consing in frequent cases.  */
-           value = Qnil;
-         else
-           value = Fcdr (Fassq (parameter, Fframe_parameters (frame)));
        }
      }
    
    return value;
--- 2121,2133 ----
                    }
                }
            }
        }
+       else if (EQ (parameter, Qdisplay_type)
+              || EQ (parameter, Qbackground_mode))
+       /* Avoid consing in frequent cases.  */
+       value = Fcdr (Fassq (parameter, f->param_alist));
+       else
+       value = Fcdr (Fassq (parameter, Fframe_parameters (frame)));
      }
    
    return value;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]