(Fset_charset_priority): Update charset_unibyte.
[bpt/emacs.git] / src / ChangeLog
index 5ca300d..3a57c0a 100644 (file)
@@ -1,3 +1,171 @@
+2009-07-07  Kenichi Handa  <handa@m17n.org>
+
+       * 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  <eliz@gnu.org>
+
+       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  <jasonr@gnu.org>
+
+       * w32term.c (w32_initialize): Use standard types.
+
+2009-07-03  Eli Zaretskii  <eliz@gnu.org>
+
+       * dired.c (Ffile_attributes): Decode user and group names by the
+       locale's encoding.  (Bug#3443)
+
+2009-07-03  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * 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  <jan.h.d@swipnet.se>
+
+       * 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  <jan.h.d@swipnet.se>
+
+       * 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  <jan.h.d@swipnet.se>
+
+       * 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  <handa@m17n.org>
+
+       * 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  <mituharu@math.s.chiba-u.ac.jp>
 
        * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.