Function: winner-redo
winner-redo is an interactive and byte-compiled function defined in
winner.el.gz.
Signature
(winner-redo)
Documentation
Cancel the current sequence of winner-undo commands.
This restores the window configuration before that sequence. If any
other command has intervened, winner-redo is no longer applicable;
but the configuration can then be restored with winner-undo.
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/winner.el.gz
(defun winner-redo () ; If you change your mind.
"Cancel the current sequence of `winner-undo' commands.
This restores the window configuration before that sequence. If any
other command has intervened, `winner-redo' is no longer applicable;
but the configuration can then be restored with `winner-undo'."
(interactive)
(cond
((eq last-command 'winner-undo)
(winner-set
(if (zerop (minibuffer-depth))
(ring-remove winner-pending-undo-ring 0)
(ring-ref winner-pending-undo-ring 0)))
(unless (eq (selected-window) (minibuffer-window))
(message "Winner undid undo")))
(t (user-error "Previous command was not a `winner-undo'"))))