unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Stephen Leake <stephen_leake@stephe-leake.org>, emacs-devel@gnu.org
Subject: Re: xref--read-identifier should call project-identifier-completion-table?
Date: Mon, 3 Aug 2015 12:56:14 +0300	[thread overview]
Message-ID: <55BF3ABE.3020505@yandex.ru> (raw)
In-Reply-To: <86k2tchfem.fsf@stephe-leake.org>

On 08/03/2015 12:47 PM, Stephen Leake wrote:

> The default method for project-identifier-completion-table uses the
> current xref buffer-local variable, so that's the same as the current
> behavior. It might be better to change that to have a project- prefix.

What's the use, if the rest of the operations still use the buffer-local 
value of xref-find-function?

You'll get Elisp identifiers in completion, but won't be able to 
navigate to them.

The natural extension of this approach would be to have a 
project-xref-backend accessor, but do we really need that?

The same minor mode that enables your project globally could set 
xref-backend (the variable is still called xref-find-function, but not 
for long) in all buffers. It'll actually be a list, so you'll put an 
always-active element at its head, just like with project-find-functions.



  reply	other threads:[~2015-08-03  9:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03  9:47 xref--read-identifier should call project-identifier-completion-table? Stephen Leake
2015-08-03  9:56 ` Dmitry Gutov [this message]
2015-08-03 15:24   ` Stephen Leake
2015-08-03 16:07     ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=55BF3ABE.3020505@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=stephen_leake@stephe-leake.org \
    /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 public inbox

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

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).