Function: xref-backend-identifier-at-point
xref-backend-identifier-at-point is a byte-compiled function defined
in xref.el.gz.
Signature
(xref-backend-identifier-at-point BACKEND)
Documentation
Return the relevant identifier at point.
The return value must be a string, or nil meaning no identifier at point found.
If it's hard to determine the identifier precisely (e.g., because
it's a method call on unknown type), the implementation can
return a simple string (such as symbol at point) marked with a
special text property which e.g. xref-backend-definitions would
recognize and then delegate the work to an external process.
Implementations
(xref-backend-identifier-at-point (BACKEND (eql cider))) in `cider-xref-backend.el'.
Return the relevant identifier at point.
(xref-backend-identifier-at-point (BACKEND (eql (quote etags)))) in `etags.el'.
Undocumented
(xref-backend-identifier-at-point (BACKEND (eql eglot))) in `eglot.el'.
Undocumented
(xref-backend-identifier-at-point BACKEND) in `xref.el'.
Undocumented
(xref-backend-identifier-at-point (BACKEND (eql (quote elisp)))) in `elisp-mode.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(cl-defgeneric xref-backend-identifier-at-point (_backend)
"Return the relevant identifier at point.
The return value must be a string, or nil meaning no identifier
at point found.
If it's hard to determine the identifier precisely (e.g., because
it's a method call on unknown type), the implementation can
return a simple string (such as symbol at point) marked with a
special text property which e.g. `xref-backend-definitions' would
recognize and then delegate the work to an external process."
(let ((thing (thing-at-point 'symbol)))
(and thing (substring-no-properties thing))))