🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #9549

Re: Need read-number function

#9549
From: Eliot Handelman
Date: Thu, 08 Feb 1990 07:33
12 lines
726 bytes
In article <4300068@m.cs.uiuc.edu> reingold@m.cs.uiuc.edu writes:
;
;I need a function read-number that would behave like (interactive "n");
;that is, it would keep trying until a numeric value was typed.
;
;Any suggestions?

How's about this:

(defun read-number (number)
   (interactive "nNumber: ")
   number)
Technical Details
Message-ID: <13690@phoenix.Princeton.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!udel!princeton!phoenix!eliot
References: <4300068@m.cs.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!udel!princeton!phoenix!eliot
From: eliot@phoenix.Princeton.EDU (Eliot Handelman)
Newsgroups: comp.emacs
Subject: Re: Need read-number function
Message-ID: <13690@phoenix.Princeton.EDU>
Date: 8 Feb 90 07:33:15 GMT
References: <4300068@m.cs.uiuc.edu>
Reply-To: eliot@phoenix.Princeton.EDU (Eliot Handelman)
Organization: Princeton University, NJ
Lines: 12