]> git.eshelyaron.com Git - emacs.git/commitdiff
Re-type the :location slot in `xref-match-item` to `xref-location`
authorMattias Engdegård <mattiase@acm.org>
Sat, 21 Aug 2021 09:05:57 +0000 (11:05 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 21 Aug 2021 10:41:54 +0000 (12:41 +0200)
* 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

index 21f4abfccf496ce51e75127886ea3dc36e93199f..90329464f2b4bf49f739e1601c097dfe5f9eadf8 100644 (file)
@@ -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.")