Function: widget-specify-inactive
widget-specify-inactive is a byte-compiled function defined in
wid-edit.el.gz.
Signature
(widget-specify-inactive WIDGET FROM TO)
Documentation
Make WIDGET inactive for user modifications.
Source Code
;; Defined in /usr/src/emacs/lisp/wid-edit.el.gz
(defun widget-specify-inactive (widget from to)
"Make WIDGET inactive for user modifications."
(unless (widget-get widget :inactive)
(let ((overlay (make-overlay from to nil t nil)))
(overlay-put overlay 'face 'widget-inactive)
;; This is disabled, as it makes the mouse cursor change shape.
;; (overlay-put overlay 'mouse-face 'widget-inactive)
(overlay-put overlay 'evaporate t)
(overlay-put overlay 'priority 100)
(overlay-put overlay 'modification-hooks '(widget-overlay-inactive))
(widget-put widget :inactive overlay))))