Function: allout-widgets-count-buttons-in-region
allout-widgets-count-buttons-in-region is an interactive and
byte-compiled function defined in allout-widgets.el.gz.
Signature
(allout-widgets-count-buttons-in-region START END)
Documentation
Debugging/diagnostic tool - count overlays with button property in region.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/allout-widgets.el.gz
;;;_ . allout-widgets-count-buttons-in-region (start end)
(defun allout-widgets-count-buttons-in-region (start end)
"Debugging/diagnostic tool - count overlays with `button' property in region."
(interactive "r")
(setq start (or start (point-min))
end (or end (point-max)))
(if (> start end) (let ((interim start)) (setq start end end interim)))
(let ((button-overlays (delq nil
(mapcar (lambda (o)
(if (overlay-get o 'button)
o))
(overlays-in start end)))))
(length button-overlays)))