(Fdelete_file): Handle symlinks pointing to directories.
[bpt/emacs.git] / src / ChangeLog
index ee59249..5a67533 100644 (file)
@@ -1,3 +1,355 @@
+2003-05-16  Ralph Schleicher  <rs@nunatak.allgaeu.org>  (tiny change)
+
+       * fileio.c (Fdelete_file): Handle symlinks pointing to
+       directories.
+
+2003-05-15  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * keyboard.c (apply_modifiers): Don't fill the other cache.
+
+2003-05-14  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
+
+       * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
+       (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
+       (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
+       (Fset_window_configuration, Fcurrent_window_configuration)
+       (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
+       (Fpos_visible_in_window_p, mark_window_cursors_off)
+       (window_internal_height, window_internal_width, Frecenter)
+       (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
+       (replace_buffer_in_all_windows, init_window_once, init_window)
+       (syms_of_window, keys_of_window): Move from lisp.h.
+       * lisp.h: Move window.c declarations to window.h.
+
+       * bytecode.c: Include window.h.
+       * emacs.c: Include window.h.
+
+       * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char keys.
+       (keyremap): Add `parent' field.
+       (keyremap_step): Use it.  Remove `parent' argument.
+       (read_key_sequence): Setup and use the new `parent' field.
+
+2003-05-11  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * keyboard.c (adjust_point_for_property): Ensure termination.
+
+2003-05-10  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * keyboard.c (follow_key): Remove dead variable `did_meta'.
+       (access_keymap_keyremap, keyremap_step): New funs, extracted from the
+       duplicated handling of function-key-map and key-translation-map
+       in read_key_sequence.
+       (read_key_sequence): Use them.
+
+       * keyboard.c (adjust_point_for_property): Try harder to move point
+       to the non-sticky end of an invisible property.
+
+       * xdisp.c (single_display_prop_intangible_p): Make `space' display
+       property intangible as well.
+
+2003-05-10  Andreas Schwab  <schwab@suse.de>
+
+       * xmenu.c (single_menu_item): Change last parameter to void* to
+       avoid warning.
+
+2003-05-09  Richard M. Stallman  <rms@gnu.org>
+
+       * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
+       Bind Qinhibit_modification_hooks to t so there will be no GC.
+       Rename local `tem' to `save_deactivate_mark'.
+
+       * eval.c (specpdl_ptr): Declare volatile.
+       (unbind_to): Copy the whole binding and decrement specpdl_ptr
+       before doing the work of unbinding it.
+
+       * lisp.h (struct specbinding): Declare elements volatile.
+       (specpdl_ptr): Declare volatile.
+
+       * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
+
+       * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
+       for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
+
+2003-05-08  Dave Love  <fx@gnu.org>
+
+       * coding.c (Vlast_coding_system_used): Doc fix.
+
+2003-05-07  Jason Rumney  <jasonr@gnu.org>
+
+       * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
+       when system does not support them.
+
+2003-05-05  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * fileio.c (Qwrite_region_annotate_functions): New var.
+       (build_annotations): Use it to process the global part of the hook.
+       (syms_of_fileio): Init and staticpro it.
+
+       * keyboard.c (safe_run_hooks_error): Display a message instead of
+       silently ignoring the error.
+
+2003-05-03  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * keyboard.c (input_available_signal): Mark static.
+       (menu_bar_items): Use map_keymap.
+       (menu_bar_one_keymap): Remove.
+       (menu_bar_item): Adjust arglist (for use in map_keymap).
+       Properly hide a second binding when not both are keymaps.
+
+       * xmenu.c (struct skp): New struct, to pass args through map_keymap.
+       (single_keymap_panes): Use it and map_keymap.
+       (single_menu_item): Use skp as well.
+
+       * keymap.h (map_keymap_function_t): New type.
+       (map_keymap): Declare.
+
+       * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
+       (map_keymap_call, Fmap_keymap): New functions.
+       (syms_of_keymap): Defsubr map-keymap.
+
+2003-05-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (create_dialog, make_widget_for_menu_item)
+       (make_menu_item, create_menus, xg_update_menu_item): Don't call
+       ..._with_mnemonic functions for menu items.
+
+2003-05-01  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (coding_system_accept_latin_extra_p): Delete this
+       function.
+       (find_safe_codings): Pay attention to
+       the property tranlsation-table-for-encode of each codings.
+       (syms_of_coding): Give Qtranslation_table the extra slot number 2.
+
+2003-05-01  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
+
+2003-04-30  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * eval.c (unbind_to): Don't handle symbol = Qnil any more.
+
+       * lisp.h (CHECK): Wrap args in parenthesis.
+       (specbind): Fix doc: symbol = Qnil is not supported any more.
+
+       * bytecode.c (Fbyte_code) <unwind-protect>:
+       Use Fprogn rather than 0 and Qnil.
+
+       * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
+       `double', and `triple' modifiers as well.
+
+2003-04-30  Richard M. Stallman  <rms@gnu.org>
+
+       * keyboard.c (echo_char): Don't clear out a dash that follows a space.
+
+       * alloc.c (abort_on_gc): New variable.
+       (Fgarbage_collect): Abort if abort_on_gc is set.
+
+       * lisp.h (abort_on_gc): Add decl.
+
+       * eval.c (Fsignal): Clear abort_on_gc.
+
+       * editfns.c (Fformat): Set abort_on_gc during first scan of format.
+       Reinit FORMAT_START and END before second scan.
+
+       * xdisp.c (move_it_vertically_backward): Do the final big else
+       even if nlines is 0.
+
+       * xdisp.c (redisplay_internal): Finish the per-frame loop
+       even if redisplay is suspended by input.
+
+2003-04-24  Andrew Choi  <akochoi@shaw.ca>
+
+       * macterm.c (x_list_fonts): Return all fonts that match if
+       maxnames = -1.
+
+2003-04-25  Kenichi Handa  <handa@m17n.org>
+
+       * syntax.c (skip_chars): Fix previous change.
+
+2003-04-24  Kenichi Handa  <handa@m17n.org>
+
+       * syntax.c (skip_chars): Make the code faster by using the common
+       technique of *p, *stop, and *endp.
+
+2003-04-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
+       tool_bar_items so GTK tool bar expose callback does not access items
+       being updated.
+
+2003-04-19  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * eval.c (Fapply): Undo last change and add a comment about why.
+
+2003-04-18  Miles Bader  <miles@gnu.org>
+
+       * data.c (Faset): Calculate nbytes earlier, to satisfy the now
+       pickier PARSE_MULTIBYTE_SEQ.
+
+2003-04-17  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
+       Use XCDR, XCAR, CONSP.
+       (Fdefmacro): Fix docstring.  Use XCAR, XCDR.
+       (Fapply): Remove unnecessary GCPRO.
+
+       * doc.c (Fsubstitute_command_keys): Remove spurious casts.
+
+       * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
+
+       * buffer.h: Don't hardcode BEG==1.
+
+       * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
+
+2003-04-16  Richard M. Stallman  <rms@gnu.org>
+
+       * xdisp.c (try_window, try_window_reusing_current_matrix):
+       When at end of window, set window_end_pos to Z-ZV.
+
+       * buffer.c (Foverlay_recenter): Doc fix.
+
+2003-04-14  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * dispnew.c (Fsit_For): Support XEmacs-style arg list.
+
+2003-04-14  Andrew Choi  <akochoi@shaw.ca>
+
+       * macterm.c (mac_check_for_quit_char): Don't check more often than
+       once a second.
+
+2003-04-11  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
+       specially, so that they can't hide an implicit switch-frame event.
+       (make_lispy_event): Handle SELECT_WINDOW_EVENT.
+       (head_table): Use switch-frame as event_kind for select-window.
+       (keys_of_keyboard): Don't bind [select-window] in special-event-map.
+
+       * editfns.c (Fformat): Lisp_Object/int mixup.
+       (format2): Remove unused var numargs.
+
+2003-04-11  Kenichi Handa  <handa@m17n.org>
+
+       * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
+       (Qafter_insert_file_set_coding): New variable.
+       (syms_of_fileio): Initialize and staticpro it.  Delete declaration
+       for after-insert-file-adjust-coding-function.
+       (Finsert_file_contents): Call Qafter_insert_file_set_coding
+       instead of Vafter_insert_file_adjust_coding_function.
+
+2003-04-11  Kenichi Handa  <handa@m17n.org>
+
+       * lisp.h (temp_echo_area_glyphs): Adjust prototype.
+
+       * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
+       string.  Callers changed.
+
+2003-04-10  Kenichi Handa  <handa@m17n.org>
+
+       * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
+       (syms_of_fileio): Declare it as a lisp variable.
+       (Finsert_file_contents):
+       Call Vafter_insert_file_adjust_coding_function before calling
+       decode-format.
+
+2003-04-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
+       get GtkAdjustment as widget now is a GtkRange.
+
+       * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
+       GtkRange to avoid memory leak.
+
+2003-04-09  Kenichi Handa  <handa@m17n.org>
+
+       * xfaces.c (Vface_font_rescale_alist): New variable.
+       (struct font_name): New member rescale_ratio.
+       (font_rescale_ratio): New function.
+       (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
+       (better_font_p): On comparing point sized, pay attention to
+       recale_ratio member of fonts.
+       (build_scalable_font_name): Reflect font->rescale_ratio in the
+       font name.
+       (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
+
+       * lread.c (read1): Before calling index, check if the 2nd
+       arguemnt is in ASCII range.
+
+2003-04-08  Richard M. Stallman  <rms@gnu.org>
+
+       * fileio.c (Ffile_symlink_p): Doc fix.
+
+       * editfns.c (Fformat): Translate positions of text properties
+       in the format string to apply them to the result.
+
+       * fileio.c (Finsert_file_contents): Doc fix.
+       (syms_of_fileio) <after-insert-file-functions>: Doc fix.
+
+2003-04-08  Ivan Zakharyaschev  <imz@altlinux.org>  (tiny change)
+
+       * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
+
+2003-04-08  Steven Tamm  <steventamm@mac.com>
+
+       * mac.c (init_mac_osx_environment): Switch libexec and bin so
+       that self-contained application finds libexec files.
+
+2003-04-08  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (code_convert_region_unwind):
+       Set Vlast_coding_system_used to the argument.
+       (code_convert_region): If post-read-conversion function changed
+       the value of last-coding-sytem, keep the new value in
+       coding->symbol so that it won't be overridden.
+       (run_pre_post_conversion_on_str): Likewise.
+       (coding_system_accept_latin_extra_p): New function.
+       (find_safe_codings): Pay attention to characters registered in
+       latin-extra-code-table.
+
+2003-04-07  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * Makefile.in (md5.o): Add missing dependency info.
+
+2003-04-06  Richard M. Stallman  <rms@gnu.org>
+
+       * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
+
+       * marker.c (verify_bytepos): New function.
+
+       * intervals.c (set_intervals_multibyte_1): When becoming
+       multibyte, adjust right and left child sizes to a whole set of
+       characters.  If an interval gets zero total-length, delete it.
+       If an interval consists of just its children, delete one of them.
+
+       * intervals.h (CHECK_TOTAL_LENGTH): New macro.
+       * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
+
+       * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
+       All calls deleted.
+       (lisp_malloc): Do the work here directly.
+
+2003-04-06  Gareth Jones  <emacs@referential.org.uk>  (tiny change)
+
+       * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
+       char tables.
+
+2003-04-04  Kenichi Handa  <handa@m17n.org>
+
+       * editfns.c (Fformat): Use a copy of FORMAT string so that we can
+       destructively change "%S" to "%s".
+
+2003-04-03  Miles Bader  <miles@gnu.org>
+
+       * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
+       always set.
+
+2003-04-01  Dave Love  <fx@gnu.org>
+
+       * xfns.c (xpm_lookup_color): Grok "opaque".
+
 2003-03-31  Andrew Choi  <akochoi@shaw.ca>
 
        * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
@@ -7,7 +359,7 @@
 
        * macterm.h (struct mac_output): Define x_pixels_diff and
        y_pixels_diff.
-       
+
 2003-03-31  Juanma Barranquero  <lektu@terra.es>
 
        * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
        (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
        (x_default_parameter, Fx_parse_geometry): Functions for generic
        access to frame parameters.
-       (x_figure_window_size): Generic calculation of frame size. Fixed
-       to add space needed for tool bar.  Also setup size_hint_flags.
+       (x_figure_window_size): Generic calculation of frame size.
+       Fixed to add space needed for tool bar.  Also setup size_hint_flags.
        (syms_of_frame): Intern and staticpro frame parameter variables.
        Defvar_lisp Vx_resource_class and Vx_resource_name here.
        Defsubr Sx_get_resource and Sx_parse_geometry.