Function: xref-clear-marker-stack

xref-clear-marker-stack is a byte-compiled function defined in xref.el.gz.

Signature

(xref-clear-marker-stack)

Documentation

Discard all markers from the xref history.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
;; etags.el needs this
(defun xref-clear-marker-stack ()
  "Discard all markers from the xref history."
  (let ((history (xref--get-history)))
    (dolist (l (list (car history) (cdr history)))
      (dolist (m l)
        (set-marker m nil nil)))
    (setcar history nil)
    (setcdr history nil))
  nil)