1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

(repeat-complex-command): Undo Oct 2 change.

This commit is contained in:
Richard M. Stallman 1993-11-23 11:03:16 +00:00
parent a9f2c8845b
commit db16f109c9

View 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))))