From: Mattias EngdegÄrd Date: Thu, 26 Jan 2023 11:36:20 +0000 (+0100) Subject: Fix xref-clear-marker-stack refactoring mistake X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dfdc0f5fb7b10e737c3c8e2bdb1eb873a1e91bd7;p=emacs.git 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. --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 916d83d407b..4db0df6c3b8 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -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