1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00
Commit Graph

249 Commits

Author SHA1 Message Date
Francesco Potortì
5889cc202a (comint-password-prompt-regexp): Make it less restrictive, letting
comint recognise OpenSSH2 passphrase prompts.
2001-10-17 15:38:45 +00:00
Miles Bader
a277229e6b (comint-insert-previous-argument): New function.
(comint-mode-map): Bind `C-c .' to `comint-input-previous-argument'.
(comint-insert-previous-argument-last-start-pos)
(comint-insert-previous-argument-last-index): New variables.
2001-10-09 02:26:00 +00:00
Miles Bader
4e1513b594 (comint-send-input): When waiting for echoed input, don't save the
expected end position in `echo-end', so that things work properly even
if the buffer is modified elsewhere at the same time [this happens if
`comint-truncate-buffer' is used].
2001-09-11 08:43:02 +00:00
Gerd Moellmann
c9e74cd4be (comint-send-input): Handle comint-process-echoes
differently.
2001-09-07 13:30:50 +00:00
Gerd Moellmann
8d4f05f8e7 (comint-send-input): Change help-echo.
From "Dr Francis J. Wright" <F.J.Wright@qmw.ac.uk>.
2001-09-04 13:20:45 +00:00
Gerd Moellmann
c8dd66e195 (comint-insert-clicked-input): Goto point-max before
deleting previous input.  From "Dr Francis J. Wright"
<F.J.Wright@qmw.ac.uk>.
2001-09-04 12:45:13 +00:00
Miles Bader
f900ec3114 (comint-next-prompt): Don't loop infinitely if
{next,previous}-single-char-property-change returns its input position
when the search fails.
2001-08-27 18:13:39 +00:00
Miles Bader
d3b98912ef (comint-get-old-input-default): Don't signal an error if point is not on
an input field; instead, return the current line (using `comint-bol' to
skip any prompt, in case we're not using fields at all).
2001-08-27 13:03:53 +00:00
Miles Bader
8c24e65bee (comint-send-input): Add `inhibit-line-move-field-capture' property to
input-terminating `boundary' overlays to avoid line-move wierdness.
2001-08-16 14:52:16 +00:00
Pavel Janík
1cd7adc68a Emacs lisp coding convention fixes. 2001-07-14 11:21:08 +00:00
Eli Zaretskii
e20e70c3b3 (comint-send-input): Add help-echo to mouse-highlighted text. 2001-06-17 11:17:17 +00:00
Miles Bader
8e3f37811a (comint-carriage-motion): Doc-string tweaks. 2001-05-28 15:09:44 +00:00
Gerd Moellmann
3db6f8cad4 (comint-carriage-motion): Renamed from
`comint-cr-magic'.  Operate on the buffer instead of the string
(for use as a comint post-output filter, instead of as a
pre-output filter).  Handle backspaces too.  Add to the
`comint-output-filter-functions' hook instead of
`comint-preoutput-filter-functions'.
2001-05-28 13:01:24 +00:00
Gerd Moellmann
ccc5e35ff2 Comment fix. 2001-05-16 11:12:57 +00:00
Gerd Moellmann
80c40c6fbc (comint-cr-magic): New function.
(toplevel): Add it to comint-preoutput-filter-functions.
2001-04-18 14:18:44 +00:00
Gerd Moellmann
a91ad7c961 (comint-exec-1): Set columns of the terminal to
window-width instead of frame-width.
2001-03-20 15:11:31 +00:00
Gerd Moellmann
909a918220 (comint-insert-clicked-input): Use the last key
from this-command-keys to lookup the global key definition.
2001-03-09 14:20:59 +00:00
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