X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/fdb55376957997218000639c9eed2b061b10ee05..6809ca75357057d1068e3a687b320d00d12322e4:/src/ChangeLog diff --git a/src/ChangeLog b/src/ChangeLog index a5d816b912..3a57c0a622 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,20 +1,534 @@ +2009-07-07 Kenichi Handa + + * character.h (unibyte_has_multibyte_table): Delete extern. + (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it. + + * charset.c (Fset_charset_priority): Update charset_unibyte. + (syms_of_charset): Initialize charset_unibyte. + + * character.c (unibyte_has_multibyte_table): Delete it. + (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking + charset_unibyte. + (multibyte_char_to_unibyte_safe): Likewise. + (Funibyte_char_to_multibyte): Don't check charset_unibyte. + + * xdisp.c (get_next_display_element): Decode it->c by + charset_unibyte. + (x_produce_glyphs): Likewise. + + * .gdbinit (xcharset): Fix the treating $arg0. + +2009-07-04 Eli Zaretskii + + Emulation of `getloadavg' on MS-Windows. + * w32.c: Include float.h + (g_b_init_get_native_system_info, g_b_init_get_system_times) + (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare. + (get_native_system_info, get_system_times): New functions. + (buf_next, buf_prev, sample_system_load, getavg): New subroutines. + (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo. + (globals_of_w32): Initialize g_b_init_get_native_system_info, + g_b_init_get_system_times, and num_of_processors. + +2009-07-03 Jason Rumney + + * w32term.c (w32_initialize): Use standard types. + +2009-07-03 Eli Zaretskii + + * dired.c (Ffile_attributes): Decode user and group names by the + locale's encoding. (Bug#3443) + +2009-07-03 Dan Nicolaescu + + * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused. + (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused. + + * callproc.c (child_setup): Use #else instead of a separate #ifdef. + + * term.c (init_tty): Remove spurious #ifdef. + + * m/mips.h: Mention this file is also used for netbsd. + * m/pmax.h: Remove file. + +2009-07-03 Jan Djärv + + * xterm.h (struct x_display_info): Add invisible_cursor. + (struct x_output): Add current_cursor. + + * xterm.c (XTtoggle_invisible_pointer): New function. + (x_define_frame_cursor): Don't define cursor if invisible or the + same as before. Set current_cursor. + (x_create_terminal): Set toggle_invisible_pointer_hook. + + * xfns.c (make_invisible_cursor): New function. + (x_set_mouse_color): Call make_invisible_cursor. + Set current_cursor. + (x_window): Set current_cursor. + + * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook. + + * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after + inserting a character. + (read_avail_input): Call frame_make_pointer_visible. + + * frame.c (Vmake_pointer_invisible): New variable. + (frame_make_pointer_invisible, frame_make_pointer_visible): New + functions. + (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt. + + * frame.h: Declare frame_make_pointer_invisible and + frame_make_pointer_visible. + (struct frame): Add pointer_invisible. + +2009-07-02 Jan Djärv + + * gtkutil.c (xg_frame_set_char_size): Do set width/height if the + frame isn't visible. + (xg_frame_resized): If width/height is -1, get size of window + from X server. + + * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK + for MapNotify. + + * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height + here or call change_frame_size. Just call flush_and_sync. + (flush_and_sync): Reintroduced. + +2009-07-01 Jan Djärv + + * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky + + * xterm.c (x_handle_net_wm_state): Also look for sticky. + (x_term_init): Initialize Xatom_net_wm_state_sticky. + + * frame.h: Declare Qsticky. + + * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky. + + * nsfns.m (ns_frame_parm_handlers): Ditto. + + * frame.c: Declare Qsticky. + (frame_parms): Add sticky. + + * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky. + + * xterm.h: Declare x_set_sticky. + + * xterm.c (x_set_sticky): New function. + + * gtkutil.c (xg_tool_bar_proxy_help_callback): New function. + (xg_tool_bar_menu_proxy): Attach enter/leave events to + xg_tool_bar_proxy_help_callback. + + * emacs.c (USAGE3, standard_args): Add -mm and --maximized. + + * frame.c: Qmaximized is new. + (x_set_frame_parameters): Do not handle fullscreen specially. + Only set width and height if explicitly set. + (x_set_fullscreen): Handle Qmaximized. + (x_set_font, x_figure_window_size): Do not handle fullscreen specially. + (syms_of_frame): Initialize Qmaximized. + + * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED. Declare + Qfullwidth, Qfullheight, Qfullboth, Qmaximized. + + * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen + for Expose event. Add call to x_check_fullscreen for MapNotify event. + Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not + set gravity to NorthWestGravity when USE_GTK. + (set_wm_state): New function. + (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED. + (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED. + (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen + or the case when no window manager is running. That means remove calls + to x_real_positions and x_fullscreen_adjust. + + * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove. + (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and + flush_and_sync. + (xg_height_changed): New function. + (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request + and gtk_window_set_policy. Set frame gravity after parsing the geometry + string. + (xg_update_frame_menubar, free_frame_menubar) + (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback) + (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed. + Remove calls to xg_frame_set_char_size. + +2009-07-01 Kenichi Handa + + * keyboard.c (decode_keyboard_code): New function. + (tty_read_avail_input): Decode the input bytes if necessary. + + * coding.c (setup_coding_system): Initialize + coding->carryover_bytes to 0. + (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil, + use Qno_conversion. + +2009-07-01 YAMAMOTO Mitsuharu + + * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc. + +2009-06-30 Chong Yidong + + * xftfont.c (xftfont_open): Avoid passing NULL argument to + XftLockFace. + +2009-06-30 Jason Rumney + + * w32term.c (w32_initialize): Use GetModuleHandle for library that + is already loaded. + Set user model ID if supported (bug#1849). + +2009-06-29 Jim Meyering + + Remove useless if-before-xfree test. + * nsfont.m (nsfont_close): Remove useless test. + * term.c (delete_tty): Likewise. + * w32.c (system_process_attributes): Likewise. + * w32font.c (w32font_close): Likewise. + * xfaces.c (x_free_gc): Likewise. + * xselect.c (buffer): Likewise. + +2009-06-28 Andreas Schwab + + * process.c (send_process): Keep decoded string in a local + variable and protect it from GC. (Bug#3521) + +2009-06-28 Eli Zaretskii + + * term.c (create_tty_output) [MSDOS]: #ifdef away. + (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version. + +2009-06-28 Chong Yidong + + * xdisp.c (start_display, handle_face_prop) + (move_it_vertically_backward, cursor_row_fully_visible_p) + (redisplay_window, try_window_id, produce_image_glyph): Delete + some #ifdef-ed out code chunks that are now obsolete. + + * xterm.c (x_update_window_begin, x_new_focus_frame) + (x_scroll_bar_handle_click, handle_one_xevent) + (handle_one_xevent, XTread_socket, x_focus_on_frame) + (x_make_frame_visible, x_make_frame_invisible) + (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out + code chunks that are now obsolete. + +2009-06-28 Michael Albinus + + * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function + xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile + for hours, when optimzation is enabled. + (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize) + (xd_read_message): Make them static. + +2009-06-27 Chuck Blake (tiny change) + + * term.c (turn_on_face): Allow simultaneously bold and dim + terminal faces (Bug#3530). + +2009-06-27 Chong Yidong + + * frame.c (x_get_arg): Check if dpyinfo is non-NULL. + + * xdisp.c (mouse_face_from_buffer_pos): Fix detection of + truncation glyphs (Bug#3686). + +2009-06-27 Glenn Morris + + * m/pmax.h: Restore file, with only netbsd portions. + +2009-06-26 David Reitter + + * nsterm.m (keydown): Avoid infinite loop. + +2009-06-26 Peter Jolly (tiny change) + + * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as + the arg FORCE_SYMBOL. + +2009-06-25 Kenichi Handa + + * fontset.c (fontset_find_font): When a usable rfont_def is found + in a fallback font-group, make it the first element of the group. + +2009-06-24 Chong Yidong + + * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671). + +2009-06-24 Kenichi Handa + + * fontset.c (fontset_get_font_group): Return 0 if no font-group is + set for C. + (fontset_font): Record the availability of a font for C both in + the realized fontsets of the current one and the default one. + +2009-06-23 Dan Nicolaescu + + * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS + conditional, it is always defined on AIX. + +2009-06-23 Miles Bader + + * window.c (Vrecenter_redisplay): New variable. + (syms_of_window): Initialize it. + (Qtty): New extern declaration. + (Frecenter): Only do redisplay if Vrecenter_redisplay requests it. + +2009-06-23 Jim Meyering + + * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use + xmalloc and xrealloc (not malloc and realloc), so subsequent heap + pointer dereferences are guaranteed to be valid. + +2009-06-23 Kenichi Handa + + * emacs.c (main): Call init_font (). + + * font.h (Vfont_log): Extern it. + (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros. + + * font.c (font_sort_entities, font_list_entities) + (font_matching_entity, font_open_entity) + (font_close_object): Change font_add_log to FONT_ADD_LOG. + (Vfont_log): Delete static. + (font_log_env_checked): Delete this variable. + (font_add_log): Don't check font_log_env_checked. + (font_deferred_log): Check Vfont_log. + (init_font): New function. + + * ftfont.c: Change font_add_log to FONT_ADD_LOG. + + * w32font.c: Change font_add_log to FONT_ADD_LOG. + + * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG. + + * xfont.c: Change font_add_log to FONT_ADD_LOG. + + * fontset.c (fontset_font): Call FONT_DEFERRED_LOG. + (face_for_char): Don't call font_deferred_log here. + (font_for_char): Likewise. + +2009-06-22 Chong Yidong + + * w32term.c (x_draw_glyph_string): Use the glyph string's width + rather than its background_width for drawing the overline and + underline (Bug#489). + + * xterm.c (x_draw_glyph_string): Use the glyph string's width + rather than its background_width for drawing the overline and + underline (Bug#489). + (xg_default_icon_file): New variable. + (syms_of_xterm): Initialize it to the Emacs SVG icon file. + (x_bitmap_icon): Under GTK, use xg_default_icon_file. + + * xdisp.c (Qbefore_string, Qafter_string): Add externs. + (load_overlay_strings): Remove externs. + (fast_find_position): Function deleted. + (mouse_face_from_buffer_pos): New function, based on + fast_find_position. Correctly handle before-strings, + display-strings, and after-strings (Bug#1220). + (note_mouse_highlight): Use mouse_face_from_buffer_pos. + +2009-06-21 Chong Yidong + + * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for + !HAVE_WINDOW_SYSTEM. + (move_it_in_display_line_to, move_it_in_display_line_to) + (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM. + +2009-06-21 Chong Yidong + + * Branch for 23.1. + +2009-06-21 Jason Rumney + + * w32term.c (keyboard_codepage): New static variable. + (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it. + (w32_read_socket) [WM_CHAR]: Use it to decode character + input (bug#3237). + (w32_initialize): Initialize it. + (codepage_for_locale): New function. + +2009-06-20 Ken Raeburn + + * process.c (status_message): Pass Faset index argument as a lisp + object, so as to work with USE_LISP_UNION_TYPE. + +2009-06-19 YAMAMOTO Mitsuharu + + * coding.c (Ffind_coding_systems_region_internal): + Cache checked characters. + +2009-06-18 Kenichi Handa + + * coding.c (decode_coding_iso_2022): Check MSB of bytes more + rigidly. + +2009-06-18 Andreas Schwab + + * xdisp.c (redisplay_internal): Check that the frame is still + live after redisplay of its windows. + (redisplay_windows): Check that the window is still live. + +2009-06-17 Andreas Schwab + + * coding.c (detect_coding_utf_16): Fix previous change. + +2009-06-16 Kenichi Handa + + * coding.c (detect_coding_utf_16): Fix the logic of rejecting + UTF-16 by checking the dispersion of Eth and Oth bytes. + +2009-06-15 Andreas Schwab + + * coding.c (detect_coding_utf_16): Fix typo counting odd bytes. + +2009-06-15 Kenichi Handa + + * process.c (status_message): Fix previous change. Be sure to + decode a localized string. + +2009-06-15 YAMAMOTO Mitsuharu + + * xterm.c (x_delete_terminal): Put previous change in #if 0 and + add comment explaining why. + +2009-06-14 Sidney Markowitz + + * nsmenu.m (EmacsTooltip: setText): Set height of tooltip. + +2009-06-14 Adrian Robert + + * nsfont.m (ns_attribute_value): Remove. + (ns_attribute_fvalue): Incorporate code from ns_attribute_value. + (ns_has_attribute): Shrink the normal range. + (ns_findfonts): Don't worry about requested spec in determining + need for synthItal. + (ns_get_covering_families): Retain scriptToFamilies. + +2009-06-14 Seiji Zenitani + + * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon. + +2009-06-11 Kenichi Handa + + * xdisp.c (x_get_glyph_overhangs): Fix calculation of right + overhang for the static composition case. + +2009-06-11 YAMAMOTO Mitsuharu + + * xdisp.c (x_get_glyph_overhangs): Fix calculation of right + overhang for the automatic composition case. + + * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic + composition case. + +2009-06-10 Chong Yidong + + * xdisp.c (get_next_display_element): When handling wrap-prefix + and line-prefix, treat \n as a control character (bug#3502). + +2009-06-10 Kenichi Handa + + * font.c (font_parse_family_registry): Fix for one-char foundry. + (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX]. + +2009-06-09 Dmitry Dzhus (tiny change) + + * process.c (status_message): Fix handling of multibyte signal + string (Bug#3499). + +2009-06-09 Jim Meyering + + * xfaces.c (Fx_load_color_file): Avoid array bounds error if the + color name is missing. + +2009-06-09 Kenichi Handa + + * charset.c (Fmap_charset_chars): In docstring, state clearly that + FROM-CODE and TO-CODE are codepoints of CHARSET. + +2009-06-08 Adrian Robert + + * nsterm.m (ns_use_system_highlight_color): Drop, unused. + +2009-06-08 Adrian Robert + + Changes to support :script/:lang/:otf in NS font driver. + * nsfont.m (nsfont_escape_name, nsfont_unescape_name) + (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to + indicate not part of font driver interface, and change callers. + (ns_get_family): Remove pointless null check. + (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with + ns_spec_to_descriptor, ns_descriptor_to_entity. + (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove. + (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute) + (ns_spec_to_descriptor, ns_descriptor_to_entity) + (ns_charset_covers, ns_lang_to_script, ns_otf_to_script) + (ns_get_req_script, ns_accumulate_script_ranges) + (ns_script_to_charset, ns_get_covering_families, ns_findfonts): + New functions. + (nsfont_list, nsfont_match): Use ns_findfonts. + (nsfont_open): Use font descriptor instead of traits. + (nsfont_draw): Handle "automatic" (lookup-table) compositions. + (dump_glyphstring): Rename to ns_dump_glyphstring. + + * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring. + + * nsfns.m (Fns_popup_font_panel): Use shared font manager. + + * fontset.c (fontset_from_font): Remove NS-specific code. + +2009-06-08 Peter Jones (tiny change) + + * nsterm.m (ns_draw_window_cursor): Respect cursor_type for + nonactive windows. + +2009-06-08 Felix Mueller (tiny change) + + * nsterm.m (ns_init_paths): Append path separator to INFOPATH + variable. + +2009-06-08 Wolfgang Lux (tiny change) + + * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu. + +2009-06-07 Chong Yidong + + * xdisp.c (move_it_in_display_line_to): On text-only terminals, + account for the overflowing of newlines into the last glyph on the + display line (Bug#3482). + +2009-06-05 David Reitter + + * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p) + (Fx_selection_owner_p): Rename from Fns_own_selection_internal, + Fns_selection_exists_p, Fns_selection_owner_p. + 2009-06-03 Jason Rumney * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if available. (Bug#3379) -2009-05-25 David Reitter +2009-05-29 Kenichi Handa + + * coding.c (get_translation_table): Check + Venable_character_translation. + +2009-05-26 David Reitter - * nsterm.m (ns_raise_frame): only raise frame if visible. - (x_make_frame_visible): move frame to front rather than calling + * nsterm.m (ns_raise_frame): Only raise frame if visible. + (x_make_frame_visible): Move frame to front rather than calling ns_raise_frame(). - (keyDown:) do not swallow events that aren't re-sent if frame + (keyDown:): Do not swallow events that aren't re-sent if frame isn't key window. - (drawRect:) do not set visibility/iconified flags because + (drawRect:): Do not set visibility/iconified flags because drawRect may be called by NSView even if the frame is hidden. - * nsfns.m (Fx_create_frame): follow other ports in - determining visibility; default to t. Ensure async_visible is set. + * nsfns.m (Fx_create_frame): Follow other ports in + determining visibility; default to t. Ensure async_visible is set. 2009-05-23 Eli Zaretskii @@ -107,13 +621,13 @@ 2009-05-07 David Reitter - * nsterm.m (ns_dumpglyphs_stretch,ns_dumpglyphs_image): - respect mouse face background. + * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image): + Respect mouse face background. 2009-05-07 David Reitter - * nsterm.m (note_mouse_movement,ns_frame_up_to_date): - mouse movement/highlight: bracket drawing operations + * nsterm.m (note_mouse_movement, ns_frame_up_to_date): + Mouse movement/highlight: bracket drawing operations in ns_update_begin and ns_update_end. 2009-05-06 Stefan Monnier