+2001-02-13 Gerd Moellmann <gerd@gnu.org>
+
+ * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
+ the selected window if it is showing the buffer in question.
+
+ * dired.c (directory_files_internal): Initialize errno.
+ (toplevel): Include errno.h.
+
+2001-02-13 Kenichi Handa <handa@etl.go.jp>
+
+ * xfaces.c (best_matching_font): New parameter width_ratio.
+ Multiply avgwidth by width_ratio.
+ (choose_face_font): Call best_matching_font with width_ratio
+ calculated from the column width of C.
+
+2001-02-12 Andrew Innes <andrewi@gnu.org>
+
+ The following changes are to draw box lines inside characters area
+ if line-width is negative.
+
+ * w32term.c (x_produce_image_glyph): Pay attention to the case that
+ face->box_line_width is negative.
+ (x_produce_stretch_glyph): Likewise.
+ (x_produce_glyphs): Likewise.
+ (x_estimate_mode_line_height): Likewise.
+ (x_draw_glyph_string_background): Likewise.
+ (x_draw_glyph_string_foreground): Likewise.
+ (x_draw_composite_glyph_string_foreground): Likewise.
+ (x_draw_glyph_string_box): Likewise.
+ (x_draw_image_foreground): Likewise.
+ (x_draw_image_relief): Likewise.
+ (x_draw_image_foreground_1): Likewise.
+ (x_draw_image_glyph_string): Likewise.
+
+2001-02-09 Kenichi Handa <handa@etl.go.jp>
+
+ The following changes are to draw box lines inside characters area
+ if line-width is negative.
+
+ * xterm.c (x_produce_image_glyph): Pay attention to the case that
+ face->box_line_width is negative.
+ (x_produce_stretch_glyph): Likewise.
+ (x_produce_glyphs): Likewise.
+ (x_estimate_mode_line_height): Likewise.
+ (x_draw_glyph_string_background): Likewise.
+ (x_draw_glyph_string_foreground): Likewise.
+ (x_draw_composite_glyph_string_foreground): Likewise.
+ (x_draw_glyph_string_box): Likewise.
+ (x_draw_image_foreground): Likewise.
+ (x_draw_image_relief): Likewise.
+ (x_draw_image_foreground_1): Likewise.
+ (x_draw_image_glyph_string): Likewise.
+
+ * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
+ and :line-width can be negative.
+ (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be
+ negative.
+
+2001-02-09 Jason Rumney <jasonr@gnu.org>
+
+ * w32term.c (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.
+
+ * w32fns.c (Fx_show_tip): Fix calls to make_number.
+ (x_set_font): If font hasn't changed, avoid recomputing
+ faces and other things.
+ (x_set_tool_bar_lines): Do nothing if frame is
+ minibuffer-only,
+ (Fx_create_frame): Add the tool bar height to the frame
+ height.
+ (x_create_tip_frame): Prevent changing the tooltip's
+ background color by specifying a color for the default font
+ in .Xdefaults.
+ (Qcancel_timer): New variable.
+ (syms_of_w32fns): Initialize and staticpro it.
+ (Fx_hide_tip, Fx_show_tip): Use it.
+ (Fx_show_tip): Make sure to set tip_timer to nil when canceling
+ the timer.
+ (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
+
+ * w32.c (init_environment): Duplicate local string before putenv.
+
+2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * charset.c (Fstring): A typo.
+
+2001-02-09 Kenichi Handa <handa@etl.go.jp>
+
+ * charset.c (Fstring): If all arguments are less than 256, return
+ a unibyte string.
+
+ * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
+ return a unibyte string.
+
+ * coding.c (code_convert_region): After detecting a coding, if
+ nothing found, set coding->composing to COMPOSITION_NO.
+ (decode_coding_string): Likewise.
+
+2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
+
+ * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
+ to avoid overflow.
+
+2001-02-07 Kenichi Handa <handa@etl.go.jp>
+
+ * charset.c (parse_str_to_multibyte): New function.
+
+ * charset.h (parse_str_to_multibyte): Extern it.
+
+ * print.c (print_string): If we are going to print a unibyte
+ string into a multibyte buffer, convert the string to multibyte by
+ str_to_multibyte.
+
+2001-02-06 Andrew Innes <andrewi@gnu.org>
+
+ * w32xfns.c (select_palette): Do nothing if palette hasn't yet
+ been created. It seems we can get sent window messages such as
+ WM_ERASEBKGND before we properly update a frame.
+
+2001-02-06 Gerd Moellmann <gerd@gnu.org>
+
+ * dispnew.c (update_frame_line): Rename parameter FRAME to F.
+ Avoid some unnecessary cursor positioning.
+
+2001-02-05 Gerd Moellmann <gerd@gnu.org>
+
+ * xfaces.c (split_font_name): Compute numeric value of
+ XLFD_AVGWIDTH.
+ (LFACE_AVGWIDTH): New macro.
+ (LFACEP): Use AREF.
+ (check_lface_attrs): Check LFACE_AVGWIDTH.
+ (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
+ (set_lface_from_font_name): Set LFACE_AVGWIDTH.
+ (merge_face_vectors): Check LFACE_AVGWIDTH.
+ (Finternal_make_lisp_face): Use AREF.
+ (xm_set_menu_resources_from_menu_face)
+ (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
+ (Finternal_lisp_face_empty_p): Use AREF.
+ (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
+ (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
+ Compare average widths..
+ (best_matching_font): Arrange for comparing average widths.
+
+ * dispextern.h (enum lface_attribute_index): Add
+ LFACE_AVGWIDTH_INDEX (invisible from Lisp).
+
+2001-02-05 Dave Love <fx@gnu.org>
+
+ * puresize.h: Revert last change following loadup.el change.
+
+2001-02-05 Andrew Innes <andrewi@gnu.org>
+
+ * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
+ invocation of temacs, to work with Windows 2000.
+ (bootstrap-emacs): Ditto.
+
+2001-02-05 Gerd Moellmann <gerd@gnu.org>
+
+ * xterm.c (x_display_and_set_cursor): Check for the focus
+ frame's selected window instead of selected_window.
+
+ * xdisp.c (try_scrolling): If point is in the line below the
+ window, make sure to move the iterator at least a canonical
+ char height down.
+
+ * window.c (Fmove_to_window_line): Don't add 1 if window is
+ vscrolled.
+
+2001-02-05 Kenichi Handa <handa@etl.go.jp>
+
+ * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not. If
+ invalid, execute CCL_INVALID_CMD.
+ (ccl_driver): If the CCL program is terminated because of
+ CCL_STAT_INVALID_CMD, copy the remaining source data to the
+ destination instead of throwing them away.
+
+2001-02-02 Gerd Moellmann <gerd@gnu.org>
+
+ * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
+ faces and other things.
+
+ * xdisp.c (get_next_display_element): Fix case of empty
+ display table entry.
+
2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
+ * editfns.c (Fconstrain_to_field): Doc fix.
+
* xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
into `thoroughly', to make it consistent with the doc string.