From a218f52ec9b0324b7026ae449067167ab833d503 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 9 Jan 2022 02:50:38 +0100 Subject: [PATCH] Un-reverse references in xref buffer GitHub-reference: fix https://github.com/joaotavora/eglot/issues/763 --- lisp/progmodes/eglot.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 712ad172985..72cf0c44fcb 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -2148,6 +2148,7 @@ may be called multiple times (respecting the protocol of (let (,collected) (cl-flet ((,collector (xref) (push xref ,collected))) ,@body) + (setq ,collected (nreverse ,collected)) (sort ,collected eglot-xref-lessp-function)) (maphash (lambda (_uri buf) (kill-buffer buf)) eglot--temp-location-buffers) (clrhash eglot--temp-location-buffers)))) -- 2.39.2