]> git.eshelyaron.com Git - emacs.git/commitdiff
Undo ill-advised change
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 30 Dec 2015 04:25:39 +0000 (06:25 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 30 Dec 2015 04:25:48 +0000 (06:25 +0200)
* 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

index abb9cc6361dfd5382046670e9c8ce176e664b9dc..00f348929ef636bf33f14d06f660f7eda14f7678 100644 (file)
@@ -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)))))