Function: aw-copy-window

aw-copy-window is a byte-compiled function defined in ace-window.el.

Signature

(aw-copy-window WINDOW)

Documentation

Copy the current buffer to WINDOW - including window-start and point.

Source Code

;; Defined in ~/.emacs.d/elpa/ace-window-20220911.358/ace-window.el
(defun aw-copy-window (window)
  "Copy the current buffer to WINDOW - including window-start and point."
  (let ((buffer (current-buffer))
        (window-start (window-start))
        (point (point)))
    (aw-switch-to-window window)
    (switch-to-buffer buffer)
    (set-window-start (frame-selected-window) window-start)
    (goto-char point)))