Page 1 of 1

integer widget

Posted: Sun Aug 26, 2012 2:11 am
by gabre
hello all!
I d like to ask if there is a widget in emacs I can ask for an integer value with. I dont want to ask in the mini buffer but in my own buffer. Now, I use editable fields and string-to-number but I dont think that this is the correct way. I googled the topic and found this:
http://www.gnu.org/software/emacs/manua ... atoms.html
I dont know if I m right but I think that I should use the following:
(widget-create 'integer ... )
This line creates a widget like this: Integer: 0
I dont think that this is what I want because I dont need that "Integer" text before the number. I tried to change it, but I could not.

Sorry, I m very new to emacs and elisp.