From ce106f3de6b016a474e2591dea9226a3741effee Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 30 Dec 2015 06:25:39 +0200 Subject: [PATCH] Undo ill-advised change * lisp/progmodes/xref.el (xref-collect-matches): Undo ill-advised change. The hits come in the order that `find' produces them in, which isn't alphabetical. --- lisp/progmodes/xref.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index abb9cc6361d..00f348929ef 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -886,7 +886,7 @@ IGNORES is a list of glob patterns." hits))) (unwind-protect (cl-mapcan (lambda (hit) (xref--collect-matches hit regexp)) - hits) + (nreverse hits)) ;; TODO: Same as above. (mapc #'kill-buffer (cl-set-difference (buffer-list) orig-buffers))))) -- 2.39.5