diff lisp/comint.el @ 59776:eb109ea1450a

(comint-insert-input): Undo previous changes; use last-input-event in interactive spec.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 Jan 2005 16:58:34 +0000
parents a44a4cdb021d
children aac0a33f5772 fa9654493afb
line wrap: on
line diff
--- a/lisp/comint.el	Sat Jan 29 16:56:30 2005 +0000
+++ b/lisp/comint.el	Sat Jan 29 16:58:34 2005 +0000
@@ -788,7 +788,9 @@
 
 (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))