diff options
| author | Jason Rumney | 2001-02-09 10:03:42 +0000 |
|---|---|---|
| committer | Jason Rumney | 2001-02-09 10:03:42 +0000 |
| commit | 49be9f70fb66115aa898ad771d394f5589990c9c (patch) | |
| tree | 7e00e4c9fc118ed243a4fe5ee6d3763927c2b6ab /src | |
| parent | aca583b261526b80022481428b032cddb2404a6f (diff) | |
| download | emacs-49be9f70fb66115aa898ad771d394f5589990c9c.tar.gz emacs-49be9f70fb66115aa898ad771d394f5589990c9c.zip | |
(w32_encode_char): Treat eight bit graphic and control
characters the same as ASCII and latin-1.
(x_display_and_set_cursor): Check for the focus frame's selected
window instead of selected_window.
(x_after_update_window_line): Don't clear if frame's internal
border width is zero.
(x_new_font): Don't change a tooltip's size.
(w32_initialize): Set char_ins_del_ok to 1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 30 | ||||
| -rw-r--r-- | src/w32term.c | 22 |
2 files changed, 44 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a20f1ba731e..e7bc9d4aaaa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,33 @@ | |||
| 1 | 2001-02-09 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32term.c (w32_encode_char): Treat eight bit graphic and control | ||
| 4 | characters the same as ASCII and latin-1. | ||
| 5 | (x_display_and_set_cursor): Check for the focus frame's selected | ||
| 6 | window instead of selected_window. | ||
| 7 | (x_after_update_window_line): Don't clear if frame's internal | ||
| 8 | border width is zero. | ||
| 9 | (x_new_font): Don't change a tooltip's size. | ||
| 10 | (w32_initialize): Set char_ins_del_ok to 1. | ||
| 11 | |||
| 12 | * w32fns.c (Fx_show_tip): Fix calls to make_number. | ||
| 13 | (x_set_font): If font hasn't changed, avoid recomputing | ||
| 14 | faces and other things. | ||
| 15 | (x_set_tool_bar_lines): Do nothing if frame is | ||
| 16 | minibuffer-only, | ||
| 17 | (Fx_create_frame): Add the tool bar height to the frame | ||
| 18 | height. | ||
| 19 | (x_create_tip_frame): Prevent changing the tooltip's | ||
| 20 | background color by specifying a color for the default font | ||
| 21 | in .Xdefaults. | ||
| 22 | (Qcancel_timer): New variable. | ||
| 23 | (syms_of_w32fns): Initialize and staticpro it. | ||
| 24 | (Fx_hide_tip, Fx_show_tip): Use it. | ||
| 25 | (Fx_show_tip): Make sure to set tip_timer to nil when canceling | ||
| 26 | the timer. | ||
| 27 | (toplevel): Lisp code for generating parts of syms_of_w32fns removed. | ||
| 28 | |||
| 29 | * w32.c (init_environment): Duplicate local string before putenv. | ||
| 30 | |||
| 1 | 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu> | 31 | 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu> |
| 2 | 32 | ||
| 3 | * charset.c (Fstring): A typo. | 33 | * charset.c (Fstring): A typo. |
diff --git a/src/w32term.c b/src/w32term.c index 50cc6529fd3..18a613a15cb 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -758,15 +758,19 @@ x_after_update_window_line (desired_row) | |||
| 758 | 758 | ||
| 759 | if (!desired_row->mode_line_p && !w->pseudo_window_p) | 759 | if (!desired_row->mode_line_p && !w->pseudo_window_p) |
| 760 | { | 760 | { |
| 761 | struct frame *f; | ||
| 762 | int width; | ||
| 763 | |||
| 761 | BLOCK_INPUT; | 764 | BLOCK_INPUT; |
| 762 | x_draw_row_bitmaps (w, desired_row); | 765 | x_draw_row_bitmaps (w, desired_row); |
| 763 | 766 | ||
| 764 | /* When a window has disappeared, make sure that no rest of | 767 | /* When a window has disappeared, make sure that no rest of |
| 765 | full-width rows stays visible in the internal border. */ | 768 | full-width rows stays visible in the internal border. */ |
| 766 | if (windows_or_buffers_changed) | 769 | if (windows_or_buffers_changed |
| 770 | && (f = XFRAME (w->frame), | ||
| 771 | width = FRAME_INTERNAL_BORDER_WIDTH (f), | ||
| 772 | width != 0)) | ||
| 767 | { | 773 | { |
| 768 | struct frame *f = XFRAME (w->frame); | ||
| 769 | int width = FRAME_INTERNAL_BORDER_WIDTH (f); | ||
| 770 | int height = desired_row->visible_height; | 774 | int height = desired_row->visible_height; |
| 771 | int x = (window_box_right (w, -1) | 775 | int x = (window_box_right (w, -1) |
| 772 | + FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f)); | 776 | + FRAME_X_RIGHT_FLAGS_AREA_WIDTH (f)); |
| @@ -1444,7 +1448,8 @@ w32_encode_char (c, char2b, font_info, two_byte_p) | |||
| 1444 | /* If charset is not ASCII or Latin-1, may need to move it into | 1448 | /* If charset is not ASCII or Latin-1, may need to move it into |
| 1445 | Unicode space. */ | 1449 | Unicode space. */ |
| 1446 | if ( font && !font->bdf && w32_use_unicode_for_codepage (codepage) | 1450 | if ( font && !font->bdf && w32_use_unicode_for_codepage (codepage) |
| 1447 | && charset != CHARSET_ASCII && charset != charset_latin_iso8859_1) | 1451 | && charset != CHARSET_ASCII && charset != charset_latin_iso8859_1 |
| 1452 | && charset != CHARSET_8_BIT_CONTROL && charset != CHARSET_8_BIT_GRAPHIC) | ||
| 1448 | { | 1453 | { |
| 1449 | char temp[3]; | 1454 | char temp[3]; |
| 1450 | temp[0] = BYTE1 (*char2b); | 1455 | temp[0] = BYTE1 (*char2b); |
| @@ -9076,8 +9081,8 @@ x_display_and_set_cursor (w, on, hpos, vpos, x, y) | |||
| 9076 | } | 9081 | } |
| 9077 | else | 9082 | else |
| 9078 | { | 9083 | { |
| 9079 | if (w != XWINDOW (selected_window) | 9084 | if (f != FRAME_W32_DISPLAY_INFO (f)->w32_highlight_frame |
| 9080 | || f != FRAME_W32_DISPLAY_INFO (f)->w32_highlight_frame) | 9085 | || w != XWINDOW (f->selected_window)) |
| 9081 | { | 9086 | { |
| 9082 | extern int cursor_in_non_selected_windows; | 9087 | extern int cursor_in_non_selected_windows; |
| 9083 | 9088 | ||
| @@ -9339,7 +9344,8 @@ x_new_font (f, fontname) | |||
| 9339 | if (FRAME_W32_WINDOW (f) != 0) | 9344 | if (FRAME_W32_WINDOW (f) != 0) |
| 9340 | { | 9345 | { |
| 9341 | frame_update_line_height (f); | 9346 | frame_update_line_height (f); |
| 9342 | x_set_window_size (f, 0, f->width, f->height); | 9347 | if (NILP (tip_frame) || XFRAME (tip_frame) != f) |
| 9348 | x_set_window_size (f, 0, f->width, f->height); | ||
| 9343 | } | 9349 | } |
| 9344 | else | 9350 | else |
| 9345 | /* If we are setting a new frame's font for the first time, | 9351 | /* If we are setting a new frame's font for the first time, |
| @@ -10321,7 +10327,7 @@ w32_initialize () | |||
| 10321 | estimate_mode_line_height_hook = x_estimate_mode_line_height; | 10327 | estimate_mode_line_height_hook = x_estimate_mode_line_height; |
| 10322 | 10328 | ||
| 10323 | scroll_region_ok = 1; /* we'll scroll partial frames */ | 10329 | scroll_region_ok = 1; /* we'll scroll partial frames */ |
| 10324 | char_ins_del_ok = 0; /* just as fast to write the line */ | 10330 | char_ins_del_ok = 1; |
| 10325 | line_ins_del_ok = 1; /* we'll just blt 'em */ | 10331 | line_ins_del_ok = 1; /* we'll just blt 'em */ |
| 10326 | fast_clear_end_of_line = 1; /* X does this well */ | 10332 | fast_clear_end_of_line = 1; /* X does this well */ |
| 10327 | memory_below_frame = 0; /* we don't remember what scrolls | 10333 | memory_below_frame = 0; /* we don't remember what scrolls |