]> git.eshelyaron.com Git - emacs.git/commitdiff
(winner-pending-undo-ring): Defvar before first use.
authorKarl Heuer <kwzh@gnu.org>
Thu, 16 Oct 1997 23:25:57 +0000 (23:25 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 16 Oct 1997 23:25:57 +0000 (23:25 +0000)
(winner-undo-counter): Likewise.

lisp/winner.el

index e0ef71ad71338d7cb6589c9a97a57ccdbf9358b3..752b3f5b4a364e1cf551788d25b8ee72d56bffe0 100644 (file)
@@ -129,6 +129,11 @@ With arg, turn Winner mode on if and only if arg is positive."
     (force-mode-line-update)))
 
 ;; Inspired by undo (simple.el)
+
+(defvar winner-pending-undo-ring nil)
+
+(defvar winner-undo-counter nil)
+
 (defun winner-undo (arg)
   "Switch back to an earlier window configuration saved by Winner mode.
 In other words, \"undo\" changes in window configuration."
@@ -147,10 +152,6 @@ In other words, \"undo\" changes in window configuration."
       (message "Winner undo (%d)!" winner-undo-counter)
       (setq this-command 'winner-undo))))
 
-(defvar winner-pending-undo-ring nil)
-
-(defvar winner-undo-counter nil)
-
 (defun winner-undo-more (count)
   "Undo N window configuration changes beyond what was already undone.
 Call `winner-undo-start' to get ready to undo recent changes,