Function: internal--after-with-selected-window
internal--after-with-selected-window is a byte-compiled function
defined in subr.el.gz.
Signature
(internal--after-with-selected-window STATE)
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun internal--after-with-selected-window (state)
;; First reset frame-selected-window.
(when (window-live-p (nth 2 state))
;; We don't use set-frame-selected-window because it does not
;; pass the `norecord' argument to Fselect_window.
(select-window (nth 2 state) 'norecord)
(and (frame-live-p (nth 3 state))
(not (eq (tty-top-frame) (nth 3 state)))
(select-frame (nth 3 state) 'norecord)))
;; Then reset the actual selected-window.
(when (window-live-p (nth 1 state))
(select-window (nth 1 state) 'norecord)))