1. 28 Mar, 2011 6 commits
    • Juanma Barranquero's avatar
      src/*.c: Remove some additional unused parameters. · 461c2ab9
      Juanma Barranquero authored
      * lisp.h (multibyte_char_to_unibyte):
      * character.c (multibyte_char_to_unibyte): Remove parameter `rev_tbl',
        unused since 2002-03-01T01:16:34Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
      * character.h (CHAR_TO_BYTE8):
      * cmds.c (internal_self_insert):
      * editfns.c (general_insert_function):
      * keymap.c (push_key_description):
      * search.c (Freplace_match):
      * xdisp.c (message_dolog, set_message_1): All callers changed.
      
      * coding.c (encode_designation_at_bol): Remove parameter `charbuf_end',
        unused since 2002-03-01T01:17:24Z!handa@m17n.org and 2008-02-01T16:01:31Z!miles@gnu.org.
        All callers changed.
      461c2ab9
    • Stefan Monnier's avatar
      Don't reset post-command-hook to nil upon error. · f6d62986
      Stefan Monnier authored
      * src/eval.c (enum run_hooks_condition): Remove.
      (funcall_nil, funcall_not): New functions.
      (run_hook_with_args): Call each function through a `funcall' argument.
      Remove `cond' argument, now redundant.
      (Frun_hooks, Frun_hook_with_args, Frun_hook_with_args_until_success)
      (Frun_hook_with_args_until_failure): Adjust accordingly.
      (run_hook_wrapped_funcall, Frun_hook_wrapped): New functions.
      * src/keyboard.c (safe_run_hook_funcall): New function.
      (safe_run_hooks_1, safe_run_hooks_error, safe_run_hooks): On error,
      don't set the hook to nil, but remove the offending function instead.
      (Qcommand_hook_internal): Remove, unused.
      (syms_of_keyboard): Don't initialize Qcommand_hook_internal nor define
      Vcommand_hook_internal.
      * doc/lispref/commands.texi (Command Overview): post-command-hook is not reset
      to nil any more.
      f6d62986
    • Leo Liu's avatar
      947b6566
    • Juanma Barranquero's avatar
      src/*.c: Remove unused parameters and other warnings. · 1db5b1ad
      Juanma Barranquero authored
      * dispextern.h (string_buffer_position): Remove declaration.
      
      * print.c (strout): Remove parameter `multibyte', unused since
        1999-08-21T19:30:21Z!gerd@gnu.org.  All callers changed.
      
      * search.c (boyer_moore): Remove parameters `len', `pos' and `lim',
        never used since function introduction in 1998-02-08T21:33:56Z!rms@gnu.org.
        All callers changed.
      
      * w32.c (_wsa_errlist): Use braces for struct initializers.
      
      * xdisp.c (string_buffer_position_lim): Remove parameter `w',
        never used since function introduction in 2001-03-09T18:41:50Z!gerd@gnu.org.
        All callers changed.
        (string_buffer_position): Likewise.  Also, make static (it's never
        used outside xdisp.c).
        (cursor_row_p): Remove parameter `w', unused since
        2000-10-17T16:08:57Z!gerd@gnu.org.  All callers changed.
        (decode_mode_spec): Remove parameter `precision', introduced during
        Gerd Moellmann's rewrite at 1999-07-21T21:43:52Z!gerd@gnu.org, but never used.
        All callers changed.
      1db5b1ad
    • Glenn Morris's avatar
      39f31873
    • Glenn Morris's avatar
      Make autogen.sh respect AUTOCONF etc. · 42e85a8f
      Glenn Morris authored
      * autogen.sh (get_version): Discard "not found" lines.
      (check_version): Respect $AUTOCONF etc environment variables.
      42e85a8f
  2. 27 Mar, 2011 6 commits
  3. 26 Mar, 2011 5 commits
    • Chong Yidong's avatar
      Changes to open-protocol-stream, preparing for merging it with open-network-stream. · f2eefd24
      Chong Yidong authored
      * lisp/gnus/proto-stream.el: Changes preparatory to merging open-protocol-stream
      with open-network-stream.
      (proto-stream-always-use-starttls): Option removed.
      (open-protocol-stream): Return a process object by default.  Provide a
      new parameter :return-list specifying a list-type return value, which
      now has the form (PROP . PLIST) instead of a fixed-length list.  Change
      :type `network' to `try-starttls', and `network-only' to `default'.
      Make `default' the default, for compatibility with open-network-stream.
      Handle the no-parameter case exactly as open-network-stream, with no
      additional stream processing.  Search plists using plist-get.
      Explicitly add :end-of-commend parameter if it is missing.
      (proto-stream-open-default): Renamed from
      proto-stream-open-network-only.  Return 'default as the type.
      (proto-stream-open-starttls): Rename from proto-stream-open-network.
      Use plist-get.  Don't return `tls' as the type if STARTTLS negotiation
      failed.  Always return a list with a (possibly dead) process as the
      first element, for compatibility with open-network-stream.
      (proto-stream-open-tls): Use plist-get.  Always return a list.
      (proto-stream-open-shell): Return `default' as connection type.
      (proto-stream-capability-open): Use plist-get.
      (proto-stream-eoc): Function deleted.
      
      * lisp/gnus/nnimap.el (nnimap-stream, nnimap-open-connection)
      (nnimap-open-connection-1): Handle renaming of :type parameter for
      open-protocol-stream.
      (nnimap-open-connection-1): Pass a :return-list parameter
      open-protocol-stream to obtain a list return value.  Parse this list
      using plist-get.
      
      * lisp/gnus/nntp.el (nntp-open-connection): Handle renaming of :type parameter
      for open-protocol-stream.  Accept open-protocol-stream return value
      that is a subprocess object instead of a list.  Handle the case of a
      dead returned process.
      f2eefd24
    • Glenn Morris's avatar
      Replace some obsolete autoconf macros with their modern equivalents. · 181855e6
      Glenn Morris authored
      * configure.in: Replace obsolete macros AC_TRY_COMPILE, AC_TRY_LINK,
      AC_TRY_RUN with AC_COMPILE_IFELSE, AC_LINK_IFELSE, AC_RUN_IFELSE.
      181855e6
    • Eli Zaretskii's avatar
      Call try_scrolling even if buffer's clip_changed flag is set. · 66537049
      Eli Zaretskii authored
       src/xdisp.c (redisplay_window): Don't check buffer's clip_changed
       flag as a prerequisite for invoking try_scrolling.  (Bug#6671)
      66537049
    • Juanma Barranquero's avatar
      src/*.c: Fix more warnings about unused parameters. · 59eb0929
      Juanma Barranquero authored
      * keymap.c (describe_vector): Remove parameters `indices' and
        `char_table_depth', unused since 2002-03-01T01:43:26Z!handa@m17n.org.
        (describe_map, Fdescribe_vector): Adjust calls to `describe_vector'.
      
      * w32.c (read_unc_volume): Use parameter `henum', instead of
        global variable `wget_enum_handle'.
      59eb0929
    • Juanma Barranquero's avatar
      src/*.h: Remove unused parameters and functions. · f868cd8a
      Juanma Barranquero authored
      * keyboard.h (timer_check, show_help_echo): Remove unused parameters.
      
      * keyboard.c (timer_check): Remove parameter `do_it_now',
        unused since 1996-04-12T06:01:29Z!rms@gnu.org.
        (show_help_echo): Remove parameter `ok_to_overwrite_keystroke_echo',
        unused since 2008-04-19T19:30:53Z!monnier@iro.umontreal.ca.
      
      * keyboard.c (read_char):
      * w32menu.c (w32_menu_display_help):
      * xmenu.c (show_help_event, menu_help_callback):
        Adjust calls to `show_help_echo'.
      
      * gtkutil.c (xg_maybe_add_timer):
      * keyboard.c (readable_events):
      * process.c (wait_reading_process_output):
      * xmenu.c (x_menu_wait_for_event): Adjust calls to `timer_check'.
      
      * insdel.c (adjust_markers_gap_motion):
        Remove; no-op since 1998-01-02T21:29:48Z!rms@gnu.org.
        (gap_left, gap_right): Don't call it.
      f868cd8a
  4. 25 Mar, 2011 16 commits
  5. 24 Mar, 2011 3 commits
  6. 23 Mar, 2011 4 commits
    • Leo Liu's avatar
      Move abbrevlist.el to obsolete/abbrevlist.el · cb5af48e
      Leo Liu authored
      cb5af48e
    • Juanma Barranquero's avatar
      w32: Fix some warnings reported by -Wall -Wextra. · 9c88f339
      Juanma Barranquero authored
      * lib-src/ntlib.c: Include <ctype.h>.
      
      * nt/cmdproxy.c: Include <ctype.h>.
        (make_absolute): Remove unused variable `i'.
      
      * src/w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
        (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
        (Fx_close_connection): Remove unused variable `i'.
      
      * src/w32font.c (w32font_draw): Return number of glyphs.
        (w32font_open_internal): Remove unused variable `i'.
        (w32font_driver): Add missing initializer.
      
      * src/w32menu.c (utf8to16): Remove unused variable `utf16'.
        (fill_in_menu): Remove unused variable `items_added'.
      
      * src/w32term.c (last_mouse_press_frame): Remove static global variable.
        (w32_clip_to_row): Remove unused variable `f'.
        (x_delete_terminal): Remove unused variable `i'.
      
      * src/w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
        (NOTHING): Remove unused static global variable.
        (uniscribe_check_otf): Remove unused variable `table'.
        (uniscribe_font_driver): Add missing initializers.
      9c88f339
    • Leo Liu's avatar
      Tweak regexp in help-mode-finish · def71b5e
      Leo Liu authored
      Without this fix, "This special-form is advised." won't be correctly
      fontified.
      def71b5e
    • Julien Danjou's avatar
      dee091a3