* window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)

This commit is contained in:
Juanma Barranquero 2009-10-03 13:31:08 +00:00
parent 1b8d1cc7b6
commit dbf64827d9
2 changed files with 7 additions and 0 deletions

View 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

View 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);