Function: allout-widgets-undecorate-item
allout-widgets-undecorate-item is a byte-compiled function defined in
allout-widgets.el.gz.
Signature
(allout-widgets-undecorate-item ITEM-WIDGET &optional NO-EXPOSE)
Documentation
Remove widget decorations from ITEM-WIDGET.
Any concealed content head lines and item body is exposed, unless optional NO-EXPOSE is non-nil.
Source Code
;; Defined in /usr/src/emacs/lisp/allout-widgets.el.gz
;;;_ > allout-widgets-undecorate-item (item-widget &optional no-expose)
(defun allout-widgets-undecorate-item (item-widget &optional no-expose)
"Remove widget decorations from ITEM-WIDGET.
Any concealed content head lines and item body is exposed, unless
optional NO-EXPOSE is non-nil."
(let ((from (widget-get item-widget :from))
(to (widget-get item-widget :to))
(text-properties-to-remove '(display nil
:icon-state nil
rear-nonsticky nil
category nil
button nil
field nil))
(span-overlay (widget-get item-widget :span-overlay))
(button-overlay (widget-get item-widget :button))
(was-modified (buffer-modified-p))
(buffer-undo-list t)
(inhibit-read-only t))
(if (not no-expose)
(allout-flag-region from to nil))
(allout-unprotected
(remove-text-properties from to text-properties-to-remove))
(when span-overlay
(delete-overlay span-overlay) (widget-put item-widget :span-overlay nil))
(when button-overlay
(delete-overlay button-overlay) (widget-put item-widget :button nil))
(set-marker from nil)
(set-marker to nil)
(if (not was-modified)
(set-buffer-modified-p nil))))