home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.lisp
- Path: sparky!uunet!stanford.edu!lucid.com!karoshi!fy
- From: fy@lucid.com (Frank Yellin)
- Subject: Re: Need help with macro writing
- In-Reply-To: schneide@divsun.unige.ch's message of Tue, 26 Jan 1993 21:50:13 GMT
- Message-ID: <FY.93Jan26161803@hardwick.lucid.com>
- Sender: usenet@lucid.com
- Organization: Lucid, Inc., Menlo Park, CA
- References: <1993Jan26.215013.12107@news.unige.ch>
- Date: 26 Jan 93 16:18:03
- Lines: 25
-
-
- In article <1993Jan26.215013.12107@news.unige.ch> schneide@divsun.unige.ch
- (SCHNEIDER daniel) writes:
-
- >
- > Hi folks,
- >
- > I am a bit stuck with macro writing. I'd like to translate this:
- >
- > (with-output-as-presentation1 (:stream t :type tt :object ttt)
- > (print object) (bla bla))
- >
- > into this:
- >
- > (WITH-OUTPUT-AS-PRESENTATION (T TT TTT) (PRINT OBJECT) (BLA BLA))
-
- How about
-
- (defmacro with-output-as-presentation1 ((&key stream type object) &body body)
- `(with-output-as-presentation (,stream ,type ,object) ,@body))
-
-
- -- Frank Yellin
- fy@lucid.com
-
-