summaryrefslogtreecommitdiff
path: root/lisp/progmodes/xref.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r--lisp/progmodes/xref.el3
1 files changed, 2 insertions, 1 deletions
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