emacs-diffs
[Top][All Lists]
Advanced

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

feature/eglot2emacs a218f52ec9 012/120: Un-reverse references in xref bu


From: João Távora
Subject: feature/eglot2emacs a218f52ec9 012/120: Un-reverse references in xref buffer
Date: Thu, 20 Oct 2022 07:16:45 -0400 (EDT)

branch: feature/eglot2emacs
commit a218f52ec9b0324b7026ae449067167ab833d503
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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 712ad17298..72cf0c44fc 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))))



reply via email to

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