Function: xref-window-local-history
xref-window-local-history is a byte-compiled function defined in
xref.el.gz.
Signature
(xref-window-local-history &optional NEW-VALUE)
Documentation
Return window-local xref history for the selected window.
Override existing value with NEW-VALUE if NEW-VALUE is set.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defun xref-window-local-history (&optional new-value)
"Return window-local xref history for the selected window.
Override existing value with NEW-VALUE if NEW-VALUE is set."
(let ((w (selected-window)))
(if new-value
(set-window-parameter w 'xref--history new-value)
(or (window-parameter w 'xref--history)
(set-window-parameter w 'xref--history (xref--make-xref-history))))))