diff options
| author | Joakim Verona | 2015-01-25 21:19:27 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-25 21:19:27 +0100 |
| commit | d522fd8ca73e668bfafd0419bc5f71f2751cca24 (patch) | |
| tree | 4b57a4d2d26e578035801f1c895dcfda5895e09d /src/window.c | |
| parent | e5087278b9bcab5847ce63d80c0d74c27f50e719 (diff) | |
| parent | a3689d3c661fe36df971c875760f8d500b5ae994 (diff) | |
| download | emacs-d522fd8ca73e668bfafd0419bc5f71f2751cca24.tar.gz emacs-d522fd8ca73e668bfafd0419bc5f71f2751cca24.zip | |
Merge branch 'master' into xwidget
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 | ||