This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

integer widget

1 post · 5740 views

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.