1. 07 Jul, 2010 10 commits
    • Jan D's avatar
      If kbd_buffer is becoming full, stop reading until it drains (Bug#6571). · cb768704
      Jan D authored
      * keyboard.c (input_available_signal): Declare.
      (kbd_buffer_nr_stored): New function.
      (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
      more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
      (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
      returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
      (tty_read_avail_input): If input is on hold, return.
      Don't read more that free slots in kbd_buffer (Bug#6571).
      
      * process.h (hold_keyboard_input, unhold_keyboard_input)
      (kbd_on_hold_p): Declare.
      
      * process.c (kbd_is_on_hold): New variable.
      (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.
      cb768704
    • Eli Zaretskii's avatar
      Convert function definitions in MS-DOS sources to ANSI C. · 3a8ce822
      Eli Zaretskii authored
       msdos.h:
       msdos.c:
       dosfns.c:
       w16select.c: Convert function definitions to ANSI C.
       msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
       unused prototypes.
      3a8ce822
    • Agustín Martín's avatar
      Improve ispell.el word completion handling. · fd5539c6
      Agustín Martín authored
      * ispell.el (ispell-alternate-dictionary): Use file-readable-p.
        Return nil if no word-list is found at default locations.
       (ispell-complete-word-dict): Default to nil.
       (ispell-command-loop): Use 'word-list' when using lookup-words.
       (lookup-words): Use ispell-complete-word-dict or
       ispell-alternate-dictionary.  Check for word-list availability
       and handle errors if needed with better messages (Bug#6539).
       (ispell-complete-word): Use ispell-complete-word-dict or
       ispell-alternate-dictionary.
      fd5539c6
    • Juanma Barranquero's avatar
      ed3751c8
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
      1a4990fb
    • Glenn Morris's avatar
      Minor zone.el fixes for bug#6483. · a2c270e7
      Glenn Morris authored
      Zone did not like the intangible newlines etc in the gomoku buffer.
      
      * lisp/play/zone.el (top-level): Do not require timer, tabify, or cl.
      (zone-shift-left): Ignore intangibility, and any errors from forward-char.
      (zone-shift-right): Remove no-op end-of-line.  Ignore intangibility.
      (zone-pgm-putz-with-case): Use upcase-region rather than inserting,
      deleting, and copying text properties.
      (zone-line-specs, zone-pgm-stress): Check forward-line exit status.
      (zone-pgm-rotate): Handle odd buffers like that of gomoku, where getting
      to point-max is hard.
      (zone-fret, zone-fill-out-screen): Replace cl's do with dotimes.
      (zone-fill-out-screen): Ignore intangibility.
      a2c270e7
    • Dan Nicolaescu's avatar
    • Dan Nicolaescu's avatar
      9715a0b9
    • Dan Nicolaescu's avatar
      Make the function member of Lisp_Subr use standard C prototypes. · c0f2f16b
      Dan Nicolaescu authored
      * src/lisp.h (struct Lisp_Subr): Use a union for the function member.
      (DECL_ALIGN): Add a cast for the function.
      * src/eval.c (Feval, Ffuncall): Use the proper type for each type
      function call.
      c0f2f16b
  2. 06 Jul, 2010 6 commits
  3. 05 Jul, 2010 9 commits
    • Chong Yidong's avatar
      Set default-frame-alist, if necessary, in menu/tool-bar-mode. · 4ad11f8c
      Chong Yidong authored
      * menu-bar.el (menu-bar-mode):
      * tool-bar.el (tool-bar-mode): Replace default-frame-alist element
      if it has been set.
      4ad11f8c
    • Chong Yidong's avatar
      Fix multi-click selection behavior (Bug#6565). · 81133808
      Chong Yidong authored
      * lisp/mouse.el (mouse-drag-track): Call mouse-start-end to handle
      word/line selection (Bug#6565).
      81133808
    • Dan Nicolaescu's avatar
      Convert function definitions and declarations to standard C. · d2aa42f8
      Dan Nicolaescu authored
      * src/vm-limit.c (memory_warnings):
      * src/keyboard.c (modify_event_symbol):
      * src/floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
      (round2, emacs_rint):
      * src/process.c (send_process, old_sigpipe): Convert function
      definitions and declarations to standard C.
      d2aa42f8
    • Juanma Barranquero's avatar
      Convert most remaining function definitions to standard C. · d3da34e0
      Juanma Barranquero authored
      * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
      * xdisp.c: Convert function definitions to standard C.
      
      * cm.c (cmputc): Arg C is now int, not char.
      * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
      d3da34e0
    • Jan D's avatar
      Set _NET_WM(_ICON)_NAME as per Extended Window Manager Hints (Bug#6563). · 00be444c
      Jan D authored
      * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
      
      * xterm.c (x_term_init): Intern the _NET_WM_NAME and
      _NET_WM_ICON_NAME atoms.
      
      * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
      and _NET_WM_ICON_NAME properties, too, matching what is
      done in the Gtk+ case.
      00be444c
    • Jan D's avatar
    • Jan D's avatar
      Fix some bad prototypes and formatting after conversion from K&R declaration. · e4c8d29a
      Jan D authored
      * lwlib/lwlib-Xaw.c: Include <ctype.h> for isdigit.
      (fill_xft_data, set_text): Remove unused variable screen.
      (draw_text): Cast bp to FcChar8*.
      (find_xft_data): Return 0 if inst or xft_data is not set.
      (wm_delete_window): Correct prototype.  Initialize widget to 0
      and return if widget is still 0 after loop.
      
      * lwlib/xlwmenu.c (XlwMenuSetValues, XlwMenuInitialize): Correct prototype.
      (display_menu_item): Remove unused variable gi.
      (make_windows_if_needed): Remove unused variable screen.
      (XlwMenuRedisplay): Remove unused variable i.
      
      * src/gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
      (xg_get_image_for_pixmap, create_dialog)
      (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
      (menuitem_highlight_callback, make_menu_item)
      (xg_create_one_menuitem, create_menus, xg_update_menu_item)
      (xg_create_scroll_bar, xg_update_scrollbar_pos)
      (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
      (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
      (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
      (xg_tool_bar_item_expose_callback): Reformat prototype.
      (xg_update_menubar): GList *group => GSList *group.
      (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
      before use.
      (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
      to GTK_IMAGE (wimage).
      
      * src/xsettings.c (something_changedCB, parse_settings)
      (apply_xft_settings): Reformat prototype.
      (something_changedCB, init_gconf): Remove unused variable i.
      (read_settings): Remove unused variable long_len.
      
      * src/xsmfns.c (SSDATA): New macro.
      (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
      passed to strlen/strcpy/strcat.
      (create_client_leader_window): Surround with #ifndef USE_GTK.  Cast
      7:th arg to XChangeProperty to (unsigned char *)
      e4c8d29a
    • Dan Nicolaescu's avatar
      * src/atimer.c: Use "" instead of <> for local includes for · 898b4c5c
      Dan Nicolaescu authored
      consistency with the rest of the code.
      898b4c5c
    • Dan Nicolaescu's avatar
      Convert declarations or definitions to standard C. · dd4c5104
      Dan Nicolaescu authored
      * src/xsmfns.c (smc_save_yourself_CB, smc_error_handler):
      * src/xrdb.c (get_system_name):
      * src/window.c (shrink_windows):
      * src/syntax.c (forw_comment):
      * src/scroll.c (calculate_scrolling, calculate_direct_scrolling)
      (ins_del_costs):
      * src/mem-limits.h (start_of_data):
      * src/lread.c (readevalloop):
      * src/gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
      (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
      * src/frame.c (x_get_focus_frame):
      * src/floatfns.c (fmod_float):
      * src/fileio.c (choose_write_coding_system):
      * src/emacs.c (fatal_error_signal, init_cmdargs, argmatch)
      (malloc_initialize_hook, sort_args, synchronize_locale):
      * src/doprnt.c (doprnt):
      * src/dired.c (compile_pattern):
      * src/data.c (fmod_float):
      * src/chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
      (map_char_table_for_charset):
      * src/charset.c (define_charset_internal):
      * src/alloc.c (Fgarbage_collect): Convert declarations or definitions
      to standard C.
      dd4c5104
  4. 04 Jul, 2010 15 commits