changeset 105404:60888a525c1b

* window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
author Juanma Barranquero <lekktu@gmail.com>
date Sat, 03 Oct 2009 13:31:08 +0000
parents 670a96f450ae
children 6d5195c8d57a
files src/ChangeLog src/window.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Oct 03 12:36:21 2009 +0000
+++ b/src/ChangeLog	Sat Oct 03 13:31:08 2009 +0000
@@ -1,3 +1,7 @@
+2009-10-03  Martin Rudalics  <rudalics@gmx.at>
+
+	* window.c (Fdelete_window): Check WINDOW argument.  (Bug#4618)
+
 2009-10-02  Michael Albinus  <michael.albinus@gmx.de>
 
 	* lisp.h (Qdelete_directory_internal): Removed, because it is not
--- a/src/window.c	Sat Oct 03 12:36:21 2009 +0000
+++ b/src/window.c	Sat Oct 03 13:31:08 2009 +0000
@@ -1533,6 +1533,9 @@
   struct frame *f;
   if (NILP (window))
     window = selected_window;
+  else
+    CHECK_LIVE_WINDOW (window);
+
   f = XFRAME (WINDOW_FRAME (XWINDOW (window)));
   delete_window (window);