If I try to set up a buffer with just one integer
widget, I have a very hard time editing the field. The initial value seems stuck there and, if I try to edit it away I get a End of file during parsing
error (obviously generated in the guts of the widget library or below).
Any idea about what is going on and how to make the integer
widget do "the obvious", I suppose by changing the field keymap?
This is for Emacs 25.x to 28.x. The code for the widget is below; you can uncomment the :value
initialization just to see what happens. Set it up in the usual way.
(widget-create 'integer
:help-echo "Enter an integer..."
;; :value " "
:notify
(lambda (w &rest ws)
(ignore ws)
(message "WIFT: %s" (widget-value w)))
:size 4
)