Remove.
(comint-insert-input, comint-mouse-insert-input): New functions
based on comint-insert-clicked-input for two bindings but just
one functionality.
Obey `start' as the docstring says.
(comint-send-input, comint-snapshot-last-prompt, comint-output-filter)
(comint-update-fence): Prevent font-lock from running unnecessarily.
(comint-dynamic-list-completions): Use with-current-buffer.
(comint-last-input-start, comint-last-input-end)
(comint-last-output-start): Give them values.
(comint-arguments): Avoid warning.
(comint-skip-prompt): Use line-end-position.
(comint-backward-matching-input): Rename arg to agree with doc.
(comint-extract-string): Use syntax-ppss.
(comint-dynamic-simple-complete): Delete useless list construction.
(comint-redirect-subvert-readonly): New.
(comint-redirect-preoutput-filter): Use it.
(comint-dynamic-complete-as-filename): Rename local vars.
(comint-dynamic-list-filename-completions): Likewise.
(comint-dynamic-list-completions-config): New var.
(comint-dynamic-list-completions): Handle both SPC and TAB right.
(comint-file-name-chars): Add [].
(comint-word): Use skip-chars-backward, not search.
comint-scroll-to-bottom-on-output. Old name is alias.
Doc fix. All uses changed.
(comint-scroll-show-maximum-output): Doc fix.
(comint-exec-1): Don't use directory-sep-char.
(comint-dynamic-complete-as-filename): Likewise.
(comint-inhibit-carriage-motion): New variable.
(comint-carriage-motion): Argument STRING removed. New arguments
START and END; interpret characters between START and END rather
than using special comint state.
(comint-output-filter): Call `comint-carriage-motion'.
(comint-output-filter-functions): Don't add `comint-carriage-motion'.
(comint-last-output-overlay): Variable removed.
(comint-send-input, comint-output-filter): Use text properties instead
of overlays.
(comint-insert-clicked-input): Rewrite to work with text properties as
well as overlays.
(comint-snapshot-last-prompt): Snapshot using text properties.
(comint-get-old-input-default, comint-extract-string): Don't copy text
properties.
(comint-output-filter-functions, comint-input-filter-functions)
(comint-redirect-filter-functions): Likewise.
(comint-redirect-preoutput-filter): Do the local-hook
handling of t when running comint-redirect-filter-functions.
(comint-output-filter): Likewise for comint-preoutput-filter-functions.