(Finsert_file_contents): Run format-decode and
[bpt/emacs.git] / src / ChangeLog
index 547d1ee..2d1a965 100644 (file)
@@ -1,3 +1,248 @@
+2007-08-07  Martin Rudalics  <rudalics@gmx.at>
+
+       * fileio.c (Finsert_file_contents): Run format-decode and
+       after_insert_file_functions on entire buffer when REPLACE is
+       non-nil and inhibit modification_hooks and point_motion_hooks.
+       For consistency, run after_insert_file_functions iff something
+       got inserted.  Move signal_after_change and update_compositions
+       after code running after_insert_file_functions.  Make sure that
+       undo_list doesn't record intermediate steps of the decoding
+       process.
+
+2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * emacs.c (main)
+       [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
+       Call malloc_enable_thread on interactive startup.
+
+       * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
+       [USE_PTHREAD] (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS)
+       (UNLOCK_ALIGNED_BLOCKS): Conditionalize with it.
+       (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
+       (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
+       New functions.
+
+2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xdisp.c (redisplay_window): When restoring original buffer
+       position, make sure it is still valid.
+
+       * image.c (png_load): Ignore png-supplied background color.
+
+2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
+       Use kCFAbsoluteTimeIntervalSince1970.
+
+       * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
+       New variable.
+       [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
+       event loop should be quit.
+       [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
+       Quit dialog event loop if quit_dialog_event_loop is set.
+
+       * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
+       (Selection): New typedef.  Use instead of ScrapRef.
+       (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
+       (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
+       (mac_clear_selection): Rename from clear_scrap.
+       (get_flavor_type_from_symbol): New argument SEL and subsume function of
+       scrap_has_target_type.   All uses changed.
+       (mac_get_selection_ownership_info, mac_valid_selection_value_p)
+       (mac_selection_has_target_p): New functions.
+       (mac_put_selection_value): Rename from put_scrap_string.
+       (mac_get_selection_value): Rename from get_scrap_string.
+       (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
+       (put_scrap_private_timestamp, scrap_has_target_type)
+       (get_scrap_private_timestamp): Remove functions.
+       (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
+       (x_own_selection, x_get_local_selection):
+       Use mac_valid_selection_value_p.
+       (x_own_selection): Don't use put_scrap_private_timestamp.
+       Record OWNERSHIP-INFO into Vselection_alist instead.
+       (x_get_local_selection): Don't check type if request is local.
+       (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
+       Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
+
+2007-08-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
+       add comment explaining why.
+
+2007-08-03  Richard Stallman  <rms@gnu.org>
+
+       * fileio.c (Fvisited_file_modtime): Use make_time.
+
+2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
+
+       * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
+       build.
+
+2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
+
+2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * puresize.h (BASE_PURESIZE): Increase to 1130000.
+
+2007-07-30  Richard Stallman  <rms@gnu.org>
+
+       * lread.c (readevalloop, read1): Treat NBSP as whitespace.
+
+2007-07-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
+
+2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
+
+       * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
+       remote default-directory.
+
+       * buffer.c (mode-line-format): Update doc string.
+
+2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
+       scroll bar gap.
+       (x_scroll_bar_create): Set bar->fringe_extended_p.
+       (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
+       on frame edge.  Check fringe background extension.  Don't clear
+       extended fringe background area.
+
+       * w32term.h (struct scroll_bar): New member fringe_extended_p.
+       (w32_fill_area): Enclose multiple statements with do ... while (0).
+
+       * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
+       Extend fringe background to scroll bar gap.
+       (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
+       Set bar->fringe_extended_p.
+       (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
+       Put leftmost/rightmost scroll bars on frame edge.  Check fringe
+       background extension.  Don't clear extended fringe background area.
+
+       * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
+       New member fringe_extended_p.
+
+2007-07-25  Glenn Morris  <rgm@gnu.org>
+
+       * Relicense all FSF files to GPLv3 or later.
+
+       * COPYING: Switch to GPLv3.
+
+2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
+
+       * data.c (Finteractive_form): Check for the presence of an
+       `interactive-form' symbol property more thoroughly.
+
+       * data.c (Finteractive_form): Use an `interactive-form' property if
+       present, analogous to the function-documentation property.
+
+2007-07-24  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (x_real_positions): Get real position from OS instead of
+       calculating it.
+
+2007-07-23  Jason Rumney  <jasonr@gnu.org>
+
+       * filelock.c (current_lock_owner): Allow for @ sign in username.
+
+2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
+
+       * xdisp.c (decode_mode_spec): Add case 'R' for to test for
+       remote default-directory.
+
+       * buffer.c (mode-line-format): Describe above case in doc string.
+
+2007-07-20  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
+       Define if not defined.
+
+2007-07-18  Jason Rumney  <jasonr@gnu.org>
+
+       * w32proc.c (w32_executable_type): Handle 64 bit executables.
+
+2007-07-18  Richard Stallman  <rms@gnu.org>
+
+       * data.c (Fsetq_default): Doc fix.
+
+       * eval.c (Fsetq): Doc fix.
+
+2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
+
+       * coding.c (Ffind_operation_coding_system):
+       * eval.c (For, Fand): Doc fixes.
+       Reported by Johan Bockg\e,Ae\e(Brd.
+
+2007-07-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
+
+       * xterm.h: Declare x_ewmh_activate_frame.
+
+       * xterm.c (x_ewmh_activate_frame): New function.
+       (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
+
+2007-07-17  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (Fdisplay_buffer): If largest or LRU window is the
+       only window, split it even if it is not eligible for splitting.
+       This restores the original behavior broken by the 2007-07-15
+       change.
+
+2007-07-17  Glenn Morris  <rgm@gnu.org>
+
+       * abbrev.c (abbrev_check_chars): New function.
+       (Fdefine_global_abbrev, Fdefine_mode_abbrev): Call
+       abbrev_check_chars to check abbrev characters are word
+       constituents.  Doc fix.
+
+2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * process.c (Fstart_process, Fmake_network_process)
+       (read_process_output): Fix up last changes.
+
+2007-07-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * makefile.w32-in (clean): Don't delete *~.
+
+2007-07-16  Andreas Schwab  <schwab@suse.de>
+
+       * window.c (Fdisplay_buffer): Use NILP.
+       (Fset_window_scroll_bars): Likewise.
+
+2007-07-15  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (window_min_size_2): New function.
+       (window_min_size_1, size_window, Fdisplay_buffer)
+       (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
+       windows without mode- or header-lines when window-min-height is
+       too small.
+       (size_window): Reset nodelete_p after testing it, following an
+       earlier note by Kim F. Storm.
+       (display_buffer): Do not set split_height_threshold to twice the
+       value of window_min_height to avoid changing the value of a
+       customizable variable.  Rather explicitly check whether the
+       height of the window that shall be splitted is at least as large
+       as split_height_threshold.
+
+2007-07-14  Jason Rumney  <jasonr@gnu.org>
+
+       * process.c [WINDOWSNT]: Don't undefine AF_INET6.
+
+2007-07-14  Richard Stallman  <rms@gnu.org>
+
+       * eval.c (maybe_call_debugger): New function.
+       (find_handler_clause): Use maybe_call_debugger.
+       Call it when the handler says `debug'.
+       Eliminate DEBUGGER_VALUE_PTR.
+       (Fsignal): Eliminate debugger_value.
+       (Qdebug): New variable.
+       (syms_of_eval): Initialize it.
+
 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
 
        * eval.c (Fprogn):
 
        * term.c: Include unistd.h only if HAVE_UNISTD_H.
 
+2007-07-11  Jason Rumney  <jasonr@gnu.org>
+
+       * makefile.w32-in (LIBS): Include OLE32.
+
+       * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
+       (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
+
 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
        when popup menu finishes.
 
        * w32fns.c (menubar_in_use): New flag.
-       (w32_wnd_proc) [WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND]:
+       (w32_wnd_proc) <WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND>:
        Use it.
 
        * w32menu.c (Fx_popup_menu): Don't free menu strings here.
        (w32_menu_show): Do it here instead.
 
-       * w32fns.c (w32_wnd_proc) [WM_INITMENU]: Set menubar_active frame
+       * w32fns.c (w32_wnd_proc) <WM_INITMENU>: Set menubar_active frame
        parameter.
 
        * w32menu.c (current_popup_menu): Make available globally.
        menu event into the keyboard buffer.  Remove menu_command_in_progress.
 
        * w32fns.c (current_popup_menu): Use from w32menu.c.
-       (w32_wnd_proc) [WM_EXITMENULOOP, WM_TIMER]: Use menubar_active
+       (w32_wnd_proc) <WM_EXITMENULOOP, WM_TIMER>: Use menubar_active
        and current_popup_menu to determine whether a menubar menu has
        been cancelled.
 
 2005-09-19  Kim F. Storm  <storm@cua.dk>
 
        * editfns.c (Fformat): Don't scan past end of format string that
-       ends in %.  Reported by: Johan Bockg\e,Ae\e(Brd.
+       ends in %.  Reported by Johan Bockg\e,Ae\e(Brd.
 
 2005-09-18  Andreas Schwab  <schwab@suse.de>
 
        * w32term.h (x_output): Add focus_state.
 
        * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
-       (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
+       (w32_read_socket) <WM_SETFOCUS>: Call w32_detect_focus_change.
 
 2005-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 
        * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
 
-       * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
+       * w32fns.c (w32_wnd_proc) <WM_MEASUREITEM, WM_DRAWITEM>:
        Handle Unicode menu titles.
 
 2004-09-07  Kim F. Storm  <storm@cua.dk>
@@ -28615,7 +28867,7 @@ See ChangeLog.9 for earlier changes.
 
   GNU Emacs is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2, or (at your option)
+  the Free Software Foundation; either version 3, or (at your option)
   any later version.
 
   GNU Emacs is distributed in the hope that it will be useful,