integer widget

Discussion of Emacs Lisp
Post Reply
gabre
Posts: 1
Joined: Sun Aug 26, 2012 1:53 am

integer widget

Post by gabre » Sun Aug 26, 2012 2:11 am

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.

Post Reply