all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Leo Butler <leo.butler@umanitoba.ca>
Cc: Emacs <help-gnu-emacs@gnu.org>
Subject: Re: xref-find-definitions
Date: Thu, 25 Feb 2021 09:43:32 +0100	[thread overview]
Message-ID: <878s7ctu4r.fsf@posteo.net> (raw)
In-Reply-To: <86wnuxiaj5.fsf@x201.butler.org> (Leo Butler's message of "Wed, 24 Feb 2021 12:30:06 -0600")

[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]

Leo Butler <leo.butler@umanitoba.ca> writes:

> What is the name of the regexp used by xref-find-definitions to determine
> the identifier? I have looked in xref.el, but I don't see any way to do
> this.

Depending on the backend, it will call the method
xref-backend-identifier-at-point, that defaults to symbol-at-point, so
it doesn't use a regular expression in that sense.

> Leo
>
> PS:
>
>   M-. runs the command xref-find-definitions (found in global-map),
>   which is an autoloaded interactive compiled Lisp function in
>   ‘xref.el’.
>   
>   It is bound to M-., <menu-bar> <edit> <goto> <xref-find-def>.
>   
>   (xref-find-definitions IDENTIFIER)
>   
>     Probably introduced at or before Emacs version 25.1.
>   
>   Find the definition of the identifier at point.
>   With prefix argument or when there’s no identifier at point,
>   prompt for it.
>   
>   If sufficient information is available to determine a unique
>   definition for IDENTIFIER, display it in the selected window.
>   Otherwise, display the list of the possible definitions in a
>   buffer where the user can select from the list.
>   
>
>

-- 
	Philip K.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

  parent reply	other threads:[~2021-02-25  8:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-24 18:30 xref-find-definitions Leo Butler
2021-02-24 18:58 ` xref-find-definitions Dmitry Gutov
2021-02-24 19:38   ` xref-find-definitions Leo Butler
2021-02-24 21:48     ` xref-find-definitions Dmitry Gutov
2021-02-25  8:43 ` Philip Kaludercic [this message]
2021-02-25 12:38   ` xref-find-definitions Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878s7ctu4r.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=leo.butler@umanitoba.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.