Skip to content

Commit

Permalink
* core/core-jump.el: Wrap the xref-go-back with spacemacs/warn-until-…
Browse files Browse the repository at this point in the history
…emacs-min-version
  • Loading branch information
sunlin7 authored and smile13241324 committed Jan 19, 2025
1 parent 381af10 commit f839a49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/core-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ They are in order: `spacemacs-jump-handlers',
(with-eval-after-load 'evil
(evil-set-command-property 'spacemacs/jump-to-definition :jump t))

(unless (fboundp 'xref-go-back)
(defalias 'xref-pop-marker-stack 'xref-go-back))
(when (version<= "29.1" spacemacs-emacs-min-version)
(message "Please remove the alias for `xref-go-back'"))
(spacemacs|eval-until-emacs-min-version "29.1"
"The `xref-go-back' is a built-in function since Emacs 29.1."
(unless (fboundp 'xref-go-back)
(defalias 'xref-pop-marker-stack 'xref-go-back)))

(provide 'core-jump)

0 comments on commit f839a49

Please sign in to comment.