I have created a widget with an editable-field.
(widget-create 'editable-field
:size 13
:format "name: %v \n"
"Type in your name")
How can I now store only the user input? I tried setq before widget-create but it stores the entire widget definition.
I was able to store the user input using the notify field in the widget creation.
(widget-create 'editable-field
:size 13
:format "name: %v \n"
;;"Type in your name"
:notify (lambda (widget &rest ignore)
(setq *name* (widget-value widget)))
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.