Function: widget-documentation-link-add
widget-documentation-link-add is a byte-compiled function defined in
wid-edit.el.gz.
Signature
(widget-documentation-link-add WIDGET FROM TO)
Source Code
;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-documentation-link-add (widget from to)
(widget-specify-doc widget from to)
(when widget-documentation-links
(let ((regexp widget-documentation-link-regexp)
(buttons (widget-get widget :buttons))
(widget-mouse-face (default-value 'widget-mouse-face))
(widget-button-face widget-documentation-face)
(widget-button-pressed-face widget-documentation-face))
(save-excursion
(goto-char from)
(while (re-search-forward regexp to t)
(let ((name (match-string 1))
(begin (match-beginning 1))
(end (match-end 1)))
(when (funcall widget-documentation-link-p name)
(push (widget-convert-button widget-documentation-link-type
begin end :value name)
buttons)))))
(widget-put widget :buttons buttons))))