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 marker stack.

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 marker stack."
  (let ((ring xref--marker-ring))
    (while (not (ring-empty-p ring))
      (let ((marker (ring-remove ring)))
        (set-marker marker nil nil)))))