]> git.eshelyaron.com Git - emacs.git/commitdiff
(comint-insert-input): Undo previous changes;
authorRichard M. Stallman <rms@gnu.org>
Sat, 29 Jan 2005 16:58:34 +0000 (16:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 29 Jan 2005 16:58:34 +0000 (16:58 +0000)
use last-input-event in interactive spec.

lisp/comint.el

index 9f93fe75b1f1989624d4322949a0a9d14299843b..f96da7fa0fd9f677e28acaab6650b4222abeaaa3 100644 (file)
@@ -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))