From 4d6e7700314290d76aae26313daea613ae92b81e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sat, 21 Aug 2021 11:05:57 +0200 Subject: [PATCH] Re-type the :location slot in `xref-match-item` to `xref-location` * lisp/progmodes/xref.el (xref-match-item): Change type for :location from `xref-file-location`, which was likely a mistake, to `xref-location`. This allows `xref-make-match` to take arguments of any subtype of `xref-location` (bug#50067). --- lisp/progmodes/xref.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 21f4abfccf4..90329464f2b 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -233,7 +233,7 @@ LOCATION is an `xref-location'." ((summary :type string :initarg :summary :reader xref-item-summary) (location :initarg :location - :type xref-file-location + :type xref-location :reader xref-item-location) (length :initarg :length :reader xref-match-length)) :comment "A match xref item describes a search result.") -- 2.39.5