[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Poll: Change xref-show-definitions-function's default?

From: Philip K.
Subject: Re: Poll: Change xref-show-definitions-function's default?
Date: Mon, 04 Jan 2021 15:21:31 +0100

Dmitry Gutov <dgutov@yandex.ru> writes:

> On 04.01.2021 14:12, Philip K. wrote:
>> Another idea, might be to have a "silent" option, that doesn't display
>> the buffer by default, but leaves a message that there are more results.
> What happens next, then? How will the user get to any of those results?

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

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

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

        Philip K.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]