Function: pcomplete-restore-windows
pcomplete-restore-windows is a byte-compiled function defined in
pcomplete.el.gz.
Signature
(pcomplete-restore-windows)
Documentation
If the only window change was due to Completions, restore things.
Source Code
;; Defined in /usr/src/emacs/lisp/pcomplete.el.gz
;; display support
(defun pcomplete-restore-windows ()
"If the only window change was due to Completions, restore things."
(if pcomplete-last-window-config
(let* ((cbuf (get-buffer "*Completions*"))
(cwin (and cbuf (get-buffer-window cbuf))))
(when (window-live-p cwin)
(bury-buffer cbuf)
(set-window-configuration pcomplete-last-window-config))))
(setq pcomplete-last-window-config nil
pcomplete-window-restore-timer nil))