From: Stefan Kangas Date: Sun, 9 Jan 2022 01:50:38 +0000 (+0100) Subject: Un-reverse references in xref buffer X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~106 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a218f52ec9b0324b7026ae449067167ab833d503;p=emacs.git Un-reverse references in xref buffer GitHub-reference: fix https://github.com/joaotavora/eglot/issues/763 --- 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))))