Function: combobulate-ztree--postorder-next

combobulate-ztree--postorder-next is a natively compiled function defined in combobulate-ztree.el.

Signature

(combobulate-ztree--postorder-next LOC)

Documentation

Move to the next LOC in the hierarchy, depth-first in postorder.

When reaching the end, returns a distinguished loc detectable via combobulate-ztree-end-p. If already at the end, stays there.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-ztree.el
(defun combobulate-ztree--postorder-next (loc)
  "Move to the next LOC in the hierarchy, depth-first in postorder.
When reaching the end, returns a distinguished loc detectable via
`combobulate-ztree-end-p'.  If already at the end, stays there."
  (if (equal :end (combobulate-ztree--context loc))
      loc
    (if (null (combobulate-ztree-up loc))
        (cons (cons (combobulate-ztree-node loc) :end) nil)
      (or (let ((rloc (combobulate-ztree-right loc)))
            (and rloc (combobulate-ztree-leftmost-descendant rloc)))
          (combobulate-ztree-up loc)))))