]> git.eshelyaron.com Git - emacs.git/commit
Allow Hierarchy to delay computation of children
authorWamm K. D <jaft.r@outlook.com>
Thu, 4 Aug 2022 00:05:08 +0000 (19:05 -0500)
committerEli Zaretskii <eliz@gnu.org>
Thu, 27 Oct 2022 17:12:24 +0000 (20:12 +0300)
commitc6ec08e49af84ac35d0f793d01390a8b8c991f18
tree4a154104374bd820b2dcf9c29615de929b25af42
parentd53febbd214bb238c9d0cb2df0d1b9cd20a59103
Allow Hierarchy to delay computation of children

This adds an option to allow callers to specify that computing
the children of the hierarchy should be delayed to when the
user calls for them, by utilizing the tree-widget :expander
property.
* lisp/emacs-lisp/hierarchy.el (hierarchy-add-tree)
(hierarchy-add-trees): Add parameter 'delay-children-p'.
* lisp/emacs-lisp/hierarchy.el
(hierarchy--create-delayed-tree-widget): Add function.
* lisp/emacs-lisp/hierarchy.el (hierarchy-convert-to-tree-widget):
Utilize ':expander' if delaying children.  (Bug#55900)

* test/lisp/emacs-lisp/hierarchy-tests.el: Add tests for
delayed-children functionality.
etc/NEWS
lisp/emacs-lisp/hierarchy.el
test/lisp/emacs-lisp/hierarchy-tests.el