]> git.eshelyaron.com Git - emacs.git/commit
xref-matches-in-files: Move sorting to Lisp
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 17 Sep 2021 12:39:23 +0000 (15:39 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 17 Sep 2021 12:39:36 +0000 (15:39 +0300)
commit9ca737c4198c5e7faef7a74de7b1e84b11e1dbeb
tree3c858e44ccf6d0b75f7f28b48a58ffae246743eb
parent8220df9355e105459e91623dd63f7a08a08cfe09
xref-matches-in-files: Move sorting to Lisp

For better compatibility with different systems.
Performance is unaffected, except in very pathological cases
(~100000 matches), and even then the overhead of 'sort' is comparable.

* lisp/progmodes/xref.el (xref-search-program-alist):
Drop the piping through 'sort'.
(xref-matches-in-files): Sort here instead.
Do that to both searchers' output as well now.
lisp/progmodes/xref.el