]> git.eshelyaron.com Git - emacs.git/commitdiff
(repeat-complex-command): Undo Oct 2 change.
authorRichard M. Stallman <rms@gnu.org>
Tue, 23 Nov 1993 11:03:16 +0000 (11:03 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 23 Nov 1993 11:03:16 +0000 (11:03 +0000)
lisp/simple.el

index 2cb169e6f18b9381d7d909d8df27d5efa3639fa2..e6a24cb49a1778ec4462434df02cad3bbde6c3f5 100644 (file)
@@ -420,18 +420,15 @@ to get different commands to edit and resubmit."
                 "Redo: " (prin1-to-string elt) read-expression-map t
                 (cons 'command-history arg)))
 
-;;;  read-from-minibuffer handles the adding of what is read to the history
-;;;  variable.
-;;;
-;;;      ;; If command was added to command-history as a string,
-;;;      ;; get rid of that.  We want only evallable expressions there.
-;;;      (if (stringp (car command-history))
-;;;          (setq command-history (cdr command-history)))
-;;;
-;;;      ;; If command to be redone does not match front of history,
-;;;      ;; add it to the history.
-;;;      (or (equal newcmd (car command-history))
-;;;          (setq command-history (cons newcmd command-history)))
+         ;; If command was added to command-history as a string,
+         ;; get rid of that.  We want only evallable expressions there.
+         (if (stringp (car command-history))
+             (setq command-history (cdr command-history)))
+
+         ;; If command to be redone does not match front of history,
+         ;; add it to the history.
+         (or (equal newcmd (car command-history))
+             (setq command-history (cons newcmd command-history)))
          (eval newcmd))
       (ding))))
 \f