unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* [xref.el] Add `xref-find-references` to `xref-prompt-for-identifier`
@ 2017-12-08 21:13 Ray
  2017-12-09  8:29 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Ray @ 2017-12-08 21:13 UTC (permalink / raw)
  To: help-gnu-emacs

Currently, xref-find-references prompts for the identifier to look up,
because it is not listed in xref-prompt-for-identifier:

(defcustom xref-prompt-for-identifier '(not xref-find-definitions
                                            xref-find-definitions-other-window
                                            xref-find-definitions-other-frame)

It will be much core convenient to add xref-find-references in the list.

Many language servers now support finding references. The typical
usage of lsp-mode is to put point at some identifier and hit a
shortcut (by default M-?) to trigger xref-find-references. The prompt
is in many cases undesired.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [xref.el] Add `xref-find-references` to `xref-prompt-for-identifier`
  2017-12-08 21:13 [xref.el] Add `xref-find-references` to `xref-prompt-for-identifier` Ray
@ 2017-12-09  8:29 ` Eli Zaretskii
  2017-12-09  8:59   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2017-12-09  8:29 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Ray <emacsray@gmail.com>
> Date: Fri, 8 Dec 2017 13:13:49 -0800
> 
> Currently, xref-find-references prompts for the identifier to look up,
> because it is not listed in xref-prompt-for-identifier:
> 
> (defcustom xref-prompt-for-identifier '(not xref-find-definitions
>                                             xref-find-definitions-other-window
>                                             xref-find-definitions-other-frame)
> 
> It will be much core convenient to add xref-find-references in the list.
> 
> Many language servers now support finding references. The typical
> usage of lsp-mode is to put point at some identifier and hit a
> shortcut (by default M-?) to trigger xref-find-references. The prompt
> is in many cases undesired.

Please either post this to emacs-devel@gnu.org, or (better) use
report-emacs-bug to request this addition.  The latter causes your
request to be recorded by the Emacs issue tracker; both methods will
have the request sent to people who are actually developing xref.el.

Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [xref.el] Add `xref-find-references` to `xref-prompt-for-identifier`
  2017-12-09  8:29 ` Eli Zaretskii
@ 2017-12-09  8:59   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2017-12-09  8:59 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sat, 09 Dec 2017 10:29:48 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> Please either post this to emacs-devel@gnu.org, or (better) use
> report-emacs-bug to request this addition.

Oops!  I see you already did.  Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-09  8:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-08 21:13 [xref.el] Add `xref-find-references` to `xref-prompt-for-identifier` Ray
2017-12-09  8:29 ` Eli Zaretskii
2017-12-09  8:59   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).