Article View: gnu.emacs.bug
Article #99480Re: (interactive "P") and prefix-numeric-arg
From: Ray Nickson
Date: Wed, 29 Aug 1990 13:30
Date: Wed, 29 Aug 1990 13:30
25 lines
1775 bytes
1775 bytes
In article <9008242002.AA07151@life.ai.mit.edu> gildea@ALEXANDER.BBN.COM (Stephen Gildea) writes:
Adding one new interactive code seems like a useful thing.
On that topic, how about an interactive code e that gets followed by a
lisp expression to evaluate to get this argument? Yes, I know I call
call interactive with a single lisp form that should return a list of
all args, but I want a way to do something special for just a *single*
arg. So I could write
(defun funny (odd peculiar strange)
(interactive "sString: \ne(call-horrid-function)\nP")
... )
instead of
(defun funny (odd peculiar strange)
(interactive (list (read-string "String: ")
(call-horrid-function)
current-prefix-arg))
... )
--
Ray Nickson <Ray.Nickson@comp.vuw.ac.nz> + 64 4 721000x8145
"too many people have died"
Technical Details
Message-ID:
<NICKSON.90Aug29093031@circa.comp.vuw.ac.nz>Path:
arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!lll-winken!uwm.edu!zaphod.mps.ohio-state.edu!samsung!uunet!comp.vuw.ac.nz!nicksonReferences:
<9008242002.AA07151@life.ai.mit.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,6bdf56254893cdce,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-08-29 06:30:31 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!lll-winken!uwm.edu!zaphod.mps.ohio-state.edu!samsung!uunet!comp.vuw.ac.nz!nickson From: Ray.Nickson@comp.vuw.ac.nz (Ray Nickson) Newsgroups: gnu.emacs.bug Subject: Re: (interactive "P") and prefix-numeric-arg Message-ID: <NICKSON.90Aug29093031@circa.comp.vuw.ac.nz> Date: 29 Aug 90 13:30:31 GMT References: <9008242002.AA07151@life.ai.mit.edu> Sender: news@comp.vuw.ac.nz (News Admin) Distribution: gnu Organization: Victoria University of Wellington, Wellington, New Zealand Lines: 25 Posted: Wed Aug 29 14:30:31 1990 In-Reply-To: gildea@ALEXANDER.BBN.COM's message of 24 Aug 90 20:01:54 GMT