xref
- Description
- Cross-referencing commands
- Latest
- xref-1.7.0.tar (.sig), 2024-May-27, 90.0 KiB
- Maintainer
- Website
- https://elpa.gnu.org/packages/xref.html
- Browse repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use list-packages
.
Full description
This file provides a somewhat generic infrastructure for cross referencing commands, in particular "find-definition". Some part of the functionality must be implemented in a language dependent way and that's done by defining an xref backend. That consists of a constructor function, which should return a backend value, and a set of implementations for the generic functions: `xref-backend-identifier-at-point', `xref-backend-identifier-completion-table', `xref-backend-definitions', `xref-backend-references', `xref-backend-apropos', which see. A major mode would normally use `add-hook' to add the backend constructor to `xref-backend-functions'. The last three methods operate with "xref" and "location" values. One would usually call `xref-make' and `xref-make-file-location', `xref-make-buffer-location' or `xref-make-bogus-location' to create them. More generally, a location must be an instance of a type for which methods `xref-location-group' and `xref-location-marker' are implemented. There's a special kind of xrefs we call "match xrefs", which correspond to search results. For these values, `xref-match-length' must be defined, and `xref-location-marker' must return the beginning of the match. Each identifier must be represented as a string. Implementers can use string properties to store additional information about the identifier, but they should keep in mind that values returned from `xref-backend-identifier-completion-table' should still be distinct, because the user can't see the properties when making the choice. Older versions of Xref used EIEIO for implementation of the built-in types, and included a class called `xref-location' which was supposed to be inherited from. Neither is true anymore. See the etags and elisp-mode implementations for full examples.
Old versions
xref-1.6.3.tar.lz | 2024-Apr-24 | 20.3 KiB |
xref-1.6.2.tar.lz | 2023-Feb-21 | 20.3 KiB |
xref-1.6.1.tar.lz | 2023-Jan-10 | 20.3 KiB |
xref-1.6.0.tar.lz | 2022-Nov-25 | 20.1 KiB |
xref-1.5.1.tar.lz | 2022-Sep-12 | 19.5 KiB |
xref-1.5.0.tar.lz | 2022-Jul-23 | 19.5 KiB |
xref-1.4.1.tar.lz | 2022-Mar-03 | 19.2 KiB |
xref-1.4.0.tar.lz | 2022-Feb-21 | 19.0 KiB |
xref-1.3.2.tar.lz | 2021-Oct-20 | 18.3 KiB |
xref-1.3.2.tar.lz | 2021-Oct-20 | 18.3 KiB |
xref-1.3.1.tar.lz | 2021-Oct-19 | 18.3 KiB |
xref-1.3.0.tar.lz | 2021-Oct-09 | 18.2 KiB |
xref-1.2.2.tar.lz | 2021-Sep-05 | 17.6 KiB |
xref-1.2.1.tar.lz | 2021-Sep-05 | 17.6 KiB |
xref-1.1.0.tar.lz | 2021-Apr-29 | 16.6 KiB |
xref-1.0.4.el.lz | 2020-Dec-09 | 15.5 KiB |
xref-1.0.3.el.lz | 2020-Aug-27 | 14.4 KiB |
xref-1.0.2.el.lz | 2020-Aug-14 | 14.3 KiB |
xref-1.0.1.tar.lz | 2022-Feb-10 | 14.0 KiB |
xref-1.0.1.el.lz | 2020-May-15 | 13.8 KiB |