Function: widget-specify-sample

widget-specify-sample is a byte-compiled function defined in wid-edit.el.gz.

Signature

(widget-specify-sample WIDGET FROM TO)

Documentation

Specify sample for WIDGET between FROM and TO.

Source Code

;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-specify-sample (widget from to)
  "Specify sample for WIDGET between FROM and TO."
  (let ((overlay (make-overlay from to nil t nil)))
    (overlay-put overlay 'face (widget-apply widget :sample-face-get))
    (overlay-put overlay 'evaporate t)
    (widget-put widget :sample-overlay overlay)))