".newsrc-dribble",
"*Completions*",
"*Buffer list*")
- "Exclude these buffer names
-from any \(Winner mode\) list of buffers.")
+ "Exclude these buffer names from any \(Winner mode\) list of buffers.")
(defvar winner-skip-regexps '("^ ")
- "Exclude buffers with names matching any of these regexps.
-..from any \(Winner mode\) list of buffers.
+ "Winner excludes buffers with names matching any of these regexps.
+They are not included in any Winner mode list of buffers.
By default `winner-skip-regexps' is set to \(\"^ \"\),
which excludes \"invisible buffers\".")
winner-stacks)
(list config))))))
-
-
-\f
;; Push this window configuration on the right stack,
;; but make sure the stack doesn't get too large etc...
(defun winner-push (config frame)
(setf (winner-stack-place this)
(winner-stack-data this))
(setf (winner-stack-count this) 1)))))
-
-
-
-
-
-
-
-
+\f
;;;; Selecting a window configuration
-
;; Return list of names of other buffers, excluding the current buffer
;; and buffers specified by the user.
(defun winner-other-buffers ()
finally return nil))
collect name))
-
-
(defun winner-select (&optional arg)
-
"Change to previous or new window configuration.
With arg start at position 1 if arg is positive, and
at -1 if arg is negative; else start at position 0.
((< (prefix-numeric-value arg) 0) winner-prev-event)
(t nil)))
(if arg (push arg unread-command-events))
-\f
+
(let ((stack (winner-stack (selected-frame)))
(store nil)
(buffers (winner-other-buffers))
;; Else update the buffer list and make sure that the displayed
;; buffer is the same as the current buffer.
(switch-to-buffer (window-buffer)))))
-\f
-
-
-
(defun winner-previous ()
"Change to previous window configuration."
"Change to new window configuration."
(interactive)
(winner-select 1))
-
-
-
-
+\f
;;;; To be evaluated when the package is loaded:
(unless winner-mode-map