Function: next-button
next-button is a byte-compiled function defined in button.el.gz.
Signature
(next-button POS &optional COUNT-CURRENT)
Documentation
Return the next button after position POS in the current buffer.
If COUNT-CURRENT is non-nil, count any button at POS in the search, instead of starting at the next button.
Source Code
;; Defined in /usr/src/emacs/lisp/button.el.gz
(defun next-button (pos &optional count-current)
"Return the next button after position POS in the current buffer.
If COUNT-CURRENT is non-nil, count any button at POS in the search,
instead of starting at the next button."
(unless count-current
;; Search for the next button boundary.
(setq pos (next-single-char-property-change pos 'button)))
(and (< pos (point-max))
(or (button-at pos)
;; We must have originally been on a button, and are now in
;; the inter-button space. Recurse to find a button.
(next-button pos))))