Commit graph

232 commits

Author SHA1 Message Date
Gerd Moellmann
7e4f9cf463 (comint-replace-by-expanded-history-before-point): Fix
change of 2000-08-03 to move point to the start of the line again.
2001-01-24 16:21:56 +00:00
Gerd Moellmann
bec04ade3a (comint-goto-process-mark): Don't print a message
when running in batch mode.
2001-01-11 15:39:27 +00:00
Gerd Moellmann
0fddb84c10 (comint-input-history-ignore): New variable.
(comint-read-input-ring): Ignore entries matching
comint-input-history-ignore.
2001-01-02 14:15:22 +00:00
Miles Bader
95fa4fd795 From Markus Rost <markus.rost@mathematik.uni-regensburg.de>:
(comint-password-prompt-regexp): Support CVS.
2000-12-22 16:26:40 +00:00
Miles Bader
9f62634527 (comint-send-string, comint-send-region): Also accept a buffer, buffer-name,
or nil for PROCESS, for compatibility with process-send-string/region.
2000-12-15 14:09:22 +00:00
Stefan Monnier
1f43943cf0 (comint-mode): Don't both with make-local-hook. 2000-11-03 20:59:18 +00:00
Dave Love
51d001f7e3 Capital in last change. 2000-11-03 11:39:15 +00:00
Dave Love
97342eb1d4 (comint-completion-addsuffix): Fix custom type. 2000-11-03 11:31:34 +00:00
Eric M. Ludlam
936c15f6ec (comint-add-to-input-history): New function.
(comint-send-input): Use `comint-add-to-input-history'.
2000-11-02 02:25:27 +00:00
Miles Bader
207701925a (comint-get-old-input-default): Reword error message. 2000-10-30 06:25:26 +00:00
Miles Bader
1ec321a750 (comint-replace-by-expanded-history): Don't use
comint-get-old-input (we're not looking at *old* input).
(comint-get-old-input-default): If using fields, signal an error
when the point is not in an input field.
2000-10-30 06:22:20 +00:00
Miles Bader
053457f406 (comint-highlight-prompt): Add :type. 2000-10-29 14:48:11 +00:00
Miles Bader
a7fd458a8c (make-comint-in-buffer): New function.
(make-comint): Use it.
2000-10-27 08:00:32 +00:00
Miles Bader
44016d251b (comint-mode): Locally set `next-line-add-newlines' to nil.
(comint-mode-map): Reverse order of `comint-write-output' and
  `comint-append-output-to-file'.
(comint-append-output-to-file): Reinstate this function, for the
  benefit of the menu.
2000-10-26 00:46:47 +00:00
Miles Bader
c7c800d8d1 (comint-output-filter, comint-send-input):
Don't bother adding stickiness fields to overlays to fool the field
  code, since it should notice the overlay insertion-types now.
2000-10-25 05:21:54 +00:00
Miles Bader
7ff4fda533 (comint-highlight-input, comint-highlight-prompt):
Renamed, `-face' at end removed.
(comint-send-input, comint-output-filter):
  Use renamed faces.
2000-10-22 12:36:41 +00:00
Miles Bader
0da5c14acd (comint-write-output): Add APPEND argument. Rework interactive spec.
(comint-append-output-to-file): Function removed.
2000-10-19 04:21:09 +00:00
Miles Bader
dd749c1fdc (comint-mode-map): Bind `C-c C-s' to comint-write-output. 2000-10-19 03:46:11 +00:00
Miles Bader
d134a19f84 (comint-write-output, comint-append-output-to-file): New functions.
(comint-mode-map): Add them to the menu.
2000-10-19 02:12:30 +00:00
Gerd Moellmann
3e8abfd398 (comint-read-input-ring): Bugfix such that the first
and the last entry of the input ring file are not lost.
2000-10-18 14:42:38 +00:00
Miles Bader
4e217e5069 (comint-delete-output): Renamed from `comint-kill-output'.
(comint-kill-output): Changed into an alias for `comint-delete-output',
  and made obsolete.
(comint-mode-map): Rename references to comint-kill-output.
2000-10-18 14:09:54 +00:00
Miles Bader
1e317a4a3e (comint-output-filter):
Fixup comint-last-input-end too.
  Remove commented-out call to force-mode-line-update.
(comint-kill-output):
  Use `forward-line 0' instead of beginning-of-line to make sure we get
  past the prompt.
2000-10-18 01:43:01 +00:00
Miles Bader
814299a771 Cleanup whitespace. 2000-10-09 02:29:48 +00:00
Miles Bader
2464210ee0 (comint-watch-for-password-prompt): Use STRING as a prompt. 2000-10-06 04:54:57 +00:00
Stefan Monnier
ef779078e2 (comint-mode-hook): Docstring fix.
(comint-mode): Use define-derived-mode.
(comint-mode-map): Remove obsolete comment.
(make-comint): Minor stylistic change.
(comint-insert-clicked-input): Be more careful to find the overlay.
Use this-command-keys rather than hardcoding mouse-2.
2000-09-29 02:05:07 +00:00
Miles Bader
bdf08678db (comint-output-filter):
Revert to using `insert-before-markers'.
  Add bletcherous hack to undo damage caused by `insert-before-markers'.
  Put `front-sticky' property on overlays created here so that the field code
    understands how the overlay works.
  Use a let when making comint-last-prompt-overlay, so that the code is
    easier to read.
2000-09-13 12:08:32 +00:00
Miles Bader
22bcff4e75 (comint-send-input):
Create overlays using the proper front/read-advance arguments.
2000-08-29 11:21:09 +00:00
Miles Bader
5484005d7b (comint-output-filter):
Compare end of comint-last-output-overlay with the start of the newly
    inserted text, not the end, when deciding whether to extend it.
  Set saved-point's insertion type to advance after insertion.
2000-08-22 10:09:56 +00:00
Miles Bader
5d9045edcf (comint-output-filter):
Save the point with a marker, not just a buffer position.
2000-08-19 12:36:48 +00:00
Miles Bader
d8d972bf49 (comint-output-filter): Remove ad-hoc saving of restriction, and just
use save-restriction, now that it works correctly.  Don't adjust
comint-last-input-start to account for our insertion; it shouldn't have
moved because we don't use insert-before-markers anymore.  Comment out
call to `force-mode-line-update'; why is it here?
2000-08-19 01:55:40 +00:00
Miles Bader
1cc9bc49d8 (comint-bol): Use `forward-line 0' instead of calling beginning-of-line
with inhibit-field-text-motion bound.
2000-08-14 12:56:03 +00:00
Miles Bader
660394d1fb (comint-output-filter): Don't bother frobbing window-start, it doesn't
seem to be necessary.
2000-08-12 01:48:25 +00:00
Miles Bader
79e8dca7df (comint-send-string, comint-send-region): Make into real functions.
Snapshot the prompt before sending.
2000-08-11 19:17:18 +00:00
Miles Bader
867102f2b8 (comint-output-filter): Doc fixes & misc code cleanup. 2000-08-10 13:07:25 +00:00
Miles Bader
b59b731fa1 (comint-send-input): Make the newline boundary overlay rear-nonsticky.
Use `insert' instead of `insert-before-markers'.
(comint-output-filter): Use `insert' instead of `insert-before-markers'.
Extend comint-last-output-overlay when necessary since we can't rely on
insert-before-markers to do it.
2000-08-10 10:52:29 +00:00
Miles Bader
3db4b71989 (comint-highlight-prompt, comint-highlight-prompt-face)
(comint-last-prompt-overlay): New variables.
(comint-output-filter): Implement prompt highlighting.
(comint-snapshot-last-prompt): New function.
(comint-send-input): Snapshot the last prompt.
Use comint-highlight-input-face.
(comint-highlight-input-face): Renamed from `comint-highlight-face'.
Use defface instead of defcustom.
(send-invisible, comint-send-eof): Snapshot the last prompt.
(comint-delchar-or-maybe-eof): Use comint-send-eof.
(comint-mode): Make `comint-last-prompt-overlay' buffer-local.
2000-08-10 10:35:40 +00:00
Miles Bader
5ed65b55a5 (comint-output-filter): Properly handle the case where the text
surrounded by comint-last-output-overlay was deleted.
2000-08-08 22:55:38 +00:00
Miles Bader
2953392320 (comint-use-prompt-regexp-instead-of-fields): New variable.
(comint-prompt-regexp, comint-get-old-input): Document dependence on
  comint-use-prompt-regexp-instead-of-fields.
(comint-send-input): Add `input' field property to stuff we send to
  the process, if comint-use-prompt-regexp-instead-of-fields is nil.
(comint-output-filter): Add `output' field property to process
  output, if comint-use-prompt-regexp-instead-of-fields is nil.
(comint-replace-by-expanded-history)
(comint-get-old-input-default, comint-show-output)
(comint-backward-matching-input, comint-forward-matching-input)
(comint-next-prompt, comint-previous-prompt):  Use field
  properties if comint-use-prompt-regexp-instead-of-fields is nil.
(comint-line-beginning-position): New function.
(comint-bol): Use comint-line-beginning-position.  Make ARG optional.
(comint-replace-by-expanded-history-before-point): Use
  comint-line-beginning-position and line-end-position.
(comint-last-output-overlay): New variable.
(comint-mode): Make `comint-last-output-overlay' buffer-local.
2000-08-07 14:50:09 +00:00
Gerd Moellmann
ae57d456bc (comint-highlight-input, comint-highlight-face):
New user options.
(comint-input-ring-file-name): Change custom type.
(comint-mode-map): Bind mouse-2.
(comint-insert-clicked-input): New function.
(comint-send-input): Handle input highlighting.
2000-07-19 15:50:13 +00:00
Gerd Moellmann
db7ae45bd7 (comint-substitute-in-file-name): Call replace-match
with second and third arg t.
2000-06-23 07:05:13 +00:00
Dave Love
f1ed9461a9 Add to debug-ignored-errors. 2000-05-22 17:41:53 +00:00
Gerd Moellmann
cdc4401d66 (comint-read-input-ring): Move reference to
comint-input-ring-size outside of the save-excursion.  It was
causing the default value to be the only one ever seen.
2000-05-11 20:35:51 +00:00
Stefan Monnier
433d16a196 (comint-exec-1): Add the current-dir to the exec-path when
the command has a directory component (such as "./testml").
Also fix a typo in the comment.
2000-03-08 23:46:09 +00:00
Gerd Moellmann
f34a40eff7 (comint-redirect-results-list)
(comint-redirect-results-list-from-process): Remove interactive
spec.
1999-12-06 17:44:17 +00:00
Dave Love
07c8b450a9 Fix last change. 1999-11-26 21:27:25 +00:00
Richard M. Stallman
c095ddb9a1 (comint-preoutput-filter-functions): Doc fix. 1999-11-26 17:34:46 +00:00
Gerd Moellmann
3965beb02c Add redirection.from active comint buffers into
another buffer.  Written by Peter Breton.
1999-11-23 10:20:07 +00:00
Gerd Moellmann
2c8e62112a (comint-output-filter): Make the Comint buffer current
for the comint-preoutput-filter-functions.
1999-10-25 13:44:12 +00:00
Richard M. Stallman
bc29fd5ff8 (comint-input-ring-separator): New variable.
(comint-read-input-ring): Doc change; use
comint-input-ring-separator when reading file.
(comint-write-input-ring): Use comint-input-ring-separator when writing file.
1999-08-29 20:55:30 +00:00
Karl Heuer
5762abecd3 Fix maintainer address. 1999-08-16 04:04:27 +00:00