unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: "Philip K." <philipk@posteo.net>
Cc: emacs-devel@gnu.org
Subject: Re: Poll: Change xref-show-definitions-function's default?
Date: Mon, 4 Jan 2021 18:14:49 +0200	[thread overview]
Message-ID: <ede0c615-be28-25be-5304-eb44efa6ca57@yandex.ru> (raw)
In-Reply-To: <87o8i4ok9g.fsf@posteo.net>

On 04.01.2021 16:21, Philip K. wrote:

> The idea would be that the interaction would look something like this:
> 
> 1. The user invokes xref-find-definitions.
> 2. Instead of presenting the solutions, it jumps to the first one, and
>     if there are more, this is indicated in the minibuffer.
> 3. Other matches can be displayed using next-error/previous-error
> 4. At this point, the buffer could be opened, or one could stick to the
>     minibuffer and generate a message like "showing definition N out of
>     M".

It's a good plan, but the devil is in the details.

> I haven't looked into next-error/previous-error, so it might be that
> this isn't feasible, without rewriting a lot of code.

next-error/previous-error might be a bit unreliable when there are other 
next-error-capable buffers around. And especially when the user has 
customized next-error-find-buffer-function. Anyway, you can try and see.

Also re. 4, if the buffer is not needed, you could probably use the 
fileloop package. It might need to be updated to behave "lazily", however.

> It goes without saying that this should not be the default option.

If you want to work on such patch for the optional behavior, I'd be 
happy to review it.



  reply	other threads:[~2021-01-04 16:14 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-29 18:28 Poll: Change xref-show-definitions-function's default? Dmitry Gutov
2020-12-30  3:17 ` Lars Ingebrigtsen
2020-12-31 13:06 ` Daniel Martín
2021-01-01 12:25   ` Zhiwei Chen
2021-01-01 12:46     ` Dmitry Gutov
2021-01-01 13:33   ` Dmitry Gutov
2021-01-02 21:09   ` João Távora
2021-01-03 23:54     ` Daniel Martín via "Emacs development discussions.
2021-01-03 23:58       ` João Távora
2021-01-04  0:07         ` Dmitry Gutov
2021-01-04  8:48           ` João Távora
2021-01-04 11:16             ` Dmitry Gutov
2021-01-04 11:24               ` João Távora
2021-01-04 11:42                 ` Dmitry Gutov
2021-01-01  7:59 ` martin rudalics
2021-01-01 12:17   ` Dmitry Gutov
2021-01-02 10:26   ` Philip K.
2021-01-02 15:43     ` martin rudalics
2021-01-02 17:25       ` Dmitry Gutov
2021-01-03  8:39         ` martin rudalics
2021-01-03 17:43           ` Dmitry Gutov
2021-01-02 10:24 ` Philip K.
2021-01-02 11:08   ` Dmitry Gutov
2021-01-04 12:12 ` Philip K.
2021-01-04 12:22   ` Dmitry Gutov
2021-01-04 14:21     ` Philip K.
2021-01-04 16:14       ` Dmitry Gutov [this message]
2021-01-04 17:42 ` Juri Linkov
2021-01-04 18:41   ` Dmitry Gutov
2021-01-06 18:30     ` Juri Linkov
2021-01-06 20:55       ` Dmitry Gutov
2021-01-07 17:47         ` Juri Linkov
2021-01-09  0:35           ` 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=ede0c615-be28-25be-5304-eb44efa6ca57@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.net \
    /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).