1. 24 Jul, 2010 6 commits
  2. 23 Jul, 2010 4 commits
  3. 20 Jul, 2010 3 commits
    • Juanma Barranquero's avatar
      Convert some more functions to standard C. · 7c3320d8
      Juanma Barranquero authored
      * lib-src/emacsclient.c (get_current_dir_name, w32_get_resource)
        (w32_getenv, w32_set_user_model_id, w32_window_app, w32_execvp)
        (close_winsock, initialize_sockets, w32_find_emacs_process)
      * lib-src/ntlib.c (getlogin, getuid, getgid, getegid):
      * nt/addpm.c (add_registry, main):
      * nt/cmdproxy.c (get_env_size):
      * nt/ddeclient.c (main):
      * nt/runemacs.c (set_user_model_id):
      * src/alloc.c (emacs_blocked_free, emacs_blocked_malloc)
        (emacs_blocked_realloc, uninterrupt_malloc):
      * src/fringe.c (w32_reset_fringes):
      * src/image.c (convert_mono_to_color_image, lookup_rgb_color)
        (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
      * src/sound.c (be2hs, do_play_sound):
      * src/vm-limit.c (get_lim_data, ret_lim_data):
      * src/w32term.c (x_free_frame_resources):
      * src/xfaces.c (x_create_gc, x_free_gc):
        Convert definitions to standard C.
    • Stefan Monnier's avatar
      Fix up "missing braces" warning. · d5273788
      Stefan Monnier authored
      * src/eval.c (Feval, Ffuncall): Use the new names.
      * src/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.
    • Juanma Barranquero's avatar
      Fix typos in ChangeLogs. · a628ad9d
      Juanma Barranquero authored
  4. 18 Jul, 2010 1 commit
  5. 17 Jul, 2010 4 commits
  6. 16 Jul, 2010 1 commit
  7. 15 Jul, 2010 3 commits
  8. 14 Jul, 2010 6 commits
    • Jan D's avatar
      Fix frame size when scroll bar width not an integral of column width. · 6b2c4bd9
      Jan D authored
      xterm.c (x_set_window_size_1): scroll_bar_actual_width is always
      SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
    • Jan D's avatar
      Fix menu bar activation with click for Motif/Lesstif. · cf28cebc
      Jan D authored
      * src/xdisp.c (pending_menu_activation): Remove extern declaration.
      (prepare_menu_bars): Remove setting of pending_menu_activation.
      * src/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.
      * src/xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
      (SET_SAVED_KEY_EVENT): Remove (not used).
      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
    • Jan D's avatar
      Fix menus as per bug 6499 and 6608. · b78f9767
      Jan D authored
      * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
      * gtkutil.h (xg_event_is_for_menubar): Declare.
      * 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).
      * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
      i.e. don't put back ButtonRelease (Bug#6608).
      * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
      * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
    • Eli Zaretskii's avatar
      Fix bug #6609. · 1f60c16a
      Eli Zaretskii authored
       w32fns.c (x_set_foreground_color): Fix setting the cursor color
       when it's the same as the old foreground.
    • Kenichi Handa's avatar
      Fix previous conflict. · ebd3d6af
      Kenichi Handa authored
    • Kenichi Handa's avatar
  9. 13 Jul, 2010 4 commits
    • Eli Zaretskii's avatar
      Remove more "#ifdef subprocesses". · 77defa9a
      Eli Zaretskii authored
       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.
    • Eli Zaretskii's avatar
      Fix the MS-DOS build (fallout from 2010-07-13T04:54:28Z!dann@ics.uci.edu). · 20477505
      Eli Zaretskii authored
       process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
       away the entire body of the function.
    • Dan Nicolaescu's avatar
      Remove subprocesses #ifdefs from term.c. · 01faa934
      Dan Nicolaescu authored
      * src/process.c (add_keyboard_wait_descriptor)
      (delete_keyboard_wait_descriptor): Move to common section, do
      nothing when subprocesses is not defined.
      * src/term.c (Fsuspend_tty, Fresume_tty, init_tty): Remove subprocesses #ifdefs.
    • Dan Nicolaescu's avatar
      Convert maybe_fatal to standard C. · b3ffc17c
      Dan Nicolaescu authored
      * src/lisp.h (verror): Declare.
      * src/eval.c (verror): New function containing the code from ...
      (error): ... this.  Call verror.
      * src/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.
  10. 12 Jul, 2010 8 commits
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C. · 0521f580
      Dan Nicolaescu authored
      * src/xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
      (_scroll_bar_note_movement): Convert definitions to standard C.
      * src/xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
      * src/xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C. · ebd15611
      Dan Nicolaescu authored
      * src/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.
      * src/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)
      * src/xfns.c (hack_wm_protocols, x_window):
      * src/xfaces.c (x_update_menu_appearance):
      * src/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.
    • Andreas Schwab's avatar
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org,... · fc549af9
      Eli Zaretskii authored
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org, 2010-07-12T17:04:38Z!dann@ics.uci.edu, 2010-07-12T17:21:11Z!dann@ics.uci.edu).
       Edit to empty.
       Edit to empty.
       src/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
    • Andreas Schwab's avatar
      Convert old-style definitions · d5a3eaaf
      Andreas Schwab authored
      * editfns.c (transpose_markers): Convert old-style definition.
      * emacs.c (abort, shut_down_emacs, fixup_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):
      * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
    • Dan Nicolaescu's avatar
      Cleanups for src/callproc.c. · ded80a25
      Dan Nicolaescu authored
      * src/callproc.c (child_setup): Remove subprocesses conditional.
      Remove code dealing with SET_EMACS_PRIORITY, unused.
    • Dan Nicolaescu's avatar
      * src/buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional. · 49d937f4
      Dan Nicolaescu authored
      * src/process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.