Function: gametree-current-branch-depth

gametree-current-branch-depth is a byte-compiled function defined in gametree.el.gz.

Signature

(gametree-current-branch-depth)

Documentation

Return the depth of the current variation in the analysis tree.

This value is simply the outline heading level of the current line.

Source Code

;; Defined in /usr/src/emacs/lisp/play/gametree.el.gz
(defun gametree-current-branch-depth ()
  "Return the depth of the current variation in the analysis tree.
This value is simply the outline heading level of the current line."
  (save-excursion
    (beginning-of-line 1)
    (if (looking-at outline-regexp)
        (outline-level) 0)))