Function: strokes-update-window-configuration
strokes-update-window-configuration is an interactive and
byte-compiled function defined in strokes.el.gz.
Signature
(strokes-update-window-configuration)
Documentation
Ensure that strokes-window-configuration is up-to-date.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/strokes.el.gz
(defun strokes-update-window-configuration ()
"Ensure that `strokes-window-configuration' is up-to-date."
(interactive)
(let ((current-window (selected-window)))
(cond ((or (window-minibuffer-p current-window)
(window-dedicated-p current-window))
;; don't try to update strokes window configuration
;; if window is dedicated or a minibuffer
nil)
((or (called-interactively-p 'interactive)
(not (buffer-live-p (get-buffer strokes-buffer-name)))
(null strokes-window-configuration))
;; create `strokes-window-configuration' from scratch...
(save-excursion
(save-window-excursion
(set-buffer (get-buffer-create strokes-buffer-name))
(set-window-buffer current-window strokes-buffer-name)
(delete-other-windows)
(fundamental-mode)
(auto-save-mode 0)
(font-lock-mode 0)
(abbrev-mode 0)
(buffer-disable-undo (current-buffer))
(setq truncate-lines nil)
(strokes-fill-current-buffer-with-whitespace)
(setq strokes-window-configuration (current-window-configuration))
(bury-buffer))))
((strokes-window-configuration-changed-p) ; simple update
;; update the strokes-window-configuration for this
;; specific frame...
(save-excursion
(save-window-excursion
(set-window-buffer current-window strokes-buffer-name)
(delete-other-windows)
(strokes-fill-current-buffer-with-whitespace)
(setq strokes-window-configuration (current-window-configuration))
(bury-buffer)))))))