summaryrefslogtreecommitdiff
path: root/lisp/comint.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-01-29 16:58:34 +0000
committerRichard M. Stallman <rms@gnu.org>2005-01-29 16:58:34 +0000
commit2da637a5386439117b24b3eccd1e4138a06dfa81 (patch)
treed98863e5a415641c0bb35682b888a02a31ab2aad /lisp/comint.el
parent17a60964b9c06d379c2460005b8ad7f6b4f90d63 (diff)
downloademacs-2da637a5386439117b24b3eccd1e4138a06dfa81.tar.gz
(comint-insert-input): Undo previous changes;
use last-input-event in interactive spec.
Diffstat (limited to 'lisp/comint.el')
-rw-r--r--lisp/comint.el4
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."
(defun comint-insert-input (&optional event)
"In a Comint buffer, set the current input to the previous input at point."
- (interactive "e")
+ ;; This doesn't use "e" because it is supposed to work
+ ;; for events without parameters.
+ (interactive (list last-input-event))
(if event (mouse-set-point event))
(let ((pos (point)))
(if (not (eq (get-char-property pos 'field) 'input))