aboutsummaryrefslogtreecommitdiff
path: root/projectile.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.dev>2026-03-04 21:35:50 +0200
committerBozhidar Batsov <bozhidar@batsov.dev>2026-03-04 21:43:10 +0200
commit0cdd2a93b2def8b432348f183dc583e9ebdbd709 (patch)
treecdb9c8e5dc09c57571a04e765d0fe90ae200649e /projectile.el
parentb922196e4fa8c46b027b6f91c841ec610a2c83b8 (diff)
Update CHANGELOG with round 4 codebase fixes
Diffstat (limited to 'projectile.el')
-rw-r--r--projectile.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/projectile.el b/projectile.el
index 7c2b0f7..2dca9ae 100644
--- a/projectile.el
+++ b/projectile.el
@@ -4627,11 +4627,15 @@ installed to work."
A thin wrapper around `xref-references-in-directory' scoped to the
project root."
(interactive)
- (let ((project-root (projectile-acquire-root))
- (symbol (or symbol (read-from-minibuffer "Lookup in project: " (projectile-symbol-at-point)))))
- (xref-show-xrefs
- (lambda () (xref-references-in-directory symbol project-root))
- nil)))
+ (let* ((project-root (projectile-acquire-root))
+ (symbol (or symbol (read-from-minibuffer "Lookup in project: " (projectile-symbol-at-point))))
+ (fetcher (lambda () (xref-references-in-directory symbol project-root))))
+ (cond
+ ((fboundp 'xref-show-xrefs)
+ (xref-show-xrefs fetcher nil))
+ ((fboundp 'xref--show-xrefs)
+ (xref--show-xrefs fetcher nil))
+ (t (error "No suitable xref display function available")))))
(defun projectile-tags-exclude-patterns ()
"Return a string with exclude patterns for ctags."