1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-22 10:26:20 +00:00
Commit Graph

205 Commits

Author SHA1 Message Date
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
Karl Heuer
e7cfa73fc0 (comint-arguments): Handle \ followed by space or tab. 1999-07-20 04:17:05 +00:00
Karl Heuer
40c2d410ca (comint-password-prompt-regexp): Allow "(again)". 1999-06-27 21:39:42 +00:00
Karl Heuer
37dbcd5cf3 (comint-bol-or-process-mark): Doc fix. 1999-05-24 06:45:49 +00:00
Joel N. Weber II
163b46fa20 (comint-password-prompt-regexp): Modified to match the output of ksu
and ssh-add.
1999-05-11 22:32:52 +00:00
Karl Heuer
db4a79ae0b (comint-password-prompt-regexp): Fix last change to be more specific. 1999-05-09 00:44:50 +00:00
Joel N. Weber II
9cc68f101e (comint-password-prompt-regexp): Modified so that it matches the
output of kinit.
1999-05-07 05:26:44 +00:00
Karl Heuer
3a320e54cf (comint-password-prompt-regexp): Accept "login password:" 1999-03-11 22:56:58 +00:00
Markus Rost
6d2a6ce65a (comint-file-name-quote-list): Doc fix. 1998-11-02 18:59:11 +00:00
Simon Marshall
d2b251aa61 make pre-command-hook & comint-exec-hook local hooks. 1998-09-29 10:14:44 +00:00
Geoff Voelker
21a003b90f (comint-arguments): Ignore backslashes when using
w32 shells that expect backslashes as the directory separator.
1998-09-07 23:39:23 +00:00
Richard M. Stallman
2c3d598531 (comint-postoutput-scroll-to-bottom): Cope with unset
comint-last-output-start marker.
1998-08-15 22:27:54 +00:00
Richard M. Stallman
c2705d61de (comint-bol-or-process-mark): Refer to this command's name correctly. 1998-08-04 09:30:02 +00:00
Richard M. Stallman
33ba5485ee (comint-exec-1): Setup coding systems appropriately. 1998-06-30 21:43:39 +00:00
Andreas Schwab
0560c209ff (comint-input-autoexpand): Use `other' widget type. 1998-06-24 08:50:14 +00:00
Richard M. Stallman
fb597fe85a (comint-mode-map): Move bindings of
comint-next-matching-input-from-input to C-c M-r, and
comint-previous-matching-input-from-input to C-c M-s.
Move comint-get-next-from-history to C-c C-x.
1998-05-28 01:16:21 +00:00
Richard M. Stallman
361ecbf2ee (comint-get-next-from-history): New command.
(comint-accumulate, comint-goto-process-mark): Likewise.
(comint-set-process-mark, comint-bol-or-process-mark): Likewise.
(comint-save-input-ring-index): New permanent local var.
(comint-accum-marker): Likewise.
(comint-send-input): Clear comint-input-ring-index
and comint-accum-marker.
(comint-previous-matching-input-from-input):
Use comint-accum-marker if set.
(comint-previous-matching-input): Likewise.
(comint-mode): Make those vars buffer-local and initialize.
(comint-mode-map): Make C-c C-a run comint-bol-or-process-mark.
Bind C-c SPC to comint-accumulate.  Bind C-c C-q to
comint-get-next-from-history.
1998-05-27 21:06:56 +00:00
Richard M. Stallman
2ac86cc0fe (comint-replace-by-expanded-history-before-point):
When none of the ! or ^ constructs match, move forward one char.
1998-05-05 21:29:28 +00:00
Richard M. Stallman
17ac49664b (comint-replace-by-expanded-history): New arg START.
Don't display a message about doing history expansion.
(comint-replace-by-expanded-history-before-point): New arg START.
(comint-send-input): Pass START to comint-replace-by-expanded-history.
1998-04-23 03:55:36 +00:00
Geoff Voelker
da418b28dc (comint-filename-chars): Combine DOS and Windows strings. 1998-04-17 05:23:53 +00:00
Richard M. Stallman
e7654b4a74 (comint-preoutput-filter-functions): Doc fix. 1998-03-21 06:16:35 +00:00
Richard M. Stallman
e4947876fb (comint-word): store-match-data => set-match-data. 1998-03-14 04:42:18 +00:00
Richard M. Stallman
ec5691271b (comint-arguments): Treat \" and such as part of one arg. 1998-03-02 19:02:28 +00:00
Simon Marshall
17193f89b7 Changed to use directory-sep-char rather than "/". 1998-02-27 12:58:26 +00:00
Richard M. Stallman
1a94abeac2 (comint-interrupt-subjob): Call comint-kill-input.
(comint-kill-subjob, comint-quit-subjob, comint-stop-subjob): Likewise.
1998-02-14 04:32:38 +00:00
Karl Heuer
71a895c609 (comint-strip-ctrl-m): Don't die if
comint-last-output-start does not point anywhere.
1997-12-11 07:25:16 +00:00
Karl Heuer
9f8ac7f9ea (comint-regexp-arg): No need to bind
minibuffer-history-sexp-flag any more.
1997-10-02 03:03:32 +00:00
Richard M. Stallman
af898b0f84 (comint-file-name-chars): Doc fix.
(comint-word): Treat all non-ASCII chars as "[art of word".
1997-09-09 07:24:02 +00:00