Subject: bug#19468: 25.0.50; UI inconveniences with M-.

From: Dmitry Gutov <[email-masked]>
Date: Tue, 28 Apr 2015 01:44:15 +0300

On 04/27/2015 08:35 PM, Stefan Monnier wrote:

>> btw the defun I'm probably after is not the first or second hit there;
>> looks like the candidates are arranged in the alphabetical order of
>> the *.el files).
>
> Indeed, the ordering looks incorrect.  This is a bug.

The idea here is to group candidates belonging to different files 
together. Sorting the files alphabetically after that is the first 
natural choice, but how else to do it better?

- Should xref always try to preserve the order in which xrefs are 
returned? Some backends might not mean anything by it.

- Suppose one xref in a.el is returned before all xrefs in b.el. And 
another xref in a.el is returned after. In what order will we display 
a.el and b.el?