Fix xref-clear-marker-stack refactoring mistake

* lisp/progmodes/xref.el (xref-clear-marker-stack):
Clear the history correctly.  Changing a lexical variable has no effect.
This commit is contained in:
Mattias Engdegård 2023-01-26 12:36:20 +01:00
parent fce07d461d
commit dfdc0f5fb7

View file

@ -568,7 +568,8 @@ This can be used from `xref-after-jump-hook', for instance.")
(dolist (l (list (car history) (cdr history)))
(dolist (m l)
(set-marker m nil nil)))
(setq history (cons nil nil)))
(setcar history nil)
(setcdr history nil))
nil)
;;;###autoload