Function: markdown-live-preview-window-deserialize
markdown-live-preview-window-deserialize is a byte-compiled function
defined in markdown-mode.el.
Signature
(markdown-live-preview-window-deserialize WINDOW-POSNS)
Documentation
Apply window point and scroll data from WINDOW-POSNS.
WINDOW-POSNS is provided by markdown-live-preview-window-serialize.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-live-preview-window-deserialize (window-posns)
"Apply window point and scroll data from WINDOW-POSNS.
WINDOW-POSNS is provided by `markdown-live-preview-window-serialize'."
(cl-destructuring-bind (win pt-or-sym diff) window-posns
(when (window-live-p win)
(with-current-buffer markdown-live-preview-buffer
(set-window-buffer win (current-buffer))
(cl-destructuring-bind (actual-pt actual-diff)
(cl-case pt-or-sym
(min (list (point-min) 0))
(max (list (point-max) diff))
(t (list pt-or-sym diff)))
(set-window-start
win (markdown-get-point-back-lines actual-pt actual-diff))
(set-window-point win actual-pt))))))