+2008-12-19 Kenichi Handa <handa@m17n.org>
+
+ * xfont.c (xfont_decode_coding_xlfd): New function.
+ (xfont_encode_coding_xlfd): New function.
+ (xfont_list_pattern): Decode XLFD by iso-8859-1.
+ (xfont_list): Decode and encode XLFD by iso-8859-1.
+ (xfont_match): Likewise.
+ (xfont_list_family): Likewise.
+ (xfont_open): Likewise.
+
+ * ftfont.c (ftfont_open): Genarate a multibyte string if given
+ names are utf-8.
+
+ * xftfont.c (xftfont_open): Genarate a multibyte string if given
+ names are utf-8.
+
+2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
+
+ * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
+ changed.
+ (xg_tool_bar_proxy_callback): Put focus on the frame after we have
+ clicked on a detached tool bar button.
+
+2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * emacs.c (main): Print and error and exit when no data is read
+ from the pipe.
+
+2008-12-17 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (w32font_has_char): Always return -1.
+
+2008-12-16 Kenichi Handa <handa@m17n.org>
+
+ * font.c (font_open_entity): Fix previous change.
+
+2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * process.c: Include <limits.h>.
+
+2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
+
+ * font.c (font_update_drivers): Fix mistake in reconstructing the
+ driver list.
+
+2008-12-16 Chong Yidong <cyd@stupidchicken.com>
+
+ * font.c (font_clear_cache): Fix format of font cache data.
+
+2008-12-15 Chong Yidong <cyd@stupidchicken.com>
+
+ * xftfont.c (xftfont_open): Free Xft font pattern if
+ XftFontOpenPattern fails.
+
+ * xterm.c (x_free_frame_resources): Remove extraneous call to
+ free_frame_faces.
+
+2008-12-13 Chong Yidong <cyd@stupidchicken.com>
+
+ * xterm.c (x_delete_display): Move xim_close_dpy call to
+ x_delete_terminal.
+ (x_delete_terminal): Call xim_close_dpy.
+
+2008-12-13 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (intern_font_name): New function.
+ (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
+ (w32font_open_internal, Fx_select_font): Decode font name.
+ (fill_in_logfont, list_all_matching_fonts): Encode font name.
+
+ * w32font.h (intern_font_name): Declare new function.
+
+ * w32uniscribe.c (add_opentype_font_name_to_list):
+ Use intern_font_name.
+
+2008-12-13 Chong Yidong <cyd@stupidchicken.com>
+
+ * frame.c (Fdelete_frame): Call free_font_driver_list.
+
+ * font.c (free_font_driver_list): Implement missing function.
+
+ * w32term.c (w32_term_init): Don't initialize the image cache
+ here; it will be done in init_frame_faces.
+
+ * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
+ (struct x_display_info): Remove unused member null_pixel. New
+ member xim_callback_data.
+
+ * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
+ (xim_initialize): Save pointer to callback function data.
+ (xim_close_dpy): Free callback function data. Call XCloseIM,
+ reverting 2008-11-04 change by David Smith.
+ (x_term_init): Don't initialize the image cache here; it will be
+ done in init_frame_faces. Remove ancient "null_pixel" cruft.
+ (x_delete_display): Free x_dnd_atoms member.
+
+2008-12-13 Kenichi Handa <handa@m17n.org>
+
+ * font.c (font_rescale_ratio): Moved from xfaces.c. Argument
+ type changed. Handle a font-spec too.
+ (font_score): Check Vface_font_rescale_alist.
+ (font_open_entity): Likewise.
+
+ * xfaces.c (font_rescale_ratio): Moved to font.c.
+
+2008-12-13 Chong Yidong <cyd@stupidchicken.com>
+
+ * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
+
+2008-12-12 Jason Rumney <jasonr@gnu.org>
+
+ * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
+ Vwindow_system_version to the real w32 major version.
+
+2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * term.c (init_tty): Move setting the terminal name before the
+ potential user: maybe_fatal.
+
+2008-12-11 Chong Yidong <cyd@stupidchicken.com>
+
+ * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
+ all callers changed. Call free_frame_faces to free the face cache.
+
+2008-12-11 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (fill_in_logfont): Don't assume symbol script means
+ SYMBOL_CHARSET.
+
+ * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
+ size for surrogates.
+
+2008-12-11 Juanma Barranquero <lekktu@gmail.com>
+
+ * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
+
+2008-12-11 Juanma Barranquero <lekktu@gmail.com>
+
+ * process.c (Fsystem_process_attributes, syms_of_process):
+ Fix typo in name of Ssystem_process_attributes.
+ Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
+
+2008-12-11 Juanma Barranquero <lekktu@gmail.com>
+
+ * syntax.c (Fmodify_syntax_entry): Doc fix.
+
+2008-12-10 Juanma Barranquero <lekktu@gmail.com>
+
+ * font.c (Ffont_spec): Move usage to end of docstring.
+
+2008-12-10 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (Qcham): New symbol.
+ (font_supported_scripts): Add cham, and comments for other new
+ scripts in bitfield from OpenType spec.
+ (add_font_entity_to_list): Limit unicode-sip fonts to those that
+ contain characters beyond the bmp.
+
+2008-12-10 Kenichi Handa <handa@m17n.org>
+
+ * ftfont.c (fc_charset_table): Add "unicode-sip".
+ (ftfont_spec_pattern): Lookup fc_charset_table for the registry
+ Qunicode_sip.
+
+2008-12-10 Juanma Barranquero <lekktu@gmail.com>
+
+ * coding.c (QCdefault_char): Rename from QCdefalut_char.
+ (Fcoding_system_put): Use QCdefault_char.
+ (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
+
+2008-12-09 Chong Yidong <cyd@stupidchicken.com>
+
+ * xftfont.c (syms_of_xftfont): Fix typo.
+
+ * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
+
+2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * emacs.c (main): Close daemon_pipe on exec.
+
+2008-12-08 Chong Yidong <cyd@stupidchicken.com>
+
+ * termchar.h (struct tty): New members termcap_term_buffer and
+ termcap_strings_buffer.
+
+ * term.c (encode_terminal_code): Free any previous memory blocks
+ before calling xmalloc for encode_terminal_src or encode_terminal_dst.
+ (maybe_fatal): Buffer argument deleted. Don't free buffer here.
+ All callers changed.
+ (init_tty): Store termcap data and string buffers in new struct
+ tty members termcap_term_buffer and termcap_strings_buffer.
+ (delete_tty): Free them.
+ (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
+
+2008-12-07 Seiji Zenitani <zenitani@mac.com>
+
+ * nsfns.m (ns_set_background_color): Remove code duplication.
+ It was a substitute for face-transparency on OS X 10.3.
+
+2008-12-06 Chong Yidong <cyd@stupidchicken.com>
+
+ * coding.c (make_conversion_work_buffer): Disable buffer
+ modification hooks in the work buffer.
+
+2008-12-05 Eli Zaretskii <eliz@gnu.org>
+
+ * process.c (procfs_system_process_attributes): If `nread' has a
+ negative value, assign zero to it.
+
+2008-12-05 Chong Yidong <cyd@stupidchicken.com>
+
+ * eval.c (Vdebug_on_error): Doc fix.
+
+2008-12-05 Kenichi Handa <handa@m17n.org>
+
+ * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
+ second character is a combining character.
+
+2008-12-05 Eli Zaretskii <eliz@gnu.org>
+
+ * process.c (procfs_system_process_attributes): Don't use cmd,
+ cmdsize, and q without initializing them first.
+
+2008-12-04 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (w32font_draw): Initialize orig_clip before getting
+ it, and delete it when finished.
+
+2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
+ case when running as a daemon before detaching.
+
+2008-12-03 Juanma Barranquero <lekktu@gmail.com>
+
+ * w32.c (init_environment): Don't unload library shell32.dll.
+
+2008-12-03 Kenichi Handa <handa@m17n.org>
+
+ * font.c (font_at): Set `multibyte' at first.
+
+ * coding.c (decode_coding_charset): Check type of an element of
+ vector VALIDS.
+ (encode_coding_emacs_mule): Be sure to set `code'.
+
+ * fontset.c (face_for_char): Handle invalid charset property correctly.
+ (font_for_char): Likewise.
+
+2008-12-03 Chong Yidong <cyd@stupidchicken.com>
+
+ * font.c (Fopen_font): Compute pixel size correctly.
+ (font_update_lface): Handle fonts with corrupted size specs,
+ i.e. non-int and non-float.
+
+ * ftfont.c (ftfont_match): Initialize entity variable.
+ (ftfont_resolve_generic_family): Avoid using uninitialized var.
+ (ftfont_list_family): Initialize list var earlier.
+
+ * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
+
+ * xterm.c (x_draw_glyph_string): Fall back on
+ underline_minimum_offset for underline position.
+
+2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
+
+ * character.c (c_string_width): Specify the type for LEN.
+
+2008-12-03 Kenichi Handa <handa@m17n.org>
+
+ * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
+ (decode_coding_utf_8): Likewise.
+ (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
+ (produce_chars): Initialize consumed_chars to 0.
+
+2008-12-02 Chong Yidong <cyd@stupidchicken.com>
+
+ * keyboard.c (make_lispy_position): Only use PT if the selected
+ window is current.
+
+2008-12-02 Andreas Schwab <schwab@suse.de>
+
+ * font.c (font_unparse_fcname): Fix use of uninitialized variable.
+
+ * doprnt.c (doprnt1): Fix size of charbuf.
+
+2008-12-02 Chong Yidong <cyd@stupidchicken.com>
+
+ * keyboard.c (timer_check): Revert last change.
+
+2008-12-02 Juanma Barranquero <lekktu@gmail.com>
+
+ * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
+
+2008-12-01 Juanma Barranquero <lekktu@gmail.com>
+
+ * makefile.w32-in: Update dependencies.
+ (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
+
+2008-12-01 Andreas Schwab <schwab@suse.de>
+
+ * font.c (register_font_driver): Use xmalloc.
+ (font_put_frame_data): Likewise.
+
+2008-12-01 Chong Yidong <cyd@stupidchicken.com>
+
+ * xfaces.c (realize_x_face): Make abort condition clearer.
+
+ * gtkutil.c (update_frame_tool_bar): Initialize variable.
+
+2008-11-30 Chong Yidong <cyd@stupidchicken.com>
+
+ * keyboard.c (timer_check): After a timer runs, ensure that the
+ selected window's buffer is current.
+
+2008-11-30 Juanma Barranquero <lekktu@gmail.com>
+
+ * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
+ It was accidentally restored by the Unicode merge.
+
+ * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
+
+2008-11-29 Juanma Barranquero <lekktu@gmail.com>
+
+ * w32proc.c: Include "coding.h".
+ (Fw32_short_file_name): Encode filename passed to Windows API.
+ (Fw32_long_file_name): Encode filename passed to Windows API and
+ decode back the result. (Bug#1433)
+
+2008-11-29 Kenichi Handa <handa@m17n.org>
+
+ * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
+ not before accessing it.
+
+ * charset.c (Fdefine_charset_internal): After calculating
+ min_char, max_char, and fastmap, copy the charset structure again.
+ (encode_char): Fix the previous change.
+
+2008-11-28 Seiji Zenitani <zenitani@mac.com>
+
+ * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
+
+ * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
+
+ * nsterm.m (x_set_frame_alpha): New function.
+
+2008-11-27 Eli Zaretskii <eliz@gnu.org>
+
+ * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
+
+2008-11-27 Juanma Barranquero <lekktu@gmail.com>
+
+ * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
+ pointer to check_face_name.
+
+2008-11-27 Kenichi Handa <handa@m17n.org>
+
+ * category.h (SET_CATEGORY_SET): Call set_category_set.
+ (set_category_set): Extern it.
+
+ * category.c (hash_get_category_set): New function.
+ (Fmodify_category_entry): Adjusted for the change of
+ char_table_ref_and_range. Call hash_get_category_set to get a
+ category set to store in the table.
+
+ * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
+ Funify_charset.
+
+ * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
+ (DECODE_CHAR): Check if the decoder vector is ready.
+ (ENCODE_CHAR): Check if the encoder char-table is ready.
+ (maybe_unify_char): Extern it.
+
+ * charset.c (Vchar_unified_charset_table): Delete it.
+ (inhibit_load_charset_map): New variable.
+ (temp_charset_work): New variable.
+ (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
+ (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
+ New macros.
+ (load_charset_map): Meaning of control_flag changed. If
+ inhibit_load_charset_map is nonzero, setup a table in
+ temp_charset_work.
+ (load_charset): New argument control_flag.
+ (map_charset_for_dump): New function.
+ (map_charset_chars): If inhibit_load_charset_map is nonzero, use
+ map_charset_for_dump.
+ (Fdefine_charset_internal): If the charset method is MAP, load
+ mapping tables by calling load_charset.
+ (Funify_charset): Don't load a mapping table but directly set
+ Vchar_unify_table.
+ (maybe_unify_char): New function.
+ (decode_char): Don't handle the deleted method MAP_DEFERRED.
+ Handle the case of inhibit_load_charset_map being nonzero.
+ (encode_char): Don't handle the deleted method MAP_DEFERRED.
+ Handle the case of inhibit_load_charset_map being nonzero.
+ (Fclear_charset_maps): Just free temp_charset_work.
+ (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
+ variable.
+
+ * chartab.c (sub_char_table_ref_and_range): Adjusted for the
+ change of char_table_ref_and_range.
+ (char_table_ref_and_range): Change the meaning of argument FROM
+ and TO. Now the caller must provide initial values for *FROM
+ and *TO.
+
+ * fontset.c (fontset_add): Adjusted for the change of
+ char_table_ref_and_range.
+ (fontset_get_font_group): Likewise.
+ (Ffontset_info): Likewise.
+
+ * keymap.c (describe_vector): Adjusted for the change of
+ char_table_ref_and_range. For char-table, put boundary between
+ non-ASCII and 8-bit characters.
+
+ * print.c (print_object): For bool-vector, delete unnecessary
+ check of ASCII_BYTE_P.
+
+2008-11-26 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (w32font_open_internal): Don't include external
+ leading in font height.
+
+2008-11-26 Glenn Morris <rgm@gnu.org>
+
+ * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
+ redefinition with ifdef. (Bug#1383)
+
+2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
+
+2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
+
+ * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
+ New EmacsView methods.
+ (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
+ Fixes bug #1048,1357,1414.
+
+2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
+
+ Fix bug #1362.
+ * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
+ is not an indexed color.
+ * nsterm.m (free_indexed_color): Add argument checking.
+ * nsfns.m: Move config.h to before system includes (advised by Dan N.).
+
+2008-11-24 Chong Yidong <cyd@stupidchicken.com>
+
+ * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
+ Document confirm-after-completion value for
+ minibuffer-completion-confirm.
+
+2008-11-24 Jason Rumney <jasonr@gnu.org>
+
+ * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
+ warning.
+
+2008-11-23 Jason Rumney <jasonr@gnu.org>
+
+ * w32uniscribe.c (uniscribe_encode_char): Ensure context is
+ restored before returning.
+
+ * w32font.c (check_face_name): New function.
+ (add_font_entity_to_list): Use it to filter out common substituted
+ fonts.
+
+2008-11-22 Martin Rudalics <rudalics@gmx.at>
+
+ * buffer.c (Fswitch_to_buffer): Reword and mention new option
+ confirm-nonexistent-file-or-buffer in doc-string.
+
+2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
+ Fix copy/paste typo. Add checks.
+
+2008-11-21 Kenichi Handa <handa@m17n.org>
+
+ * coding.c (detect_coding_iso_2022): Reject invalid composition
+ sequence.
+ (DECODE_COMPOSITION_START): If the current source is the last
+ block, and the current composition doesn't end, regard this
+ sequence as invalid.
+ (decode_coding_iso_2022): Handle invalid composition sequence.
+
+2008-11-20 Martin Rudalics <rudalics@gmx.at>
+
+ * window.c (coordinates_in_window): Don't return
+ ON_VERTICAL_BORDER for the rightmost position of a mode/header
+ line when the window is not the rightmost one. (Bug#1372)
+