[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/xref-union 0eb3d8cffb 4/7: Return first match in 'xref-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/xref-union 0eb3d8cffb 4/7: Return first match in 'xref-backend-identifier-at-point' |
Date: |
Sat, 9 Dec 2023 15:58:58 -0500 (EST) |
branch: externals/xref-union
commit 0eb3d8cffb40ae51388ca344b8a84bd5f59a02ed
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Return first match in 'xref-backend-identifier-at-point'
---
xref-union.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/xref-union.el b/xref-union.el
index 7475422863..dbdd2240b2 100644
--- a/xref-union.el
+++ b/xref-union.el
@@ -50,6 +50,11 @@ a non-nil value is returned, the backend will not be added
to the
union backend, otherwise it will be."
:type 'function)
+(defcustom xref-union-hook-depth -95 ;-100 has the highest priority
+ "Priority of the xref-union Xref backend.
+Consult `add-hook' for the interpretation of DEPTH."
+ :type 'number)
+
;;;; Xref interface
@@ -61,10 +66,9 @@ Same in this context means they reference the same object."
(cl-defmethod xref-backend-identifier-at-point ((backends (head union)))
"Collect the results of multiple Xref BACKENDS."
- (seq-uniq
- (cl-loop for backend in (cdr backends)
- append (xref-backend-identifier-at-point backend))
- #'xref-union-same-p))
+ (cl-loop for backend in (cdr backends)
+ when (xref-backend-identifier-at-point backend)
+ return it))
(cl-defmethod xref-backend-identifier-completion-table ((backends (head
union)))
"Collect the results of multiple Xref BACKENDS."
- [elpa] externals/xref-union updated (0f98bea594 -> eda0623b1c), ELPA Syncer, 2023/12/09
- [elpa] externals/xref-union dbe1334d4e 3/7: Call correct method in 'xref-backend-identifier-completion-table', ELPA Syncer, 2023/12/09
- [elpa] externals/xref-union 00bb9f7391 1/7: Fix usage of the 'head' specialiser, ELPA Syncer, 2023/12/09
- [elpa] externals/xref-union 316695bd4a 2/7: Rework implementation of 'xref-union-mode', ELPA Syncer, 2023/12/09
- [elpa] externals/xref-union 0eb3d8cffb 4/7: Return first match in 'xref-backend-identifier-at-point',
ELPA Syncer <=
- [elpa] externals/xref-union b63c486773 5/7: Run M-x untabify, ELPA Syncer, 2023/12/09
- [elpa] externals/xref-union 5a869bcb0d 6/7: Add missing (require ...) statements, ELPA Syncer, 2023/12/09
- [elpa] externals/xref-union eda0623b1c 7/7: Update outdated documentation in Commentary, ELPA Syncer, 2023/12/09