diff options
| author | Gerd Moellmann | 2001-09-04 12:45:13 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-09-04 12:45:13 +0000 |
| commit | c8dd66e19504d857d4bab3c4fd2d660ed037b604 (patch) | |
| tree | 6790c3f6520381bfdf9985e9d1d52e09bd97f31b | |
| parent | 83536c16cd4ab21436859ba4d1dfdf2badd6ebbe (diff) | |
| download | emacs-c8dd66e19504d857d4bab3c4fd2d660ed037b604.tar.gz emacs-c8dd66e19504d857d4bab3c4fd2d660ed037b604.zip | |
(comint-insert-clicked-input): Goto point-max before
deleting previous input. From "Dr Francis J. Wright"
<F.J.Wright@qmw.ac.uk>.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/comint.el | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 81ddbd18936..24ac14e7b44 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2001-09-04 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-09-04 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * comint.el (comint-insert-clicked-input): Goto point-max before | ||
| 4 | deleting previous input. From "Dr Francis J. Wright" | ||
| 5 | <F.J.Wright@qmw.ac.uk>. | ||
| 6 | |||
| 3 | * simple.el (backward-word): Doc fix. | 7 | * simple.el (backward-word): Doc fix. |
| 4 | 8 | ||
| 5 | 2001-09-04 Eli Zaretskii <eliz@is.elta.co.il> | 9 | 2001-09-04 Eli Zaretskii <eliz@is.elta.co.il> |
diff --git a/lisp/comint.el b/lisp/comint.el index 29897a92c58..595f830a924 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -787,6 +787,7 @@ buffer. The hook `comint-exec-hook' is run after each exec." | |||
| 787 | (if over | 787 | (if over |
| 788 | (let ((input-str (buffer-substring (overlay-start over) | 788 | (let ((input-str (buffer-substring (overlay-start over) |
| 789 | (overlay-end over)))) | 789 | (overlay-end over)))) |
| 790 | (goto-char (point-max)) | ||
| 790 | (delete-region | 791 | (delete-region |
| 791 | ;; Can't use kill-region as it sets this-command | 792 | ;; Can't use kill-region as it sets this-command |
| 792 | (or (marker-position comint-accum-marker) | 793 | (or (marker-position comint-accum-marker) |