Function: allout-widgets-undecorate-region

allout-widgets-undecorate-region is a byte-compiled function defined in allout-widgets.el.gz.

Signature

(allout-widgets-undecorate-region START END)

Documentation

Eliminate widgets and decorations for all items in region from START to END.

Source Code

;; Defined in /usr/src/emacs/lisp/allout-widgets.el.gz
;;;_  : Item undecoration
;;;_   > allout-widgets-undecorate-region (start end)
(defun allout-widgets-undecorate-region (start end)
  "Eliminate widgets and decorations for all items in region from START to END."
  (let (done next widget
        (end (or end (point-max))))
    (save-excursion
      (goto-char start)
      (while (not done)
        (when (and (allout-on-current-heading-p)
                   (setq widget (allout-get-item-widget)))
            (if widget
                (allout-widgets-undecorate-item widget t)))
        (goto-char (setq next
                         (next-single-char-property-change (point)
                                                           'display
                                                           (current-buffer)
                                                           end)))
        (if (>= next end)
            (setq done t))))))