]> code.delx.au - gnu-emacs/blobdiff - src/ChangeLog
* menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS".
[gnu-emacs] / src / ChangeLog
index 8ad8075fb83e4fdbc715ec8be174346fd4d10247..6a0475f574138b0a74df31db85e5ef21bc58b437 100644 (file)
@@ -1,5 +1,353 @@
+2010-07-23  Juanma Barranquero  <lekktu@gmail.com>
+
+       * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
+       it is called only from NS code.
+
+       * w32term.c (my_set_focus): #ifdef away; it is called only from
+       "#ifdef 0" code.
+
+       * w32fns.c (x_edge_detection):
+       * xfaces.c (may_use_scalable_font_p):
+       Remove obsolete static declarations.
+
+2010-07-20  Juanma Barranquero  <lekktu@gmail.com>
+
+       * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
+       (emacs_blocked_realloc, uninterrupt_malloc):
+       * fringe.c (w32_reset_fringes):
+       * image.c (convert_mono_to_color_image, lookup_rgb_color)
+       (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
+       * sound.c (be2hs, do_play_sound):
+       * vm-limit.c (get_lim_data, ret_lim_data):
+       * w32term.c (x_free_frame_resources):
+       * xfaces.c (x_create_gc, x_free_gc):
+       Convert definitions to standard C.
+
+2010-07-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * eval.c (Feval, Ffuncall): Use the new names.
+
+       * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
+       (DEFUN): Add braces around the union initialisation and use ## to
+       specify the right union alternative and avoid a cast.
+
+2010-07-18  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
+
+2010-07-17  Chong Yidong  <cyd@stupidchicken.com>
+
+       * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
+
+2010-07-17  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (xg_event_is_for_menubar): Also check that event window
+       is related to the menu bar (Bug#6499).
+       (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
+
+2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
+
+       * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
+
+       * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
+       i.e. don't put back ButtonRelease (Bug#6608).
+
+       * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
+       instead of Window.  Call xg_event_is_for_menubar when
+       USE_GTK (Bug#6499).
+
+       * gtkutil.h (xg_event_is_for_menubar): Declare.
+
+       * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
+
+2010-07-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32fns.c (x_set_foreground_color): Fix setting the cursor color
+       when it's the same as the old foreground.  (Bug#6609)
+
+2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xmenu.c (free_frame_menubar): Only call x_set_window_size if
+       widget is non-null (Bug#6645).
+
+2010-07-15  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
+       Convert old-style definition.
+
+       * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
+       timestamp argument.
+
+2010-07-15  Eli Zaretskii  <eliz@gnu.org>
+
+       * fringe.c (update_window_fringes): Restore mistakenly reverted
+       code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
+
+2010-07-14  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
+       (SET_SAVED_KEY_EVENT): Remove (not used).
+       (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
+       remove size parameter.
+       (handle_one_xevent): Check popup_activated () for menu for Xt also.
+       Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
+       Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
+       ButtonRelease.
+       (x_set_window_size_1): scroll_bar_actual_width is always
+       SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
+
+       * xdisp.c (pending_menu_activation): Remove extern declaration.
+       (prepare_menu_bars): Remove setting of pending_menu_activation.
+
+       * xmenu.c (pending_menu_activation): Remove.
+       (x_activate_menubar): Set popup_activated_flag for Xt also.
+       Remove setting of pending_menu_activation.
+       (set_frame_menubar): Remove check of pending_menu_activation.
+       Declare menubar_size before code.  Correct spelling in comment.
+
+2010-07-14  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (font_open_entity): Cancel previous change.
+       (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
+
+2010-07-13  Eli Zaretskii  <eliz@gnu.org>
+
+       Remove subprocesses #ifdefs.
+       * process.c <inhibit_sentinels>: Move to the common part.
+       (Fwaiting_for_user_input_p): Move to the common part; return nil
+       if async subprocesses aren't supported.
+       * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
+       MS-DOS.  Remove "#ifdef subprocesses".
+       (sys_subshell, sys_select): Remove "#ifdef subprocesses".
+       (gettimeofday): Remove "#ifdef subprocesses".
+       (wait_without_blocking): Remove function.
+       (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
+       Remove "#ifdef subprocesses".
+       (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
+       compiled on MS-DOS.
+       * callproc.c (Fcall_process) [!MSDOS]: Don't call
+       wait_for_termination on MS-DOS.
+       * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
+       initialization of inhibit_sentinels.
+       * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
+       subprocesses" conditional.
+       * callproc.c (Fcall_process) [!subprocesses]: Don't call
+       wait_for_termination, since `buffer' cannot be an integer when
+       async subprocesses are not supported
+       * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
+       for ifdefing away the call to Fprocess_status.
+
+       * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
+       away the entire body of the function.
+
+2010-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Remove subprocesses #ifdefs from term.c.
+       * process.c (add_keyboard_wait_descriptor)
+       (delete_keyboard_wait_descriptor): Move to common section, do
+       nothing when subprocesses is not defined.
+       * term.c (Fsuspend_tty, Fresume_tty, init_tty):
+       Remove subprocesses #ifdefs.
+
+       Convert maybe_fatal to standard C.
+       * lisp.h (verror): Declare.
+       * eval.c (verror): New function containing the code from ...
+       (error): ... this.  Call verror.
+       * term.c (vfatal): New function containing the code from ...
+       (fatal): ... this.  Call vfatal.
+       (maybe_fatal): Convert to standard C, use variable number of
+       arguments.  Declare as non-return.
+       (init_tty): Fix maybe_fatal call.
+
+2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
+       (_scroll_bar_note_movement): Convert definitions to standard C.
+       * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
+       * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
+
+2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
+       (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
+       (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
+       (xaw_jump_callback, xaw_scroll_callback)
+       (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
+       (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
+       definitions to standard C.
+       * xmenu.c (menubar_id_to_frame, popup_get_selection)
+       (popup_activate_callback, popup_deactivate_callback)
+       (menu_highlight_callback, menubar_selection_callback)
+       (apply_systemfont_to_dialog, apply_systemfont_to_menu)
+       (free_frame_menubar, popup_selection_callback, as)
+       (create_and_show_popup_menu, dialog_selection_callback)
+       (create_and_show_dialog):
+       * xfns.c (hack_wm_protocols, x_window):
+       * xfaces.c (x_update_menu_appearance):
+       * widget.c (get_default_char_pixel_size, pixel_to_char_size)
+       (char_to_pixel_size, round_size_to_char, get_wm_shell)
+       (set_frame_size, update_wm_hints, setup_frame_gcs)
+       (update_various_frame_slots, update_from_various_frame_slots)
+       (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
+       (EmacsFrameSetValues, EmacsFrameQueryGeometry)
+       (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
+
+2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
+
+2010-07-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * process.c (setup_process_coding_systems): Move to the part
+       shared by non-subprocesses systems, and make its body empty when
+       subprocesses is not defined.
+       (close_process_descs): Move to the part shared by non-subprocesses
+       systems.
+       (wait_reading_process_output) [!subprocesses]: Convert arg list to
+       ANSI C.
+
+2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * editfns.c (transpose_markers): Convert old-style definition.
+       * emacs.c (abort, shut_down_emacs, fixup_locale)
+       (synchronize_system_time_locale)
+       (synchronize_system_messages_locale, syms_of_emacs): Likewise.
+       * floatfns.c (extract_float, matherr, init_floatfns)
+       (syms_of_floatfns): Likewise.
+       * fns.c (make_hash_table): Likewise.
+       * ftfont.c (ftfont_get_otf, ftfont_otf_features)
+       (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
+       (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
+       (ftfont_variation_glyphs): Likewise.
+       * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
+       * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
+       * lread.c (read_filtered_event): Likewise.
+       * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
+       * process.c (wait_reading_process_output): Likewise.
+       * scroll.c (do_line_insertion_deletion_costs): Likewise.
+       * search.c (search_buffer, boyer_moore): Likewise.
+       * syntax.c (scan_sexps_forward): Likewise.
+       * xdisp.c (try_scrolling): Likewise.
+       * xfaces.c (face_at_buffer_position, face_for_overlay_string)
+       (face_at_string_position): Likewise.
+       * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
+       * xselect.c (x_get_window_property, receive_incremental_selection)
+       (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
+       Likewise.
+       * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
+
+2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * callproc.c (child_setup): Remove subprocesses conditional.
+       Remove code dealing with SET_EMACS_PRIORITY, unused.
+
+       * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
+       * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
+
+       * emacs.c (__do_global_ctors, __do_global_ctors_aux)
+       (__do_global_dtors, __main): Use void in definition.
+       (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
+       Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
+       the only users from ...
+       * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
+       * s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
+       (HAVE_VOLATILE): Remove, unused.
+
+       Convert more function definitions to standard C.
+       * xdisp.c (window_box_edges, handle_single_display_spec)
+       (display_string): Convert definition to standard C.
+       * scroll.c (do_direct_scrolling, scrolling_1):
+       * dispnew.c (allocate_matrices_for_frame_redisplay)
+       (mirrored_line_dance):
+       * coding.c (code_convert_string):
+       * charset.c (map_charset_chars):
+       * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
+       (Fregister_ccl_program, Fregister_code_conversion_map):
+       * keyboard.c (kbd_buffer_nr_stored): Likewise.
+       (head_table): Make static and const.
+
+2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
+       (PROFILING_LDFLAGS): Set from substitution.
+       (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
+       CFLAGS last.
+
+2010-07-12  Kenichi Handa  <handa@m17n.org>
+
+       * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
+       (shortlisp): Likewise.
+
+       * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
+
+       * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
+       of FONT_ENTITY_INDEX.
+       (Ffont_get): If KEY is :otf and the font-object doesn't have the
+       property, get the property value dynamically.
+       (Ffont_put): Accept font-entity and font-object too.
+       (Ffont_get_glyhphs): Renamed from Fget_font_glyphs.  Arguments and
+       return value changed.
+       (syms_of_font): Adjusted for the above change.
+
 2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
 
+       * blockinput.h: Remove obsolete comment.
+
+       * lisp.h: Include <stddef.h>.
+       (OFFSETOF): Don't define.
+       (VECSIZE): Use offsetof instead of OFFSETOF.
+       (PSEUDOVECSIZE): Likewise.
+       * process.c (conv_sockaddr_to_lisp): Likewise.
+       * alloc.c: Don't include <stddef.h>.
+       * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
+
+       * process.c: Remove obsolete comment.
+
+2010-07-11  Chong Yidong  <cyd@stupidchicken.com>
+
+       * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
+
+2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * callint.c (Fcall_interactively): Use strchr, strrchr instead of
+       index, rindex.
+       * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
+       * editfns.c (Fuser_full_name, Fformat): Likewise.
+       * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
+       * fileio.c (Ffile_symlink_p): Likewise.
+       * filelock.c (current_lock_owner): Likewise.
+       * font.c (font_parse_name, font_parse_family_registry): Likewise.
+       * fontset.c (fontset_pattern_regexp): Likewise.
+       * lread.c (read1): Likewise.
+       * sysdep.c (init_system_name): Likewise.
+       * xfns.c (select_visual): Likewise.
+       * s/hpux10-20.h (index, rindex): Don't define.
+       * s/ms-w32.h (index): Likewise.
+       * s/usg5-4.h: Likewise.
+
+       * callproc.c (relocate_fd): Use F_DUPFD if defined.
+
+       * alloc.c (pending_malloc_warning, malloc_warning): Add const.
+       * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
+       (egetenv): Likewise.
+       * doprnt.c (doprnt): Likewise.
+       * editfns.c (set_time_zone_rule, format2): Likewise.
+       * emacs.c (decode_env_path): Likewise.
+       * eval.c (signal_error, error): Likewise.
+       * insdel.c (replace_range_2): Likewise.
+       * keyboard.c (cmd_error_internal): Likewise.
+       * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
+       * print.c (write_string, write_string_1, print_error_message):
+       Likewise.
+       * vm-limit.c (warn_function, memory_warnings): Likewise.
+       * xdisp.c (message1, message1_nolog, message_with_string)
+       (vmessage, message, message_nolog): Likewise.
+       * emacs.c: Remove duplicate declaration.
+       * keyboard.h: Likewise.
+       * lisp.h: Update prototypes.
+
        * eval.c: Fix indentation problem.
 
        * keyboard.c: Include "process.h"
        * xsettings.c:
        * xsmfns.c: Likewise.
 
-
 2010-07-08  Eli Zaretskii  <eliz@gnu.org>
 
        * process.c (kbd_is_on_hold, hold_keyboard_input)
 
 2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>
 
-       * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative declaration.
+       * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
+       declaration.
 
        Clean up include guards.
        * tparam.c: Remove include guards for config.h, string.h and code
 2010-07-07  Jan Djärv  <jan.h.d@swipnet.se>
 
        * process.c (kbd_is_on_hold): New variable.
-       (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
-       functions.
+       (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
+       New functions.
        (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
        select on empty input mask.
        (init_process): Initialize kbd_is_on_hold to 0.
        * dosfns.c:
        * w16select.c: Convert function definitions to ANSI C.
 
-       * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
-       unused prototypes.
+       * msdos.h (ctrl_break_func, install_ctrl_break_check):
+       Remove unused prototypes.
 
 2010-07-07  Juanma Barranquero  <lekktu@gmail.com>
 
        * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
        parameters, they are already absolute.
 
-       * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
-       FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
+       * nsterm.m (x_set_window_size, initFrameFromEmacs):
+       Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
 
-       * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
+       * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
 
-       * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
-       FRAME_TOOLBAR_HEIGHT.
+       * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
+       Update FRAME_TOOLBAR_HEIGHT.
 
-       * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
-       BLOCK/UNBLOCK_INPUT so asserts don't trigger.
+       * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
+       Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
 
 2010-06-30  Chong Yidong  <cyd@stupidchicken.com>
 
        * nsterm.m (ns_draw_fringe_bitmap): Likewise.
 
        * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
-       Take account of bitmap offset.
+       Take account of bitmap offset.
        (draw_window_fringes): Take account of window vscroll.
        (update_window_fringes): Likewise.  Extend top-aligned top indicator
        or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
        * xfns.c (x_default_font_parameter): Try to open font from system
        before using it (bug#6478).  Rename got_from_gconf to got_from_system.
 
-2010-06-22  Keith Packard <keithp@keithp.com> (tiny change)
+2010-06-22  Keith Packard  <keithp@keithp.com>  (tiny change)
 
        * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
 
 
 2010-06-03  Andreas Schwab  <schwab@linux-m68k.org>
 
-       * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
-       address.  (Bug#6346)
+       * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
+       (Bug#6346)
 
 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>