diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c index d14a0f74fa0..b4230100150 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -2429,16 +2429,14 @@ window_list (void) | |||
| 2429 | Vwindow_list = Qnil; | 2429 | Vwindow_list = Qnil; |
| 2430 | FOR_EACH_FRAME (tail, frame) | 2430 | FOR_EACH_FRAME (tail, frame) |
| 2431 | { | 2431 | { |
| 2432 | Lisp_Object args[2]; | 2432 | Lisp_Object arglist = Qnil; |
| 2433 | 2433 | ||
| 2434 | /* We are visiting windows in canonical order, and add | 2434 | /* We are visiting windows in canonical order, and add |
| 2435 | new windows at the front of args[1], which means we | 2435 | new windows at the front of args[1], which means we |
| 2436 | have to reverse this list at the end. */ | 2436 | have to reverse this list at the end. */ |
| 2437 | args[1] = Qnil; | 2437 | foreach_window (XFRAME (frame), add_window_to_list, &arglist); |
| 2438 | foreach_window (XFRAME (frame), add_window_to_list, &args[1]); | 2438 | arglist = Fnreverse (arglist); |
| 2439 | args[0] = Vwindow_list; | 2439 | Vwindow_list = CALLN (Fnconc, Vwindow_list, arglist); |
| 2440 | args[1] = Fnreverse (args[1]); | ||
| 2441 | Vwindow_list = Fnconc (2, args); | ||
| 2442 | } | 2440 | } |
| 2443 | } | 2441 | } |
| 2444 | 2442 | ||