(where_is_internal): Convert a string used as event type into "(any string)".
[bpt/emacs.git] / src / ChangeLog
index 34ca0ba..860c384 100644 (file)
@@ -1,3 +1,390 @@
+2005-04-09  Richard M. Stallman  <rms@gnu.org>
+
+       * keymap.c (where_is_internal): Convert a string used as event type
+       into "(any string)".
+
+       * lread.c (Vloads_in_progress): Not static.
+
+       * fns.c (Vloads_in_progress): Add extern.
+       (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
+
+2005-04-09  Thien-Thi Nguyen  <ttn@surf.glug.org>
+
+       * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
+
+2005-04-09  Lute Kamstra  <lute@gnu.org>
+
+       * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
+       within the accessible part of the buffer.
+
+2005-04-09  Kim F. Storm  <storm@cua.dk>
+
+       * lread.c (readevalloop): Add args START and END as region in
+       current buffer to read.  Callers changed.
+       When specified, narrow to this region only when reading,
+       not during eval.  Track next point to read from during eval.
+       Also restore point to "real" buffer position before eval.
+       (Feval_region): Don't save excursion and restriction here, and
+       don't narrow to region.  Just pass region to readevalloop.
+       Note: Point is now preserved even when PRINTFLAG is nil.
+
+2005-04-08  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
+
+2005-04-06  Kim F. Storm  <storm@cua.dk>
+
+       * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
+
+2005-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
+       (Fmac_get_preference): Doc fix.
+
+       * macfns.c (Fx_create_frame, x_create_tip_frame): Add
+       "fontset-mac" to fallback font/fontsets.
+
+2005-04-04  Kim F. Storm  <storm@cua.dk>
+
+       * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
+
+       * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
+       Call it again after autoload.
+
+2005-04-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
+       mallopt.
+
+       * ralloc.c (r_alloc_init): Ditto.
+
+2005-04-01  Kenichi Handa  <handa@m17n.org>
+
+       * lisp.h (Vascii_upcase_table, Vascii_canon_table)
+       (Vascii_eqv_table): Extern them.
+
+       * casetab.c (set_case_table): If standard is nonzero, setup
+       Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
+
+       * search.c (looking_at_1): Use current_buffer->case_canon_table,
+       not DOWNCASE_TABLE.
+       (string_match_1): Likewise.
+       (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
+       Vascii_downcase_table.
+       (fast_string_match_ignore_case): Likewise.
+       (search_buffer): Fix checking of boyer-moore usability.
+       (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.  No
+       need of tranlating characters in PAT.  Fix calculation of
+       simple_translate.
+
+2005-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
+       (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
+       Use XtNtopShadowPixel and XtNbottomShadowPixel.
+       (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
+       really work and that breaks with some versions of Xaw3d.
+
+2005-03-31  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (syms_of_coding): Fix previous change.
+
+2005-03-30  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * fileio.c (search_embedded_absfilename): Fix last change.
+
+2005-03-25  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (syms_of_coding): Suggest to use set-coding-category in
+       the docstring of coding-category-list.
+
+2005-03-31  Kim F. Storm  <storm@cua.dk>
+
+       * keyboard.c (Qmouse_fixup_help_message): New var.
+       (syms_of_keyboard): Intern and staticpro it.
+       (show_help_echo): Apply mouse-fixup-help-message to help string.
+
+2005-03-30  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (display_line): Allow multiple overlay arrows in window.
+
+2005-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
+       (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
+       (Ffile_name_absolute_p): Use it.
+       (search_embedded_absfilename): New fun, extracted from
+       Fsubstitute_in_file_name.  Use file_name_absolute_p.
+       Free the pw data after use.
+       (Fsubstitute_in_file_name): Use it.
+       After cutting a prefix, re-check file-name-handler.
+
+2005-03-26  Lennart Borgman  <lennart.borgman.073@student.lu.se>
+
+       * 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.
+
+2005-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
+       Use Fexit_minibuffer.
+       (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
+
+2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * dired.c (Ffile_attributes): Add a missing gcpro.
+
+       * alloc.c (make_number): The arg can be bigger than `int'.
+       * lisp.h (make_number): Make prototype more precise.
+
+       * process.c, dired.c (Vfile_name_coding_system)
+       (Vdefault_file_name_coding_system):
+       * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
+       (Vdefault_file_name_coding_system): Remove unused declarations.
+
+2005-03-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xmenu.c (create_and_show_popup_menu): Just remove menu and return
+       if it failed to pop up (Gnome "show pointer on ctrl" option makes
+       menus fail to pop up).
+
+2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
+       Just prepend a backslash without replacing the NBSP by an SPC.
+
+2005-03-22  Kim F. Storm  <storm@cua.dk>
+
+       * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
+       * dispextern.h (lookup_derived_face): Fix prototype.
+       * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
+
+       * xdisp.c (handle_single_display_spec): Derive left-fringe and
+       right-fringe face from fringe face.
+
+       * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
+       Derive face from fringe face.
+
+2005-03-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
+
+2005-03-22  David Kastrup  <dak@gnu.org>
+
+       * textprop.c (Fnext_char_property_change)
+       (Fprevious_char_property_change): Allow marker as limit.
+       (Fnext_single_char_property_change)
+       (Fprevious_single_char_property_change): Check that limit is a
+       number in strings.
+       (Fnext_single_char_property_change): Coerce position to integer.
+       (Fprevious_single_char_property_change): Same here.
+
+2005-03-21  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
+
+2005-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * frame.c (Fignore_event): Remove.
+       (syms_of_frame): Don't defsubr it.
+
+       * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
+       redundant `ignore-event'.
+
+2005-03-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * unexec.c (write_segment, unexec): Move these functions to avoid
+       forward references (which cause errors with "gcc -gcoff").
+
+2005-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
+       that it doesn't become "tooltip".  The specbind is enough.
+
+       * xrdb.c (x_load_resources): Use different char *helv when I18N
+       is present.
+
+2005-03-17  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
+
+2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
+       Use xic_create_fontsetname even for non-Motif menus.
+       Don't forget to free the fontsetname.
+
+       * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
+
+2005-03-17  Richard M. Stallman  <rms@gnu.org>
+
+       * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
+
+       * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
+       (Fmake_symbolic_link): Use G to read the new file name.
+
+       * callint.c (Finteractive): Document G option.
+       (Fcall_interactively): Implement G option.
+
+       * buffer.c (buffer_lisp_local_variables): New function,
+       broken out from Fbuffer_local_variables.
+       (clone_per_buffer_values): Use buffer_lisp_local_variables.
+
+2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * xfns.c (xic_create_fontsetname): Add `motif' argument.
+       Always return a freshly allocated string.
+       (xic_create_xfontset): Adjust call.
+
+       * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
+       Use xic_create_fontsetname to create a fontset so utf-8 locales work.
+       (dump_realized_face): Fix warning.
+
+       * emacs.c (Fkill_emacs): YAILOM.
+
+       * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
+
+2005-03-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * mac.c (HASHKEY_TERMINAL): Remove.
+       (HASHKEY_MAX_NID): New macro.
+       (xrm_q_get_resource_1): Rename from xrm_q_get_resource.  Add extra
+       argument.
+       (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
+       (xrm_create_database, xrm_q_put_resource)
+       (xrm_merge_string_database, xrm_q_get_resource_1)
+       (xrm_q_get_resource): Change resource database representation so
+       that it may not use multiple hash tables for a single database.
+       [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
+
+2005-03-16  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
+
+       * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
+       locale-coding-system, as was already done for WINDOWSNT.
+
+       * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
+       translation for chars in the 0-255 range.
+
+2005-03-16  Lute Kamstra  <lute@gnu.org>
+
+       * floatfns.c (Ffloor): Doc fix.
+
+2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * mac.c: Include macterm.h instead of directly including Carbon.h.
+       [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
+       (Qarray, Qdictionary): New variables.
+       (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
+       [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
+       [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
+       [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
+       in callback for CFDictionaryApplyFunction.
+       [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
+       (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
+       (cfobject_desc_to_lisp, cfdictionary_add_to_list)
+       (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
+       [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
+       (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
+       (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
+       (skip_white_space, parse_comment, parse_include_file)
+       (parse_binding, parse_component, parse_resource_name, parse_value)
+       (parse_resource_line, xrm_create_database, xrm_q_put_resource)
+       (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
+       (xrm_cfproperty_list_to_value, xrm_get_preference_database):
+       New functions.
+
+       * macfns.c (mac_get_rdb_resource): Remove function.
+       (x_get_string_resource): Use xrm_get_resource.
+
+       * macgui.h (XrmDatabase): Typedef to Lisp_Object.
+
+       * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
+       name_list_element.
+       (mac_make_rdb): Create resource database from preferences and
+       argument string.
+       (mac_term_init): Save resource database to cddr part of
+       name_list_element.
+
+       * macterm.h (xrm_merge_string_database, xrm_get_resource)
+       (xrm_get_preference_database): Add externs.
+       [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
+       (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
+       (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
+
+       * process.c (init_process): Change `#ifdef DARWIN' to `#if
+       defined (DARWIN) || defined (MAC_OSX)'
+
+       * s/darwin.h (DARWIN): Don't define.
+
+2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
+       Remove unused variables.
+       (syms_of_macfns): Don't initialize them.  Likewise for
+       Qface_set_after_frame_default.  Defvar and initialize
+       Vx_window_horizontal_drag_shape.
+       (x_set_mouse_color): Change mouse pointer shape.
+       (mac_window) [!MAC_OSX]: Create root control.
+       (Fx_create_frame): Remove initializations of mouse pointer shapes.
+       (hourglass_started): New function (from xfns.c).
+       (start_hourglass, cancel_hourglass): Put function body in #ifdef
+       MAC_OSX.
+       (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
+       indicator for each non-tooltip frame if needed, and show it.
+       (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
+
+       * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
+       Controls.h.  Use ThemeCursor instead of CursHandle.
+
+       * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
+       Remove functions and declarations.
+       (mac_set_colors): Take argument for saving background color.
+       All callers changed.
+       (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
+       (mac_draw_rectangle, mac_draw_string_common): Save and Restore
+       background color.
+       (x_update_end, mac_do_track_drag): Don't reset background color.
+       (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
+       Use SetThemeCursor.
+       (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
+       indicator control to the upper-right corner of the window.
+       (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
+       (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
+       (do_window_update): Update controls after updating content area.
+       (mac_handle_window_event): Remove unused extern.
+       (XTread_socket): Check both control handle and control part code
+       to determine whether a scroll bar is clicked.  Activate/deactivate
+       root control instead of contained scroll bar controls.
+       (make_mac_terminal_frame): Use ThemeCursor constants.
+
+       * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
+       New member hourglass_control.
+       (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
+       (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
+
+2005-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
+       coincides with that in Apple X11 except `clear', `enter' on
+       laptops, and fn + `enter' on laptops.
+
+2005-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
+       (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
+       (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
+
+       * xfns.c (xic_defaut_fontset): New constant.
+       (xic_create_fontsetname): New function.
+       Extracted from create_frame_xic.  Try to generate a slightly
+       better fontset.
+       (xic_create_xfontset): Use it.
+       (create_frame_xic): Simplify.
+
 2005-03-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * fileio.c (Fmake_symbolic_link): Fix last change.
 
        * xselect.c (selection_data_to_lisp_data): For the special case
        type == XA_ATOM, data contains array of int, not array of Atom.
-       (x_property_data_to_lisp, selection_data_to_lisp_data): Comment
-       update: data must be array of int for format == 32.
+       (x_property_data_to_lisp, selection_data_to_lisp_data):
+       Comment update: data must be array of int for format == 32.
 
 2005-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 
        * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
 
-2004-10-21  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
+2004-10-21  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
 
        * xterm.h (x_output): New member `xic_base_fontname'.
        (FRAME_XIC_BASE_FONTNAME): New macro.
        * keyboard.c (cmd_error): Don't call any_kboard_state
        if inside a recursive edit level.
 
-2004-06-13  Lorentey K\e,Aa\e(Broly  <lorentey@elte.hu>
+2004-06-13  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
 
        * keyboard.c (command_loop): Call any_kboard_state before
        command_loop_2 when at top level.