diff --git a/projectile.el b/projectile.el index f746c0ba2..2b29bb26c 100644 --- a/projectile.el +++ b/projectile.el @@ -4221,7 +4221,8 @@ installed to work." A thin wrapper around `xref-references-in-directory'." (interactive) - (when (fboundp 'xref-references-in-directory) + (when (and (fboundp 'xref-references-in-directory) + (fboundp 'xref--show-refs)) (let ((project-root (projectile-acquire-root)) (symbol (or symbol (read-from-minibuffer "Lookup in project: " (projectile-symbol-at-point))))) (xref--show-xrefs (xref-references-in-directory symbol project-root) nil))))