]> git.eshelyaron.com Git - emacs.git/commitdiff
* window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
authorJuanma Barranquero <lekktu@gmail.com>
Sat, 3 Oct 2009 13:31:08 +0000 (13:31 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Sat, 3 Oct 2009 13:31:08 +0000 (13:31 +0000)
src/ChangeLog
src/window.c

index 4226e20fd1b0b1634b4f69ab1c100e1d65bb0c24..7c5c49ccf3e1190680ccdcdb84d995ff3299a53e 100644 (file)
@@ -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
index 08fd8c829fa0eabe7388523f3865e5b661ff55ed..9b50a85b0ca021eab112c06d87a4a69987c8cf86 100644 (file)
@@ -1533,6 +1533,9 @@ Signal an error when WINDOW is the only window on its frame.  */)
   struct frame *f;
   if (NILP (window))
     window = selected_window;
+  else
+    CHECK_LIVE_WINDOW (window);
+
   f = XFRAME (WINDOW_FRAME (XWINDOW (window)));
   delete_window (window);