diff options
| author | Richard M. Stallman | 1993-11-23 11:03:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-23 11:03:16 +0000 |
| commit | db16f109c931e0c0d4c2d995032bf5f2896ffaec (patch) | |
| tree | 7e616e5e3e10ff7e90fae53be85988248c23dd8a | |
| parent | a9f2c8845bbca54dad475aaf1ee13e4615469883 (diff) | |
| download | emacs-db16f109c931e0c0d4c2d995032bf5f2896ffaec.tar.gz emacs-db16f109c931e0c0d4c2d995032bf5f2896ffaec.zip | |
(repeat-complex-command): Undo Oct 2 change.
| -rw-r--r-- | lisp/simple.el | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 2cb169e6f18..e6a24cb49a1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -420,18 +420,15 @@ to get different commands to edit and resubmit." | |||
| 420 | "Redo: " (prin1-to-string elt) read-expression-map t | 420 | "Redo: " (prin1-to-string elt) read-expression-map t |
| 421 | (cons 'command-history arg))) | 421 | (cons 'command-history arg))) |
| 422 | 422 | ||
| 423 | ;;; read-from-minibuffer handles the adding of what is read to the history | 423 | ;; If command was added to command-history as a string, |
| 424 | ;;; variable. | 424 | ;; get rid of that. We want only evallable expressions there. |
| 425 | ;;; | 425 | (if (stringp (car command-history)) |
| 426 | ;;; ;; If command was added to command-history as a string, | 426 | (setq command-history (cdr command-history))) |
| 427 | ;;; ;; get rid of that. We want only evallable expressions there. | 427 | |
| 428 | ;;; (if (stringp (car command-history)) | 428 | ;; If command to be redone does not match front of history, |
| 429 | ;;; (setq command-history (cdr command-history))) | 429 | ;; add it to the history. |
| 430 | ;;; | 430 | (or (equal newcmd (car command-history)) |
| 431 | ;;; ;; If command to be redone does not match front of history, | 431 | (setq command-history (cons newcmd command-history))) |
| 432 | ;;; ;; add it to the history. | ||
| 433 | ;;; (or (equal newcmd (car command-history)) | ||
| 434 | ;;; (setq command-history (cons newcmd command-history))) | ||
| 435 | (eval newcmd)) | 432 | (eval newcmd)) |
| 436 | (ding)))) | 433 | (ding)))) |
| 437 | 434 | ||