]> git.eshelyaron.com Git - emacs.git/commitdiff
Un-reverse references in xref buffer
authorStefan Kangas <stefankangas@gmail.com>
Sun, 9 Jan 2022 01:50:38 +0000 (02:50 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 9 Jan 2022 01:51:33 +0000 (02:51 +0100)
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/763

lisp/progmodes/eglot.el

index 712ad172985045ea852687d940ea0081c05e8105..72cf0c44fcb4222b8eb05397a3e3329d23e6bef3 100644 (file)
@@ -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))))