]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: auto-expand first level in type and call hierarchies
authorJoão Távora <joaotavora@gmail.com>
Sat, 8 Feb 2025 13:42:08 +0000 (13:42 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:46:32 +0000 (09:46 +0100)
* lisp/progmodes/eglot.el (eglot--hierarchy-2): Use widget-apply-action.

(cherry picked from commit 37c07f383b053a40b31439076bec0b170c1281de)

lisp/progmodes/eglot.el

index 995d47a1306ca96124392304840ff89f884b7cbe..f01b41f1c5622f454ccea4f5f91a84dea79b7703 100644 (file)
@@ -4637,7 +4637,8 @@ If NOERROR, return predicate, else erroring function."
     (let ((inhibit-read-only t))
       (erase-buffer)
       (mapc (lambda (r)
-              (widget-create (convert r)))
+              (let ((w (widget-create (convert r))))
+                (widget-apply-action w)))
             eglot--hierarchy-roots)
       (goto-char (point-min))))
     (pop-to-buffer (current-buffer)))