*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
index 6ef1e24..e7d9521 100644 (file)
@@ -1,7 +1,329 @@
+2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * 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.
+
+2005-03-11  Richard M. Stallman  <rms@gnu.org>
+
+       * fileio.c (Frename_file, Fadd_name_to_file)
+       (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
+       expand the basename of FILE relative to it.
+
+2005-03-11  Kenichi Handa  <handa@m17n.org>
+
+       * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
+       before calling setup_coding_system so that autoloading of a coding
+       system work.
+
+2005-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xfns.c (hourglass_started): New function.
+
+       * dispextern.h: Declare hourglass_started.
+
+       * keyboard.c (Fexecute_extended_command): Restart hourglass
+       after call to Fcompleting_read if already started.
+
+       * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
+       GTK main loop is entered in xterm.c, thus doing the redraw.
+
+2005-03-10  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
+
+2005-03-08  Kenichi Handa  <handa@m17n.org>
+
+       * frame.c (x_set_font): Call set_default_ascii_font if an
+       available font is found.
+
+       * fontset.c (set_default_ascii_font): New function.
+       (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
+
+       * fontset.h (set_default_ascii_font): Extern it.
+
+2005-03-07  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
+       (clear_image_cache_count): New var.
+       (redisplay_internal): Don't clear face and image caches in the
+       middle of redisplay; do it afterwards.
+
+       * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
+
+       * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
+       is valid.  If not, clear phys_cursor_on_p and return.
+
+2005-03-07  Andreas Schwab  <schwab@suse.de>
+
+       * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
+
+2005-03-06  Richard M. Stallman  <rms@gnu.org>
+
+       * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
+
+       * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
+       (Feval, Ffuncall): Use CHECK_CONS_LIST.
+
+       * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
+
+       * blockinput.h (UNBLOCK_INPUT_TO): New macro.
+       (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
+
+2005-03-05  Juri Linkov  <juri@jurta.org>
+
+       * emacs.c (USAGE1): Replace Info node name "command arguments"
+       with "emacs invocation".
+       (USAGE3): Fix usage of `--color=MODE' which actually doesn't
+       allow arguments `--color' and `MODE' to be separated by space.
+       Add --no-blinking-cursor, -nbc.
+       (standard_args): Add -nbc, --no-blinking-cursor.
+
+2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
+       * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
+       * fileio.c (Fexpand_file_name) [VMS]:
+       Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
+       * doc.c (munge_doc_file_name) [VMS]: Likewise.
+       (Fsnarf_documentation): Call munge_doc_file_name.
+
+2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * s/vms.h (FILE_SYSTEM_CASE): New macro.
+       * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
+       "manually"; this is now handled generally via FILE_SYSTEM_CASE.
+
+2005-03-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
+       defined (MAC_OSX) && defined (HAVE_CARBON)'.
+
+       * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
+
+       * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
+       [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
+       (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
+       (mac_clear_font_name_table): Move extern to macterm.h.
+
+       * macfns.c (install_window_handler): Move extern to macterm.h.
+       (Fx_file_dialog): Check STRINGP (default_filename) to see it is
+       valid.  Don't check !NILP (dir) because it is already checked with
+       CHECK_STRING.
+       (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
+       specifying the default location and obtaining the selected filename.
+
+       * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
+
+       * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
+       are included via Carbon.h.
+
+       * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
+       Define USE_CARBON_EVENTS to 1.
+       (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
+       (x_free_frame_resources): Call remove_window_handler for
+       non-tooltip windows.
+       [TARGET_API_MAC_CARBON]: Don't include headers that are included
+       via Carbon.h.
+       [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
+       (mac_do_receive_dragUPP): New variables.
+       (mac_handle_service_event, init_service_handler): Put declarations
+       and definitions in #ifdef MAC_OSX.
+       (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
+       drag-and-drop handler functions and register them.
+       (remove_window_handler): New function.
+       (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
+       Use fsspec_to_posix_pathname.
+       (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
+       (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
+       [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
+       Set default cursors.
+       (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
+       init_service_handler or init_quit_char_handler.
+       (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
+
+       * macterm.h (install_window_handler, remove_window_handler)
+       (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
+       (mac_clear_font_name_table): New externs.
+
+2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
+       (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
+       (Fexpand_file_name): Likewise.
+
+2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
+
+       * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
+       no longer special-case VMS.  Add bogus return value.
+
+2005-03-02  Kim F. Storm  <storm@cua.dk>
+
+       * dispextern.h (XASSERTS): Define to 0 if not already defined.
+       (xassert) [!XASSERTS]: Define dummy version.
+
+2005-03-02  Kim F. Storm  <storm@cua.dk>
+
+       * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
+       Reported by David Kastrup.
+
+2005-03-01  Ehud Karni  <ehud@unix.mvs.co.il>
+
+       * xdisp.c (get_next_display_element): Fix control and escape
+       glyph from display vector.
+
 2005-03-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
 
+2005-02-27  Richard M. Stallman  <rms@gnu.org>
+
+       * xdisp.c (fast_find_position): Rename END to BEG.
+       (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
+
 2005-02-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
 
        * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
 
        * 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>
 
        [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
        Reject only when there are no filename items.  Set background color
        before (un)highlighting the window below the dragged items.
-       (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
+       (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
 
 2005-01-05  Romain Francoise  <romain@orebokech.com>