*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
index fbf38e2..3c72b4e 100644 (file)
@@ -1,3 +1,612 @@
+2005-06-04  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
+       (open_unc_volume): Cast return value of map_w32_filename, to avoid
+       compiler warnings.
+
+       * s/ms-w32.h (fileno): Don't define if already defined.
+
+       * emacs.c: Include w32heap.h, to avoid compiler warning about
+       sbrk.
+
+       * makefile.w32-in (DOC): Define to point to the generated DOC-X.
+
+2005-06-04  Richard M. Stallman  <rms@gnu.org>
+
+       * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
+
+2005-06-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * macmenu.c (cleanup_popup_menu): New function.
+       (Fx_popup_menu): unwind protect cleanup_popup_menu in case
+       mac_menu_show Quit:s.
+       (mac_menu_show): Quit on cancel if not popped up on click (i.e.
+       a dialog).
+
+2005-06-04  Kim F. Storm  <storm@cua.dk>
+
+       * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
+
+       * callproc.c (Fcall_process): Don't use alloca to gradually
+       increase size of buf, as it effectively uses twice the necessary
+       space on the stack.  Instead, pre-allocate buf of full size, and
+       gradually increase the read size.
+
+       * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
+
+       * eval.c (unbind_to): Preserve value of Vquit_flag.
+
+       * xterm.c (handle_one_xevent): Also ignore mouse motion just
+       before a button release event.
+
+2005-06-03  Juanma Barranquero  <lekktu@gmail.com>
+
+       * xfaces.c (Finternal_lisp_face_equal_p): Really report
+       on faces in a frame, if the argument FRAME is non-nil.
+       Improve argument/docstring consistency.
+
+2005-06-02  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
+       (x_consider_frame_title, Fformat_mode_line): Save offset into
+       mode_line_noprop_buf rather than pointer, in case buffer is relocated.
+
+2005-06-01  Kim F. Storm  <storm@cua.dk>
+
+       * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
+
+2005-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
+       resolution fields for scalable fonts to 0.
+
+       * xfaces.c (build_scalable_font_name): Round pixel size to the
+       nearest integer.
+
+2005-06-01  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (display_mode_line): Support nested calls to redisplay
+       and format-mode-line.  Set mode_line_target to MODE_LINE_DISPLAY.
+
+2005-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * fileio.c (Finsert_file_contents):
+       * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
+
+2005-05-31  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
+       (mode_line_noprop_ptr): Rename from frame_title_*.
+       (store_mode_line_noprop_char): Rename from store_frame_title_char.
+       (store_mode_line_noprop): Rename from store_frame_title.
+       (mode_line_target): New enum to specify current output target
+       for mode line formatting.
+       (display_mode_element): Test it rather than frame_title_ptr and
+       mode_line_string_list to determine where output should go.
+       (mode_line_proptrans_alist, mode_line_string_alist): Make static.
+       (Vmode_line_unwind_vector): New variable.
+       (format_mode_line_unwind_data, unwind_format_mode_line):
+       New functions for unwind protection in mode line formatting.
+       (x_consider_frame_title): Use them and new local var 'title_start'
+       to support nested calls to format-mode-line and redisplay.  Set
+       mode_line_target to MODE_LINE_TITLE.
+       (Fformat_mode_line): Use them and new local var 'string_start' to
+       support nested calls to format-mode-line and redisplay.  Set
+       mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
+       Don't trim trailing dashes.
+       (decode_mode_spec): Don't make infinite number of trailing dashes
+       for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
+       (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
+       mode_line_string_face_prop, and Vmode_line_unwind_vector.
+       (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
+       Initialize mode_line_target to MODE_LINE_DISPLAY.
+
+2005-05-29  Richard M. Stallman  <rms@gnu.org>
+
+       * buffer.c (Fbuffer_local_value): Call indirect_variable.
+
+2005-05-28  Masatake YAMATO  <jet@gyve.org>
+
+       * xdisp.c (note_mode_line_or_margin_highlight): Change the
+       pointer to a hand cursor when hoovering over a mouse-face.
+
+2005-05-27  Kenichi Handa  <handa@m17n.org>
+
+       * xterm.c (x_encode_char): Call check_ccl_update in advance.
+
+       * ccl.c: Now an element of Vccl_program_table is a vector of
+       length 4, not 3.
+       (ccl_get_compiled_code): New arg idx.  Caller changed.
+       Adjust for the change of Vccl_program_table.
+       (setup_ccl_program): Adjust for the change of Vccl_program_table.
+       (check_ccl_update): New function.
+       (Fregister_ccl_program): Use ASET to set an element of a vector.
+       Adjusted for the change of Vccl_program_table.
+
+       * ccl.h (struct ccl_program): New member idx.
+       (check_ccl_update): Extern it.
+
+2005-05-27  Juanma Barranquero  <lekktu@gmail.com>
+
+       * image.c (Vimage_library_alist): Move from image.el.
+       (syms_of_image): Defvar it.
+       (lookup_image_type): Use it.
+
+       * buffer.c (Fbuffer_local_value): Make argument name match its use
+       in docstring.
+
+2005-05-26  Juanma Barranquero  <lekktu@gmail.com>
+
+       * keyboard.c (Frecursive_edit): Fix typo in docstring.
+       (Fposn_at_x_y): Make argument name match its use in docstring.
+
+2005-05-26  Lute Kamstra  <lute@gnu.org>
+
+       * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
+
+2005-05-24  Masatake YAMATO  <jet@gyve.org>
+
+       * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
+       as loop sentinels.
+
+2005-05-24  Nick Roberts  <nickrob@snap.net.nz>
+
+       * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
+       select frame title ("Question"/"Information").
+       (xdialog_show): Use it.
+
+       * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
+
+       * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
+
+       * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
+       a third argument (Qnil).
+
+       * lisp.h: x-popup-dialog can have three arguments.
+
+       * editfns.c (Fmessage_box): Use "Information" for frame title.
+
+2005-05-23  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * termcap.c [VMS]: Include <starlet.h>.
+
+2005-05-23  Masatake YAMATO  <jet@gyve.org>
+
+       * xdisp.c (note_mode_line_or_margin_highlight): Add code
+       for mouse-face.  Change the type of the first argument from `window'
+       to `Lisp_Object'.
+       (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
+       window instead of w.
+
+2005-05-22  Andreas Schwab  <schwab@suse.de>
+
+       * process.c (send_process): Move misplaced volatile.
+
+2005-05-21  Richard M. Stallman  <rms@gnu.org>
+
+       * xdisp.c (display_mode_element): If we're processing a list and
+       padding is specified, put it after the last element.
+
+2005-05-21  Eli Zaretskii  <eliz@gnu.org>
+
+       * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
+       "superroot" on DOS_NT systems.
+
+2005-05-21  David Hunter  <hunterd42@comcast.net>  (tiny change)
+
+       * process.c (send_process): Restore the SIGPIPE handler if we
+       catch a SIGPIPE.
+
+2005-05-20  Juanma Barranquero  <lekktu@gmail.com>
+
+       * image.c (lookup_image, png_read_from_memory): Remove hacks (and
+       misleading comments).
+       (DEF_IMGLIB_FN): Use C calling convention for image libraries.
+
+2005-05-20  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
+
+       * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
+       Correct the right value.
+
+2005-05-19  Nick Roberts  <nickrob@snap.net.nz>
+
+       * keyboard.c (syms_of_keyboard): Remove Lisp variables
+       post-command-idle-hook and post-command-idle-delay.
+       (command_loop_1): Don't try to execute post-command-idle-hook.
+
+2005-05-16  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (handle_display_prop): Handle empty replacement.
+       (handle_single_display_spec): Return -1 for empty replacement.
+
+       * keyboard.c (adjust_point_for_property): Skip empty overlay string.
+
+       * .gdbinit (pitx): Print more info about iterator.
+
+2005-05-16  Andreas Schwab  <schwab@suse.de>
+
+       * unexmacosx.c (unexec_realloc): Move declarations before statements.
+
+2005-05-14  Richard M. Stallman  <rms@gnu.org>
+
+       * xdisp.c (message3): Call cancel_echoing.
+
+       * alloc.c (Fmemory_full_p): New function.
+       (syms_of_alloc): defsubr it.
+
+       * process.c (send_process_trap): Unblock SIGPIPE.
+       (send_process): Reset SIGPIPE handler before reporting error.
+
+2005-05-14  Nick Roberts  <nickrob@snap.net.nz>
+
+       * emacs.c (syms_of_emacs): Fix doc string for system-type.
+
+2005-05-13  Richard M. Stallman  <rms@gnu.org>
+
+       * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
+       (Finsert_file_contents): If we read 0 bytes from a special file,
+       unlock the visited file if we locked it.
+       (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
+       (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
+
+2005-05-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
+
+       * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
+       Regard toolkit scroll bar thumb drag events as squeezable and prevent
+       redisplay from being paused by them.
+
+       * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
+       [!MAC_OSX] (target_ticks): Remove variable.
+       [!MAC_OSX] (check_alarm, pause, index): Remove functions.
+       [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
+       [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
+       event occurs before timeout, behave as if the function were interrupted.
+       [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
+       handling using Time Manager routines.
+       [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
+       New variables.
+       [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
+       (setitimer): New functions.
+
+       * macfns.c, macmenu.c: Don't include signal.h.
+
+       * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
+       Rename from get_control_part_bound.  All callers changed.
+       (x_scroll_bar_clear): New function.
+       (x_clear_frame): Use it.
+       (XTset_vertical_scroll_bar): Don't call Draw1Control.
+       (x_scroll_bar_handle_click): Change type of second argument from
+       int to ControlPartCode.
+       (check_alarm): Remove declaration.
+       (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
+       (XTread_socket): Use ControlPartCode instead of SInt16.
+
+2005-05-13  Nozomu Ando  <nand@mac.com>
+
+       * unexmacosx.c: Include assert.h.
+       (MACOSX_MALLOC_MULT16): New define.
+       [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
+       ptr is in unexec regions by checking it is multiple of 16.
+       (unexec_malloc_header_t): New typedef.
+       (unexec_malloc, unexec_realloc, unexec_free): Store and use
+       allocated size information in unexec_malloc_header.
+
+2005-05-10  Richard M. Stallman  <rms@gnu.org>
+
+       * xterm.c (noinclude): Add #undef.
+
+       * image.c, xfns.c, xmenu.c: Don't include signal.h.
+
+2005-05-09  Juanma Barranquero  <lekktu@gmail.com>
+
+       * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
+       (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
+       Doc fixes.
+
+       * dired.c (Ffile_name_completion): Make argument name
+       match its use in docstring.
+
+2005-05-08  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * eval.c (Fdefvaralias): Remove any pre-existing
+       variable-documentation property of the alias.
+
+2005-05-07  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * xfns.c (start_hourglass): Do nothing when running on a tty.
+
+2005-05-07  Juanma Barranquero  <lekktu@gmail.com>
+
+       * fns.c (Fchar_table_range): Fix typos in docstring.
+
+2005-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
+
+2005-05-06  Eli Zaretskii  <eliz@gnu.org>
+
+       * lread.c (Flocate_file_internal): Doc fix.
+
+       * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
+
+2005-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macselect.c (x_own_selection): Accept Lisp string as result of
+       selection converter function.
+       (x_clear_frame_selections): Don't call x-lost-selection-functions
+       if Emacs is not owner of the selection.
+       (Vmac_services_selection): Put variable and initialization in
+       #ifdef MAC_OSX.
+       (syms_of_macselect) [MAC_OSX]: Set default value of
+       Vmac_services_selection to PRIMARY.
+
+       * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
+       (mac_handle_tool_bar_click): Remove unused function and declaration.
+       [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
+       (install_scroll_bar_timer, set_scroll_bar_timer)
+       (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
+       (get_control_part_bound, x_scroll_bar_handle_press)
+       (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
+       (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
+       [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
+       (scroll_bar_timer_event_posted_p): New variables.
+       [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
+       (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
+       (x_scroll_bar_create): Set control reference with NewControl.
+       (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
+       Initialize track_top and track_height to nil.
+       (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
+       Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
+       (XTset_vertical_scroll_bar): Don't make space between scroll bar
+       and associated window.
+       (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
+       from window config.
+       (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
+       Set track_top and track_height to nil when scroll bar size is changed.
+       Recalculate them if they are nil.
+       (XTread_socket) [MAC_OSX]: Use control kind to determine if the
+       clicked control is a scroll bar.
+       (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
+       event handler functions.  Don't add modifiers to scroll bar click
+       events.  Call scroll bar release handler when window is deactivated.
+       (mac_initialize): Remove unused code for X toolkit.
+       (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
+       Initialize Vx_toolkit_scroll_bars to nil.
+
+       * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
+       New members track_top and track_height.
+
+       * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
+       init_process when including sys/select.h.
+
+2005-05-05  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * eval.c (Fdefvaralias): Doc fix.
+
+       * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
+
+2005-05-05  Kim F. Storm  <storm@cua.dk>
+
+       * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
+       default value.
+       (syms_of_buffer): Add default-cursor-in-non-selected-windows.
+       Fix type of cursor-in-non-selected-windows.
+
+2005-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * mac.c: #undef init_process so not to conflict with system headers.
+
+2005-05-02  Richard M. Stallman  <rms@gnu.org>
+
+       * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
+
+       * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
+
+       * xdisp.c (Vcursor_in_non_selected_windows)
+       (Qcursor_in_non_selected_windows): Vars deleted.
+       (syms_of_xdisp): Don't initialize them.
+       (get_window_cursor_type): Use cursor_in_non_selected_windows
+       buffer slot.
+
+2005-05-02  Kim F. Storm  <storm@cua.dk>
+
+       * macros.c (executing_kbd_macro_index): Rename from
+       executing_macro_index.  All uses changed.
+       (executing_kbd_macro_iterations): Rename from
+       executing_macro_iterations.  All uses changed.
+       (executing_kbd_macro): Rename from executing_macro.
+       All uses changed.
+       (syms_of_macros): Rename Lisp var executing-macro-index to
+       executing-kbd-macro-index.
+
+       * xdisp.c (move_it_in_display_line_to): Fix last change.
+
+2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * xmenu.c (Fx_popup_menu): Doc fix.
+
+       * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
+
+2005-05-02  Jason Rumney  <jasonr@gnu.org>
+
+       * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
+
+2005-05-02  Nozomu Ando  <nand@mac.com>
+
+       * sysselect.h: Fix typo.
+
+2005-05-02  Nick Roberts  <nickrob@snap.net.nz>
+
+       * charset.c (Fchars_in_region): Remove as obsolete.
+
+2005-05-01  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
+       TO_CHARPOS.  This may happen if last glyphs was an image or stretch
+       glyph.
+
+2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
+
+2005-05-01  Richard M. Stallman  <rms@gnu.org>
+
+       * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
+       If user cancels the menu, quit unless FOR_CLICK.
+
+       * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
+       All uses changed.
+       (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
+       * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
+       * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
+       * commands.h (Vexecuting_kbd_macro): Likewise.
+
+2005-05-01  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
+
+2005-04-30  Richard M. Stallman  <rms@gnu.org>
+
+       * fileio.c (Ffind_file_name_handler): Handle the `operations'
+       property of the file name handler.
+       (Qoperations): New variable.
+       (syms_of_fileio): Initialize and staticpro it.
+
+       * xdisp.c (set_message_1): Delete xassert.
+
+2005-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * mac.c: Don't include time.h.  Include sysselect.h after systime.h.
+
+       * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
+
+       * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
+       before/after including Carbon.h if there is a working mktime.
+
+2005-04-28  Kim F. Storm  <storm@cua.dk>
+
+       * xfaces.c (resolve_face_name): Add arg SIGNAL_P.  Calls changed.
+       Fix cyclic alias check.  If alias loop is detected, signal
+       circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
+
+2005-04-28  Lute Kamstra  <lute@gnu.org>
+
+       * eval.c (do_autoload): Record only autoloads in the autoload
+       property of symbols.
+
+2005-04-28  Nick Roberts  <nickrob@snap.net.nz>
+
+       * emacs.c (USAGE1): Add --basic-display and --quick options.
+
+2005-04-27  Kim F. Storm  <storm@cua.dk>
+
+       * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
+
+2005-04-26  Richard M. Stallman  <rms@gnu.org>
+
+       * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
+       (syms_of_window): Doc fixes.
+
+       * indent.c (Fvertical_motion): Undo previous change.
+
+2005-04-26  Kenichi Handa  <handa@m17n.org>
+
+       * fns.c (char_table_range): New function.
+       (Fchar_table_range): Signal an error if characters in the range
+       have inconsistent values.  Don't check the parent.
+
+2005-04-25  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (fontset_set): Fix previous change.
+
+2005-04-24  Richard M. Stallman  <rms@gnu.org>
+
+       * indent.c (Fvertical_motion): Bind fontification-functions to nil.
+
+2005-04-24  Eli Zaretskii  <eliz@gnu.org>
+
+       * regex.c (re_search_2, re_match_2_internal): Convert second arg
+       of RE_TRANSLATE to int, to shut up GCC warnings.
+
+       * fileio.c (Fcopy_file): Doc fix.
+       [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
+       not needed.
+
+2005-04-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
+       (SOME_MACHINE_OBJECTS): Likewise.
+       (mac.o): Depend on ccl.h.
+       (macselect.o): New target.
+
+       * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
+       Call syms_of_macselect.
+
+       * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
+
+       * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
+       (QCLIPBOARD): Remove variable.
+       (syms_of_mac): Don't initialize it.
+       (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
+       Remove functions.
+       (syms_of_mac): Don't defsubr them.
+       [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
+       (QHFS_plus_D, QHFS_plus_C): New variables.
+       (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
+       [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
+       (cfstring_create_normalized): New functions.
+       [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
+       (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
+
+       * macterm.c (handling_window_update, terminate_flag):
+       Remove variables.
+       (do_window_update, do_ae_quit_application, XTread_socket):
+       Don't use them.
+       (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
+       [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
+       (init_service_handler): Move to macselect.c.  Remove declarations.
+       [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
+       (Qapplication, Qabout): New variables.
+       (syms_of_mac): Initialize them.
+       [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
+       (Qperform): New variables.
+       (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
+       (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
+       (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
+       (mac_store_application_menu_event, init_menu_bar): New functions.
+       [USE_CARBON_EVENTS] (mac_handle_command_event)
+       (init_command_handler): New functions.
+       (mac_handle_window_event): Return noErr on window update event.
+       (do_ae_quit_application): Call mac_store_application_menu_event.
+       (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
+       and init_menu_bar.
+
+       * macterm.h (x_clear_frame_selections): Add extern.
+
+       * macselect.c: New file for selection processing on Mac OS.
+
+2005-04-23  Richard M. Stallman  <rms@gnu.org>
+
+       * fileio.c (Fcopy_file): New arg MUSTBENEW.
+       (Frename_file): Pass new arg to Fcopy_file.
+
+       * window.c (window_size_fixed): Variable deleted.
+       (syms_of_window): Initialize window-size-fixed to nil.
+       But don't DEFVAR window_size_fixed.
+
+2005-04-23  Andreas Schwab  <schwab@suse.de>
+
+       * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
+       (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
+       use lib64 instead of lib.
+       (_LP64) [_ARCH_PPC64]: Define if not defined.
+
+2005-04-23  David Hunter  <hunterd42@comcast.net>  (tiny change)
+
+       * s/ms-w32.h (HAVE_PWD_H): Define.
+
 2005-04-22  Kenichi Handa  <handa@m17n.org>
 
        * fns.c (copy_sub_char_table): Explicitly copy the default value
        Make a sub-chartable with correct initial value.
 
        * fns.c (Fset_char_table_range): Don't set slots used as default
-       values for ascii, eight-bit-control, eight-bit-graphic.  Don't
-       call Faref with charset-id.
+       values for ascii, eight-bit-control, eight-bit-graphic.
+       Don't call Faref with charset-id.
        (Fset_char_table_default): Document how to treat normal character
        argument.  Handle special slots used as default values of ascii,
        eight-bit-control, eight-bit-control.  Make a sub chartable if
        create_text_encoding_info_alist instead.
        (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
        routines also on Mac OS Classic.
-       (init_font_name_table) [!TARGET_API_MAC_CARBON]: Use
-       add_font_name_table_entry.
+       (init_font_name_table) [!TARGET_API_MAC_CARBON]:
+       Use add_font_name_table_entry.
        (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
        specified.  Derive unspecified scalable fields from specified one.
        (x_list_fonts): Consider Valternate_fontname_alist.
 
        * mac.c: Include charset.h and coding.h.
        [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
-       [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New
-       function.
+       [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
        [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
 
        * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
 
        * macterm.c (x_autoselect_window_p): Remove variable.
        (last_window): New variable.
-       (XTreassert_line_highlight, x_change_line_highlight): Remove
-       declarations.
+       (XTreassert_line_highlight, x_change_line_highlight):
+       Remove declarations.
        (mac_focus_changed, x_detect_focus_change): New functions and
        declarations.
        (XTextExtents16, front_emacs_window): Remove function.
        (XTread_socket): Move its contents here.  Generate select-window
        event on mouse movement if needed.  Use x_detect_focus_change on
        activate/deactivate events.  Don't deiconify frame or invalidate
-       window rectangle when dnd items are dropped.  Don't
-       activate/deactivate root control.
+       window rectangle when dnd items are dropped.
+       Don't activate/deactivate root control.
        (frame_highlight, frame_unhighlight): Activate/deactivate root
        control here.
        (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
 
 2005-04-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
 
-       * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.  Don't
-       include TextEncodingConverter.h.
+       * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
+       Don't include TextEncodingConverter.h.
        (mac_system_script_code, Vmac_system_locale): New variables.
        (syms_of_mac): Defvar them.
        (mac_get_system_locale): New function.
 
-       * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]: Use
-       ENCODE_SYSTEM to encode title bar string.
+       * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
+       Use ENCODE_SYSTEM to encode title bar string.
        (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
-       (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]: Use
-       CFStringGetSystemEncoding to get system default string encoding.
+       (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
+       Use CFStringGetSystemEncoding to get system default string encoding.
 
        * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
        TextEncodingConverter.h.
        * xdisp.c (init_from_display_pos): Don't read past end of
        it->overlay_strings array.
 
-2005-02-25  Stephan Stahl <stahl@eos.franken.de>  (tiny change)
+2005-02-25  Stephan Stahl  <stahl@eos.franken.de>  (tiny change)
 
        * buffer.c (syms_of_buffer): Fix typo.
 
        I think those asserts are bogus if buffer contains invisible text
        or images.
 
-2005-02-21  David Kastrup <dak@gnu.org>
+2005-02-21  David Kastrup  <dak@gnu.org>
 
        * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
 
 2005-01-13  Kim F. Storm  <storm@cua.dk>
 
        * xdisp.c (Fformat_mode_line): Fix last change.  Remove NO_PROPS arg
-       (specify 0 for FACE instead). Reorder arg list.  Doc fix.
+       (specify 0 for FACE instead).  Reorder arg list.  Doc fix.
 
 2005-01-12  Richard M. Stallman  <rms@gnu.org>
 
        fontp->space_width to FONT_WIDTH so they are valid.
 
        * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
-       average width. Set fontp->average_width and fontp->space_width to
+       average width.  Set fontp->average_width and fontp->space_width to
        their appropriate values.
 
        * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
        * xdisp.c (setup_for_ellipsis, get_next_display_element):
        Set it->ellipsis_p to 1 or 0.
        (display_line): Record whether row ends in mid-ellipsis.
-       (set_cursor_from_row): If ends in ellipsis. find start of it.
+       (set_cursor_from_row): If ends in ellipsis, find start of it.
        (cursor_row_p): If PT's at the end of the ellipsis the row
        ends within, don't display cursor on this row.
 
        * fringe.c (update_window_fringes): Prefer truncation bitmaps over
        angle bitmaps at top/bottom line.
 
-       * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
+       * xdisp.c: Undo recent changes for restoring saved_face_id.  Instead,
        set it when it->method is set to next_element_from_display_vector.
        (setup_for_ellipsis): Add LEN argument.  Callers changed.
        Set it->saved_face_id.
        * xfns.c (Fx_file_dialog): Call popup_activated instead of
        x_menu_in_use.  Call x_menu_set_in_use in Motif version also.
 
-       * xterm.h: (x_menu_in_use): Remove.
+       * xterm.h (x_menu_in_use): Remove.
 
 2004-11-16  Richard M. Stallman  <rms@gnu.org>
 
        (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
        (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
        part of last line is only extra line spacing (so the text on the
-       line is fully visible). Use helper macros.
+       line is fully visible).  Use helper macros.
        Add W arg (to use them).  All callers changed.
        (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
        (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
 
        * doc.c: New variable Vbuild_files.
        (Fsnarf_documentation): If Vbuild_files is nil, populate it with
-       file names from buildobh.lst.  Only attach docstrings from files
+       file names from buildobj.lst.  Only attach docstrings from files
        that are in Vbuild_files.
        (syms_of_doc): Defvar Vbuild_files.
 
 
        * keyboard.c (timer_resume_idle): New function to resume idle
        timer without resetting timers on the idle list.
-       (read_char): Use timer_resume_idle. Remove local var last_idle_start.
+       (read_char): Use timer_resume_idle.  Remove local var last_idle_start.
        (timer_start_idle, timer_stop_idle): Declare static.
        (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
 
        compositions to encode.
        (encode_coding_string): Likewise.  Free composition data.
 
-2004-09-30  Florian Weimer <fw@deneb.enyo.de>
+2004-09-30  Florian Weimer  <fw@deneb.enyo.de>
 
        * coding.c (code_convert_region): Free composition data.
 
        * xfns.c (x_icon_verify): New function.
        (Fx_create_frame): Use it.
 
-2004-07-22  Barry Fishman <barry_fishman@att.net>  (tiny change)
+2004-07-22  Barry Fishman  <barry_fishman@att.net>  (tiny change)
 
        * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
 
        elt_prefix combined with Fsingle_key_description.
        (describe_vector): Declare static.  Replace arg `elt_prefix' with
        `prefix'.  Add KEYMAP_P arg.  Add local var `elt_prefix'; use it
-       if !KEYMAP_P. Use Fkey_description with prefix instead of
+       if !KEYMAP_P.  Use Fkey_description with prefix instead of
        Fsingle_key_description.
 
        * keymap.h (Fkey_description): Fix prototype.
        (display_mode_line): Set mode_line_p before displaying line.
        (calc_pixel_width_or_height): Declare extern.  Add separate :align-to
        handling.  Remove complex cases for fringes and scroll-bars.
-       Add left, right, and center alignment positions. Add text (area)
+       Add left, right, and center alignment positions.  Add text (area)
        width/height.  Return width or height for image specs.
        (produce_stretch_glyph): Improve handling of :align-to.  Is now
        relative to left of text area by default, but other base offsets
        * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
        when keymap and cursor are setup.
 
-2004-03-14  Steven Tamm <steventamm@mac.com>
+2004-03-14  Steven Tamm  <steventamm@mac.com>
 
        * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
 
        (GTK_OBJ) [USE_GTK]: New declaration.
        (obj): Add $(GTK_OBJ) to list.
 
-2004-03-11  Steven Tamm <steventamm@mac.com>
+2004-03-11  Steven Tamm  <steventamm@mac.com>
 
        * image.c [MAC_OSX]: Include sys/stat.h.
 
        * intervals.h (CHECK_TOTAL_LENGTH): New macro.
        * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
 
-       * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
+       * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
        All calls deleted.
        (lisp_malloc): Do the work here directly.
 
        (syms_of_w32fns): Don't intern/staticpro removed vars.
 
        * w32term.c: Remove unnecessary extern declarations.
-       (x_fullscreen_adjust): Remove. Use generic instead.
+       (x_fullscreen_adjust): Remove.  Use generic instead.
        (x_redisplay_interface): Add w32_frame_parm_handlers member.
 
        * w32reg.c (x_get_string_resource): Use XrmDatabase.
 2003-01-21  David Ponce  <david@dponce.com>
 
        * w32term.c (w32_encode_char): For DIM=1 charset, set
-       ccl->reg[2] to -1 before calling ccl_driver.  (Sync. with xterm.c
-       x_encode_char change by Kenichi Handa <handa@m17n.org> on
-       2002-09-30.)
+       ccl->reg[2] to -1 before calling ccl_driver.
+       (Sync. with xterm.c x_encode_char change by Kenichi Handa
+       <handa@m17n.org> on 2002-09-30.)
        (w32_draw_relief_rect): Declare all args.
        (w32_define_cursor): New.
 
 
 2002-06-27  Kim F. Storm  <storm@cua.dk>
 
-       * xdisp.c: (mode_line_string_list, mode_line_string_face)
+       * xdisp.c (mode_line_string_list, mode_line_string_face)
        (mode_line_string_face_prop): New variables.
        (store_mode_line_string): New function.
        (display_mode_element): Use store_mode_line_string to
 
 2002-06-24  Juanma Barranquero  <lektu@terra.es>
 
-       * w32select.c: Include composite.h
+       * w32select.c: Include composite.h.
 
        * w16select.c: Likewise.
 
 
        * config.in: Add HAVE_SHARED_GAME_DIR.
 
-       * callproc.c: (Vgame_score_directory): New variable.
+       * callproc.c (Vgame_score_directory): New variable.
        (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
 
 2002-04-10  Richard M. Stallman  <rms@gnu.org>
 
        * xterm.h (x_session_check_input, x_session_initialize): Declare.
 
-       * xterm.c: (XTread_socket): Add call to x_session_check_input and
+       * xterm.c (XTread_socket): Add call to x_session_check_input and
        x_session_have_connection.
        (x_initialize): Add call to x_session_initialize.
 
 
 2002-02-17  Kim F. Storm  <storm@cua.dk>
 
-       * frame.c: (Vmouse_highlight): New variable.
+       * frame.c (Vmouse_highlight): New variable.
        (syms_of_frame): DEFVAR_LISP it.
 
-       * frame.h: (Vmouse_highlight): Declare extern.
+       * frame.h (Vmouse_highlight): Declare extern.
 
        * xterm.h (struct x_display_info): Add mouse_face_hidden.
 
 
 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
 
-       * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
+       * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
        Andrew Wiseman <a.wiseman@btclick.com>.
 
 2001-11-16  Kim F. Storm  <storm@cua.dk>
 
        * xterm.c: Fix typo in a comment.
 
-       * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
+       * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
        emacs.c.
 
 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
 
 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
 
-       * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
+       * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
        and `real_start'.
        (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
        (glyph_rect): Remove unused variable `area'.
        (HAVE_BOXES): Fix typo in comment.
        (push_menu_pane): Fix typo in comment.
 
-       * xdisp.c: (display_prop_string_p): Remove unused local declaration
+       * xdisp.c (display_prop_string_p): Remove unused local declaration
        of `Qwhen'.
        (single_display_prop_string_p): Remove unused local declarations
        of `Qwhen' and `Qmargin'.