emacs-devel
[Top][All Lists]
Advanced

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

Re: xref backends for elisp-related modes Was: Re: Bad moves with xref-f


From: Helmut Eller
Subject: Re: xref backends for elisp-related modes Was: Re: Bad moves with xref-find-definitions
Date: Wed, 29 Apr 2015 15:04:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

On Wed, Apr 29 2015, Dmitry Gutov wrote:

> On 04/29/2015 09:55 AM, Helmut Eller wrote:
>
>> However, this was removed because a) it complicates the
>> front-end<->backend-end API b) everybody who can write methods for
>> xref-location= can just as well write a backend that removes duplicates.
>
> And in the current context, the xref-location= method, by itself,
> wouldn't help with the pretty much insolvable problem of comparing
> "lazy" xrefs coming from different backends.

It's always solvable:

(equal (xref-location-marker L1)
       (xref-location-marker L2))

covers all cases; it's just not very efficient.

Helmut



reply via email to

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