diff options
| author | Richard M. Stallman | 1999-04-08 01:41:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-04-08 01:41:12 +0000 |
| commit | e0a816503cc6229db1209aaa2b0dc8d775892c9b (patch) | |
| tree | c2c07ec04b699b0ab5472c093551004ff0eb0522 | |
| parent | 26e18ed97f1b93639c005e2539b81030db1d7c90 (diff) | |
| download | emacs-e0a816503cc6229db1209aaa2b0dc8d775892c9b.tar.gz emacs-e0a816503cc6229db1209aaa2b0dc8d775892c9b.zip | |
Reorder definitions.
| -rw-r--r-- | lisp/winner.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/winner.el b/lisp/winner.el index d80af2654f9..6f07d5bf451 100644 --- a/lisp/winner.el +++ b/lisp/winner.el | |||
| @@ -245,6 +245,12 @@ With arg, turn Winner mode on if and only if arg is positive." | |||
| 245 | (force-mode-line-update))) | 245 | (force-mode-line-update))) |
| 246 | 246 | ||
| 247 | ;; Inspired by undo (simple.el) | 247 | ;; Inspired by undo (simple.el) |
| 248 | |||
| 249 | (defvar winner-pending-undo-ring nil | ||
| 250 | "The ring currently used by winner undo.") | ||
| 251 | (defvar winner-undo-counter nil) | ||
| 252 | (defvar winner-undone-data nil) ; There confs have been passed. | ||
| 253 | |||
| 248 | (defun winner-undo (arg) | 254 | (defun winner-undo (arg) |
| 249 | "Switch back to an earlier window configuration saved by Winner mode. | 255 | "Switch back to an earlier window configuration saved by Winner mode. |
| 250 | In other words, \"undo\" changes in window configuration. | 256 | In other words, \"undo\" changes in window configuration. |
| @@ -265,11 +271,6 @@ With prefix arg, undo that many levels." | |||
| 265 | (message "Winner undo (%d)" winner-undo-counter)) | 271 | (message "Winner undo (%d)" winner-undo-counter)) |
| 266 | (setq this-command 'winner-undo)))) | 272 | (setq this-command 'winner-undo)))) |
| 267 | 273 | ||
| 268 | (defvar winner-pending-undo-ring nil) ; The ring currently used by | ||
| 269 | ; undo. | ||
| 270 | (defvar winner-undo-counter nil) | ||
| 271 | (defvar winner-undone-data nil) ; There confs have been passed. | ||
| 272 | |||
| 273 | (defun winner-undo-this () ; The heart of winner undo. | 274 | (defun winner-undo-this () ; The heart of winner undo. |
| 274 | (if (>= winner-undo-counter (ring-length winner-pending-undo-ring)) | 275 | (if (>= winner-undo-counter (ring-length winner-pending-undo-ring)) |
| 275 | (error "No further window configuration undo information") | 276 | (error "No further window configuration undo information") |