diff options
| author | Richard M. Stallman | 2005-01-29 16:58:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-01-29 16:58:34 +0000 |
| commit | 2da637a5386439117b24b3eccd1e4138a06dfa81 (patch) | |
| tree | d98863e5a415641c0bb35682b888a02a31ab2aad | |
| parent | 17a60964b9c06d379c2460005b8ad7f6b4f90d63 (diff) | |
| download | emacs-2da637a5386439117b24b3eccd1e4138a06dfa81.tar.gz emacs-2da637a5386439117b24b3eccd1e4138a06dfa81.zip | |
(comint-insert-input): Undo previous changes;
use last-input-event in interactive spec.
| -rw-r--r-- | lisp/comint.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 9f93fe75b1f..f96da7fa0fd 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -788,7 +788,9 @@ buffer. The hook `comint-exec-hook' is run after each exec." | |||
| 788 | 788 | ||
| 789 | (defun comint-insert-input (&optional event) | 789 | (defun comint-insert-input (&optional event) |
| 790 | "In a Comint buffer, set the current input to the previous input at point." | 790 | "In a Comint buffer, set the current input to the previous input at point." |
| 791 | (interactive "e") | 791 | ;; This doesn't use "e" because it is supposed to work |
| 792 | ;; for events without parameters. | ||
| 793 | (interactive (list last-input-event)) | ||
| 792 | (if event (mouse-set-point event)) | 794 | (if event (mouse-set-point event)) |
| 793 | (let ((pos (point))) | 795 | (let ((pos (point))) |
| 794 | (if (not (eq (get-char-property pos 'field) 'input)) | 796 | (if (not (eq (get-char-property pos 'field) 'input)) |