aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorMartin Rudalics2008-12-22 09:40:33 +0000
committerMartin Rudalics2008-12-22 09:40:33 +0000
commit56f2de103fd8ee430ae3d2f6a1b83d4aa2012f90 (patch)
tree4dcbba9b999a65c7919278eb93fd5b821f9b5b2d /src/window.c
parentcaf857eb7c7815e1d11ed706fb4a789bc92c3924 (diff)
downloademacs-56f2de103fd8ee430ae3d2f6a1b83d4aa2012f90.tar.gz
emacs-56f2de103fd8ee430ae3d2f6a1b83d4aa2012f90.zip
* frame.c (delete_frame): New function derived from
Fdelete_frame to handle Qnoelisp value for FORCE argument. Delete last frame iff FORCE equals Qnoelisp. (Bug#1450) (Fdelete_frame): Call delete_frame. Remove line from doc-string saying that FORCE non-nil doesn't run `delete-frame-functions'. * frame.h: Extern delete_frame. * window.c (window_loop): * terminal.c (delete_terminal): * xterm.c (x_connection_closed): * xfns.c (Fx_hide_tip): * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index c74b163cb9f..81fb70a17fd 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2273,7 +2273,7 @@ window_loop (type, obj, mini, frames)
2273 windows = XCDR (windows); 2273 windows = XCDR (windows);
2274 2274
2275 /* Now we can safely delete the frame. */ 2275 /* Now we can safely delete the frame. */
2276 Fdelete_frame (w->frame, Qnil); 2276 delete_frame (w->frame, Qnil);
2277 } 2277 }
2278 else if (NILP (w->parent)) 2278 else if (NILP (w->parent))
2279 { 2279 {
@@ -2334,7 +2334,7 @@ window_loop (type, obj, mini, frames)
2334 windows = XCDR (windows); 2334 windows = XCDR (windows);
2335 2335
2336 /* Now we can safely delete the frame. */ 2336 /* Now we can safely delete the frame. */
2337 Fdelete_frame (w->frame, Qnil); 2337 delete_frame (w->frame, Qnil);
2338 } 2338 }
2339 else if (!NILP (w->dedicated) && !NILP (w->parent)) 2339 else if (!NILP (w->dedicated) && !NILP (w->parent))
2340 { 2340 {
@@ -6909,7 +6909,7 @@ foreach_window (f, fn, user_data)
6909 int (* fn) P_ ((struct window *, void *)); 6909 int (* fn) P_ ((struct window *, void *));
6910 void *user_data; 6910 void *user_data;
6911{ 6911{
6912 /* Fdelete_frame may set FRAME_ROOT_WINDOW (f) to Qnil. */ 6912 /* delete_frame may set FRAME_ROOT_WINDOW (f) to Qnil. */
6913 if (WINDOWP (FRAME_ROOT_WINDOW (f))) 6913 if (WINDOWP (FRAME_ROOT_WINDOW (f)))
6914 foreach_window_1 (XWINDOW (FRAME_ROOT_WINDOW (f)), fn, user_data); 6914 foreach_window_1 (XWINDOW (FRAME_ROOT_WINDOW (f)), fn, user_data);
6915} 6915}