Function: combobulate-find-similar-ancestors
combobulate-find-similar-ancestors is a natively compiled function
defined in combobulate-navigation.el.
Signature
(combobulate-find-similar-ancestors NODE PARENTS)
Documentation
Find PARENTS of NODE that share common production rules.
Source Code
;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-navigation.el
(defun combobulate-find-similar-ancestors (node parents)
"Find PARENTS of NODE that share common production rules."
(let ((node-types (combobulate-production-rules-get-inverted (combobulate-node-type node))))
(seq-filter
(lambda (parent-node)
(seq-intersection
(combobulate-production-rules-get-inverted (combobulate-node-type parent-node))
node-types))
parents)))