diff options
| author | Dmitry Gutov | 2016-05-02 02:38:01 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2016-05-02 12:21:26 +0300 |
| commit | fd7b430afdd7ddea40cad7d231f634ff8bd536d8 (patch) | |
| tree | 848d226be2055219789059770a9ea6b67a8afa58 | |
| parent | c695fb37d3d3f525918fd50878181be524cba200 (diff) | |
| download | emacs-fd7b430afdd7ddea40cad7d231f634ff8bd536d8.tar.gz emacs-fd7b430afdd7ddea40cad7d231f634ff8bd536d8.zip | |
`nreverse' Grep hits before passing them to xref--convert-hits
* lisp/progmodes/xref.el (xref-collect-matches): `nreverse' hits
before passing them to xref--convert-hits. Fixes a regression
from cc0b7132.
| -rw-r--r-- | lisp/progmodes/xref.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index f674c70b104..b5632af13ab 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -902,7 +902,7 @@ IGNORES is a list of glob patterns." | |||
| 902 | (match-string 1) | 902 | (match-string 1) |
| 903 | (buffer-substring-no-properties (point) (line-end-position))) | 903 | (buffer-substring-no-properties (point) (line-end-position))) |
| 904 | hits))) | 904 | hits))) |
| 905 | (xref--convert-hits hits regexp))) | 905 | (xref--convert-hits (nreverse hits) regexp))) |
| 906 | 906 | ||
| 907 | (defun xref--rgrep-command (regexp files dir ignores) | 907 | (defun xref--rgrep-command (regexp files dir ignores) |
| 908 | (require 'find-dired) ; for `find-name-arg' | 908 | (require 'find-dired) ; for `find-name-arg' |