emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 fd7b430: `nreverse' Grep hits before passing them


From: Dmitry Gutov
Subject: [Emacs-diffs] emacs-25 fd7b430: `nreverse' Grep hits before passing them to xref--convert-hits
Date: Mon, 02 May 2016 09:21:47 +0000

branch: emacs-25
commit fd7b430afdd7ddea40cad7d231f634ff8bd536d8
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    `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.
---
 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 f674c70..b5632af 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -902,7 +902,7 @@ IGNORES is a list of glob patterns."
                     (match-string 1)
                     (buffer-substring-no-properties (point) 
(line-end-position)))
               hits)))
-    (xref--convert-hits hits regexp)))
+    (xref--convert-hits (nreverse hits) regexp)))
 
 (defun xref--rgrep-command (regexp files dir ignores)
   (require 'find-dired)      ; for `find-name-arg'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]