Function: allout-get-or-create-parent-widget
allout-get-or-create-parent-widget is a byte-compiled function defined
in allout-widgets.el.gz.
Signature
(allout-get-or-create-parent-widget &optional REDECORATE)
Documentation
Return widget for parent of item at point, decorating it if necessary.
We return the container widget if we're above the first proper item in the file.
Optional REDECORATE, if non-nil, means to redecorate the widget if it already exists.
Point will wind up positioned on the beginning of the parent or beginning of the buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/allout-widgets.el.gz
;;;_ > allout-get-or-create-parent-widget (&optional redecorate)
(defun allout-get-or-create-parent-widget (&optional redecorate)
"Return widget for parent of item at point, decorating it if necessary.
We return the container widget if we're above the first proper item in the
file.
Optional REDECORATE, if non-nil, means to redecorate the widget if it
already exists.
Point will wind up positioned on the beginning of the parent or beginning
of the buffer."
;; use existing widget, if there, else establish it
(if (or (bobp) (and (not (allout-ascend))
(looking-at-p allout-regexp)))
(allout-get-or-create-item-widget redecorate 'blank-container)
(allout-get-or-create-item-widget redecorate)))