🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #8263

Re: GNU Emacs special form "interactive"

#8263
From: John Sturdy
Date: Fri, 06 Jan 1989 11:17
21 lines
1593 bytes
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
Technical Details
Message-ID: <JCGS.89Jan6101743@harlqn.harlqn.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!ukc!harrier.ukc.ac.uk!eagle.ukc.ac.uk!icdoc!qmc-cs!harlqn!jcgs
References: <8812301512.AA10827@decwrl.dec.com> <46707@yale-celray.yale.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <JCGS.89Jan6101743@harlqn.harlqn.uucp>
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