4 (defun test-widget-formats ()
6 (let ((widget-button-prefix "<<<<")
7 (widget-button-suffix ""))
8 (with-output-to-temp-buffer (help-buffer)
9 (with-current-buffer (help-buffer)
10 (set (make-local-variable 'widget-push-button-prefix) "")
11 (set (make-local-variable 'widget-push-button-suffix) "")
12 (set (make-local-variable 'widget-link-prefix) "")
13 (set (make-local-variable 'widget-link-suffix) "")
15 (widget-create 'push-button
16 :action '(lambda (w &optional e) (message "1"))
17 :button-face 'emacsw32-link-face
22 (widget-create 'push-button
23 :action '(lambda (w &optional e) (message "2"))
27 (widget-create 'push-button
28 :action '(lambda (w &optional e) (message "3"))
34 (widget-create 'push-button
35 :action '(lambda (w &optional e) (message "4"))
41 (widget-create 'push-button
42 :action '(lambda (w &optional e) (message "5"))
48 (widget-create 'push-button
49 :action '(lambda (w &optional e) (message "6"))
52 ;;:value-create 'widget-browse-value-create
53 :value-create (lambda (widget) (insert (widget-get widget :value)))