Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!encore!pierson@mist From: pierson@mist (Dan Pierson) Newsgroups: comp.emacs Subject: Re: GNU Emacs special form "interactive" Message-ID: <4535@xenna.Encore.COM> Date: 30 Dec 88 19:12:46 GMT References: <8812301512.AA10827@decwrl.dec.com> Sender: news@Encore.COM Reply-To: pierson@mist (Dan Pierson) Organization: Encore Computer Corp Lines: 26 In-reply-to: ellis@ultra.dec.com (David Ellis) In article <8812301512.AA10827@decwrl.dec.com>, ellis@ultra (David Ellis) writes: > (interactive (format "s(This is a %s prompt string) : " foo-arg)) > >Unfortunately, GNU Emacs rewards this effort with the error message > > Wrong type argument: listp, "s(This is a Type A prompt string) : " > >saying that "interactive" expects a list (huh?) but has been given a string. From ^H-f interactive: "The argument of interactive is usually a string ... ... If the argument is not a string, it is evaluated to get a list of arguments to pass to the function." You might try: (interactive (list (read-string (format "This is a %s prompt string: " foo-arg)))) -- dan In real life: Dan Pierson, Encore Computer Corporation, Research UUCP: {talcott,linus,necis,decvax}!encore!pierson Internet: pierson@multimax.encore.com