:prompt-internal prompt initial history)))
(widget-apply widget :value-to-external answer))))
+(defvar widget-edit-hook nil)
+
(defun widget-field-action (widget &optional event)
;; Move to next field.
(widget-forward 1)
- (message "To set the value, invoke [State] and choose the Set operation"))
+ (run-hooks 'widget-edit-hook))
(defun widget-field-validate (widget)
;; Valid if the content matches `:valid-regexp'.
(widget-get current :value)))
(widget-setup)
(widget-apply widget :notify widget event)))
- (message "To set the value, invoke [State] and choose the Set operation"))
+ (run-hooks 'widget-edit-hook))
(defun widget-choice-validate (widget)
;; Valid if we have made a valid choice.
;; Toggle value.
(widget-value-set widget (not (widget-value widget)))
(widget-apply widget :notify widget event)
- (message "To set the value, invoke [State] and choose the Set operation"))
+ (run-hooks 'widget-edit-hook))
;;; The `checkbox' Widget.
(widget-glyph-insert widget on "down" "down-pushed")
(widget-glyph-insert widget off "right" "right-pushed"))))
-(define-widget 'group-visibility 'visibility
- "An indicator and manipulator for hidden group contents."
- :create 'widget-group-visibility-create)
-
-(defun widget-group-visibility-create (widget)
- (let ((visible (widget-value widget)))
- (if visible
- (insert "--------")))
- (widget-default-create widget))
-
;;; The `documentation-link' Widget.
;;
;; This is a helper widget for `documentation-string'.