(edit-and-eval-command): Elements of command-history are forms, not strings.
This commit is contained in:
parent
7ee9eab9d7
commit
5d6c83ae15
1 changed files with 9 additions and 0 deletions
|
@ -404,6 +404,15 @@ the minibuffer, then read and evaluate the result."
|
|||
(prin1-to-string command)
|
||||
read-expression-map t
|
||||
'(command-history . 1))))
|
||||
;; 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 command (car command-history))
|
||||
(setq command-history (cons command command-history)))
|
||||
(eval command)))
|
||||
|
||||
(defun repeat-complex-command (arg)
|
||||
|
|
Loading…
Add table
Reference in a new issue