diff options
| author | Stefan Monnier | 2006-02-22 21:01:34 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-02-22 21:01:34 +0000 |
| commit | acc6289a44db81134e9680dd51597abe2dbbbd92 (patch) | |
| tree | d4360bf6e709ab2a5c9aae1c09c47ba9872557b2 /src | |
| parent | 78744fc3702626b26d56ab56704d27afdd6ea585 (diff) | |
| download | emacs-acc6289a44db81134e9680dd51597abe2dbbbd92.tar.gz emacs-acc6289a44db81134e9680dd51597abe2dbbbd92.zip | |
(Fwindow_list): Check `window' before doing XWINDOW.
The default `window' should not be "on a different frame".
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 22 | ||||
| -rw-r--r-- | src/window.c | 3 |
2 files changed, 18 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cb908f37e4a..2630efe73b7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * window.c (Fwindow_list): Check `window' before doing XWINDOW. | ||
| 4 | The default `window' should not be "on a different frame". | ||
| 5 | |||
| 1 | 2006-02-22 Kim F. Storm <storm@cua.dk> | 6 | 2006-02-22 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * indent.c (Fvertical_motion): Only try to move back if we can. | 8 | * indent.c (Fvertical_motion): Only try to move back if we can. |
| @@ -13,8 +18,8 @@ | |||
| 13 | * macterm.c (GC_CLIP_REGION): Remove macro. | 18 | * macterm.c (GC_CLIP_REGION): Remove macro. |
| 14 | (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION. | 19 | (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION. |
| 15 | All uses changed. Don't do clipping if n_clip_rects is zero. | 20 | All uses changed. Don't do clipping if n_clip_rects is zero. |
| 16 | (mac_set_clip_rectangles): Use xassert instead of abort. Set | 21 | (mac_set_clip_rectangles): Use xassert instead of abort. |
| 17 | n_clip_rects. Don't make clip_region empty when number of | 22 | Set n_clip_rects. Don't make clip_region empty when number of |
| 18 | clipping rectangles is zero. | 23 | clipping rectangles is zero. |
| 19 | (mac_reset_clip_rectangles): Set n_clip_rects directly instead of | 24 | (mac_reset_clip_rectangles): Set n_clip_rects directly instead of |
| 20 | calling mac_set_clip_rectangles. | 25 | calling mac_set_clip_rectangles. |
| @@ -45,8 +50,8 @@ | |||
| 45 | BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero. | 50 | BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero. |
| 46 | (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH. | 51 | (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH. |
| 47 | [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from | 52 | [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from |
| 48 | mac_draw_string_cg. New arg BG_WIDTH. All uses changed. Draw | 53 | mac_draw_string_cg. New arg BG_WIDTH. All uses changed. |
| 49 | background if BG_WIDTH is not zero. Use float constants as | 54 | Draw background if BG_WIDTH is not zero. Use float constants as |
| 50 | divisors instead of double. Use alloca instead of xmalloc/xfree. | 55 | divisors instead of double. Use alloca instead of xmalloc/xfree. |
| 51 | (x_draw_glyph_string_background, x_draw_glyph_string_foreground) | 56 | (x_draw_glyph_string_background, x_draw_glyph_string_foreground) |
| 52 | [!MAC_OS8 || USE_ATSUI]: Background may be drawn using | 57 | [!MAC_OS8 || USE_ATSUI]: Background may be drawn using |
| @@ -57,6 +62,11 @@ | |||
| 57 | (mac_set_clip_rectangles): When resetting clip region, make it | 62 | (mac_set_clip_rectangles): When resetting clip region, make it |
| 58 | empty instead of disposing of it. | 63 | empty instead of disposing of it. |
| 59 | 64 | ||
| 65 | 2006-02-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 66 | |||
| 67 | * keymap.c (store_in_keymap): Change `def' arg to not be `register'. | ||
| 68 | Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8). | ||
| 69 | |||
| 60 | 2006-02-20 Kim F. Storm <storm@cua.dk> | 70 | 2006-02-20 Kim F. Storm <storm@cua.dk> |
| 61 | 71 | ||
| 62 | * Makefile.in: Add fringe.elc to WINDOW_SUPPORT. | 72 | * Makefile.in: Add fringe.elc to WINDOW_SUPPORT. |
| @@ -82,10 +92,10 @@ | |||
| 82 | (left_curly_arrow_bits): Rename from continuation_bits. | 92 | (left_curly_arrow_bits): Rename from continuation_bits. |
| 83 | (right_curly_arrow_bits): Rename from continued_bits. | 93 | (right_curly_arrow_bits): Rename from continued_bits. |
| 84 | (left_triangle_bits): Rename from ov_bits. | 94 | (left_triangle_bits): Rename from ov_bits. |
| 85 | (right_triangle_bits): Added. | 95 | (right_triangle_bits): Add. |
| 86 | (filled_rectangle_bits): Rename from filled_box_cursor_bits. | 96 | (filled_rectangle_bits): Rename from filled_box_cursor_bits. |
| 87 | (hollow_rectangle_bits): Rename from hollow_box_cursor_bits. | 97 | (hollow_rectangle_bits): Rename from hollow_box_cursor_bits. |
| 88 | (filled_square_bits): Added. | 98 | (filled_square_bits): Add. |
| 89 | (vertical_bar_bits): Rename from bar_cursor_bits. | 99 | (vertical_bar_bits): Rename from bar_cursor_bits. |
| 90 | (horizontal_bar_bits): Rename from hbar_cursor_bits. | 100 | (horizontal_bar_bits): Rename from hbar_cursor_bits. |
| 91 | (empty_line_bits): Rename from zv_bits. | 101 | (empty_line_bits): Rename from zv_bits. |
diff --git a/src/window.c b/src/window.c index e7040e3c496..41eaf78bea0 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1861,7 +1861,8 @@ MINIBUF neither nil nor t means never include the minibuffer window. */) | |||
| 1861 | Lisp_Object frame, minibuf, window; | 1861 | Lisp_Object frame, minibuf, window; |
| 1862 | { | 1862 | { |
| 1863 | if (NILP (window)) | 1863 | if (NILP (window)) |
| 1864 | window = selected_window; | 1864 | window = FRAMEP (frame) ? XFRAME (frame)->selected_window : selected_window; |
| 1865 | CHECK_WINDOW (window); | ||
| 1865 | if (NILP (frame)) | 1866 | if (NILP (frame)) |
| 1866 | frame = selected_frame; | 1867 | frame = selected_frame; |
| 1867 | 1868 | ||