Skip to content

Commit cf13fc0

Browse files
sktoivabbatsov
authored andcommitted
[Fix #3071] Use xref to push point to marker stack
xref-push-marker-stack is the up-to-date way of pushing point to marker stack. This should be used instead of find-tag-marker ring that has been marked as obsolete in emacs 25.1 (https://github.com/emacs-mirror/emacs/blob/3af9e84ff59811734dcbb5d55e04e1fdb7051e77/lisp/progmodes/etags.el#L184)
1 parent 50f2eed commit cf13fc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cider-common.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
(require 'cider-compat)
2929
(require 'nrepl-dict)
3030
(require 'cider-util)
31-
(require 'etags) ; for find-tags-marker-ring
31+
(require 'xref)
3232
(require 'tramp)
3333

3434
(defcustom cider-prompt-for-symbol nil
@@ -151,7 +151,7 @@ If a symbol, `cider-jump-to' searches for something that looks like the
151151
symbol's definition in the file.
152152
If OTHER-WINDOW is non-nil don't reuse current window."
153153
(with-no-warnings
154-
(ring-insert find-tag-marker-ring (point-marker)))
154+
(xref-push-marker-stack))
155155
(if other-window
156156
(pop-to-buffer buffer 'display-buffer-pop-up-window)
157157
(pop-to-buffer buffer cider-jump-to-pop-to-buffer-actions))

0 commit comments

Comments
 (0)