Function: ebrowse-collapse-fn

ebrowse-collapse-fn is a byte-compiled function defined in ebrowse.el.gz.

Signature

(ebrowse-collapse-fn COLLAPSE)

Documentation

Collapse or expand a branch of the tree.

COLLAPSE non-nil means collapse the branch.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
(defun ebrowse-collapse-fn (collapse)
  "Collapse or expand a branch of the tree.
COLLAPSE non-nil means collapse the branch."
  (with-silent-modifications
    (save-excursion
      (beginning-of-line)
      (skip-chars-forward "> \t")
      (let ((indentation (current-column)))
	(while (and (not (eobp))
		    (save-excursion
		      (forward-line 1)
		      (skip-chars-forward "> \t")
		      (> (current-column) indentation)))
	  (ebrowse-hide-line collapse)
	  (forward-line 1))))))