Path: utzoo!attcan!uunet!mcvax!ukc!harrier.ukc.ac.uk!eagle.ukc.ac.uk!icdoc!qmc-cs!harlqn!jcgs From: jcgs@harlqn.harlqn.uucp (John Sturdy) Newsgroups: comp.emacs Subject: Re: GNU Emacs special form "interactive" Message-ID: Date: 6 Jan 89 11:17:43 GMT References: <8812301512.AA10827@decwrl.dec.com> <46707@yale-celray.yale.UUCP> Sender: news@harlqn.UUCP Organization: Harlequin Ltd, Cambridge, England Lines: 21 In-reply-to: Ram-Ashwin@cs.yale.edu's message of 30 Dec 88 19:27:15 GMT Ram Ashwin writes: >> Note that foo-arg cannot be one of the arguments to the function since if >> that function is called interactively, its arguments will not yet >> be defined. You can use previous interactive arguments to the function in later ones like this: (interactive (let* ((arg1 (read-from-minibuffer "Arg1: ")) (arg2 (read-from-minibuffer (format "Arg2 for %s: " arg1)))) (list arg1 arg2))) -- __John The Lord bless you and watch over you, The Lord make his face shine upon you and be gracious to you, The Lord look kindly on you and give you peace; My brothers, my sisters, God bless you. Amen. (St. Francis) jcgs@uk.co.harlqn (UK notation) jcgs@harlqn.co.uk (most places) ...!mcvax!ukc!harlqn!jcgs (uucp - really has more stages, but ukc knows us) John Sturdy Telephone +44-223-872522 Harlequin Ltd, Barrington Hall, Barrington, Cambridge, UK