From edi at agharta.de Fri May 4 21:26:01 2012 From: edi at agharta.de (Edi Weitz) Date: Fri, 4 May 2012 23:26:01 +0200 Subject: [cl-who-devel] declarations placement issue In-Reply-To: References: Message-ID: Sorry for the late reply... :( Yeah, look like you're right. I think the documentation is to blame in that it talks about declarations although I think CL-WHO never took care of them. I'd suggest to just remove this from the docs unless you have a patch. (I myself am too busy with other things to work on the code.) Thanks, Edi. On Thu, Apr 19, 2012 at 10:42 PM, Ala'a Mohammad wrote: > Hi, > > Please, correct me If I'm wrong. > > in the expansion of the following (using cl-who from quicklisp) > > (with-html-output (var) > ?(declare (special var))) > ;=> > (LET ((VAR VAR)) > ? (PROGN > ? ? ?(DECLARE (SPECIAL VAR)))) > > I think that the declaration is placed in the wrong place. CLHS does > not specify any declarations for PROGN entry. and in this declaration > provides information about the bindings of LET, thus I thought the > correct expansion should be: > > (with-html-output (var) > ?(declare (special var))) > ;=> > (LET ((VAR VAR)) > ? (DECLARE (SPECIAL VAR)) > ? (PROGN)) > > the fix should should only affect with-html-output (since > with-html-output-to-string passes the declarations to the former > macro) > > Regards, > > Ala'a > > _______________________________________________ > cl-who-devel site list > cl-who-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-who-devel > From amalawi at gmail.com Sat May 5 10:42:20 2012 From: amalawi at gmail.com (Ala'a Mohammad) Date: Sat, 5 May 2012 14:42:20 +0400 Subject: [cl-who-devel] declarations placement issue In-Reply-To: References: Message-ID: Thanks for taking the time to reply. I've already forked the github version and got the patch approved by Hans. Best wishes, Ala'a. On Sat, May 5, 2012 at 1:26 AM, Edi Weitz wrote: > Sorry for the late reply... :( > > Yeah, look like you're right. ?I think the documentation is to blame > in that it talks about declarations although I think CL-WHO never took > care of them. ?I'd suggest to just remove this from the docs unless > you have a patch. ?(I myself am too busy with other things to work on > the code.) > > Thanks, > Edi. > > > On Thu, Apr 19, 2012 at 10:42 PM, Ala'a Mohammad wrote: >> Hi, >> >> Please, correct me If I'm wrong. >> >> in the expansion of the following (using cl-who from quicklisp) >> >> (with-html-output (var) >> ?(declare (special var))) >> ;=> >> (LET ((VAR VAR)) >> ? (PROGN >> ? ? ?(DECLARE (SPECIAL VAR)))) >> >> I think that the declaration is placed in the wrong place. CLHS does >> not specify any declarations for PROGN entry. and in this declaration >> provides information about the bindings of LET, thus I thought the >> correct expansion should be: >> >> (with-html-output (var) >> ?(declare (special var))) >> ;=> >> (LET ((VAR VAR)) >> ? (DECLARE (SPECIAL VAR)) >> ? (PROGN)) >> >> the fix should should only affect with-html-output (since >> with-html-output-to-string passes the declarations to the former >> macro) >> >> Regards, >> >> Ala'a >> >> _______________________________________________ >> cl-who-devel site list >> cl-who-devel at common-lisp.net >> http://common-lisp.net/mailman/listinfo/cl-who-devel >> > > _______________________________________________ > cl-who-devel site list > cl-who-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-who-devel From download at hpc.unm.edu Thu May 24 17:41:33 2012 From: download at hpc.unm.edu (Jim Prewett) Date: Thu, 24 May 2012 11:41:33 -0600 (MDT) Subject: [cl-who-devel] using cl-who to expand dynamically created s-html? Message-ID: Hi All, I've been (happily) using cl-who for quite a while, but now I'm stuck! I'd like to use cl-who to expand s-expressions (which are generated on the fly) into HTML. So, instead of doing what I normally do like this: (cl-who:with-html-output (*standard-output*) (cl-who:htm (:pre "this is some preformatted text"))) I'd like to do something like this (where the s-exprs are generated by calling a function): (cl-who:with-html-output (*standard-output*) (cl-who:htm (funcall #'(lambda () '(:pre "this is some preformatted text"))))) Of course, this doesn't work as with-html-output is a macro. I feel like I'm missing something horribly obvious! :) Thanks for any help you can provide, Jim James E. Prewett Jim at Prewett.org download at hpc.unm.edu Systems Team Leader LoGS: http://www.hpc.unm.edu/~download/LoGS/ Designated Security Officer OpenPGP key: pub 1024D/31816D93 HPC Systems Engineer III UNM HPC 505.277.8210