(Fset_process_query_on_exit_flag): Mention killing
[bpt/emacs.git] / src / ChangeLog
index 9e1830e..05b7097 100644 (file)
@@ -1,9 +1,420 @@
+2009-07-18  Juri Linkov  <juri@jurta.org>
+
+       * process.c (Fset_process_query_on_exit_flag): Mention killing
+       a buffer in docstring.
+
+2009-07-17  Kenichi Handa  <handa@m17n.org>
+
+       * casetab.c (shuffle): Fix the logic of setting up the cycle.
+
+2009-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * nsfns.m (Fns_set_alpha): Remove function.
+       (syms_of_nsfns): Don't defsubr it.
+
+       * nsterm.m (ns_get_color): Remove incompatible color formats.
+       (ns_color_to_lisp): Generate #rrggbb color format string.
+
+2009-07-16  Richard Stallman  <rms@gnu.org>
+
+       * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
+       (Fset_buffer_auto_saved): Handle save_length = -2.
+
+2009-07-16  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xterm.c (Qx_gtk_map_stock): New var.
+
+       * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
+       of calling intern each time.
+
+2009-07-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * nsfont.m (nsfont_draw): Remove code for stippling, which actually
+       does tiling.
+
+       * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
+
+2009-07-14  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (font_vconcat_entity_vectors): New function.
+       (struct font_sort_data): New member font_driver_preference.
+       (font_compare): Check font_driver_preference.
+       (font_sort_entities): The format of the first argument changed.
+       (font_delete_unmatched): Likewise.
+       (font_list_entities): The return type changed.
+       (font_select_entity): The format of the second argument changed.
+       (font_find_for_lface): Adjusted for the above changes.  Don't
+       suppress the checking of C even if the repertory supports it.
+       (Flist_fonts): Adjusted for the above changes.
+
+       * ftfont.c (ftfont_spec_pattern): New arg langname.  Caller
+       changed.
+       (ftfont_list): Adjusted for the change of ftfont_spec_pattern.
+       Reject a font who has adstyle property that is different from a
+       langname derived from registry property.
+       (ftfont_match): Adjusted for the change of ftfont_spec_pattern.
+
+2009-07-13  Eli Zaretskii  <eliz@gnu.org>
+
+       * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
+       local copy of dirfilename.
+
+2009-07-13  Kenichi Handa  <handa@m17n.org>
+
+       * chartab.c (sub_char_table_ref_and_range): Fix the range check
+       against max_char.
+
+       * cmds.c (internal_self_insert): Check sym by SYMBOLP before
+       calling XSYMBOL (sym).
+
+2009-07-11  Eli Zaretskii  <eliz@gnu.org>
+
+       * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]: New
+       function.
+       (directory_files_internal) [WINDOWSNT]: Bind
+       w32-get-true-file-attributes to either t or nil, depending whether
+       the filesystem of the directory is fast or slow.
+
+       * w32.c (logon_network_drive): Don't assume PATH is an absolute
+       file name.
+       (is_slow_fs): New function.
+       (stat): Use it to determine whether to issue more system calls to
+       get accurate file attributes, when w32-get-true-file-attributes is
+       `local'.
+
+2009-07-10  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xfns.c (Fx_select_font): Remember last font selected in
+       x_last_font_name and use that the next time. Also try the frame
+       parameter font-parameter as default to the font dialog.
+
+2009-07-10  Kenichi Handa  <handa@m17n.org>
+
+       * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
+
+2009-07-09  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc
+       fix.
+
+       * w32.c (stat): Treat UNC file names as residing on remote
+       drives.  (Bug#3542)
+
+2009-07-09  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (fontset_find_font): Fix previous change.
+
+2009-07-08  Michael Albinus  <michael.albinus@gmx.de>
+
+       * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
+       (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
+       error flag.
+
+2009-07-08  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (fontset_find_font): Fix the logic of handling
+       charset_matched.
+       (font_for_char): Delete unused var.
+       (generate_ascii_font_name): Delete it.
+
+       * coding.h (JIS_TO_SJIS2): Fix the code range check.
+
+       * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
+       (encode_coding_sjis): Fix the code range check.
+
+2009-07-07  Chong Yidong  <cyd@stupidchicken.com>
+
+       * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
+       (Fexpand_file_name): Copy string data properly (Bug#3772).
+
+2009-07-07  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
+       first MapNotify.
+
+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.
+
+2009-06-30  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xftfont.c (xftfont_open): Avoid passing NULL argument to
+       XftLockFace.
+
+2009-06-30  Jason Rumney  <jasonr@gnu.org>
+
+       * 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  <meyering@redhat.com>
+
+       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  <schwab@linux-m68k.org>
+
+       * process.c (send_process): Keep decoded string in a local
+       variable and protect it from GC.  (Bug#3521)
+
+2009-06-28  Eli Zaretskii  <eliz@gnu.org>
+
+       * term.c (create_tty_output) [MSDOS]: #ifdef away.
+       (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
+
+2009-06-28  Chong Yidong  <cyd@stupidchicken.com>
+
+       * 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  <michael.albinus@gmx.de>
+
+       * 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  <cblake@pdos.csail.mit.edu>  (tiny change)
+
+       * term.c (turn_on_face): Allow simultaneously bold and dim
+       terminal faces (Bug#3530).
+
+2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * 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  <rgm@gnu.org>
+
+       * m/pmax.h: Restore file, with only netbsd portions.
+
+2009-06-26  David Reitter <david.reitter@gmail.com>
+
+       * nsterm.m (keydown): Avoid infinite loop.
+
+2009-06-26  Peter Jolly  <peter@jollys.org>  (tiny change)
+
+       * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
+       the arg FORCE_SYMBOL.
+
+2009-06-25  Kenichi Handa  <handa@m17n.org>
+
+       * 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  <cyd@stupidchicken.com>
+
+       * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
+
+2009-06-24  Kenichi Handa  <handa@m17n.org>
+
+       * 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  <dann@ics.uci.edu>
+
+       * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
+       conditional, it is always defined on AIX.
+
+2009-06-23  Miles Bader  <miles@gnu.org>
+
+       * 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  <meyering@redhat.com>
 
-       Don't dereference NULL upon failed malloc and realloc
-       * 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.
+       * 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  <handa@m17n.org>