From antoniotti.marco at disco.unimib.it Sun Apr 17 13:05:32 2011 From: antoniotti.marco at disco.unimib.it (Marco Antoniotti) Date: Sun, 17 Apr 2011 09:05:32 -0400 Subject: [cl-who-devel] Problems with indent Message-ID: <0529F768-0AC2-47FA-9184-73B4DAEBC6A6@disco.unimib.it> Hi, I would like to use CL-WHO for a little project of mine and I am getting bogged down by the :indent behavior. Note that I am not trying to generate any PRE tags (yet). The following snippet illustrates the problem. Given the expansion of with-html-output, cl-who::*indent* does not behave as a special variable and this prevents me from producing "properly" indented HTML. (use-package "CL-WHO") (defun who-test (x &optional (out *standard-output*) (indent 2)) (let ((cl-who::*indent* indent)) (declare (special cl-who::*indent*)) (with-html-output (out out :indent 4 #| indent |#) (htm (:body (:frameset :rows "65px" :border 0 :noresize "noresize" (frame-stuff x))) )))) (defun frame-stuff (x &optional (out *standard-output*)) (with-html-output (out out :indent 3) (htm (:frame :src x)))) If you remove the 4 and uncomment indent you will see what happens. Any suggestions about how to "fix" this? Note that I do want the inner function pretty much 'as-is'. Cheers Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: From edi at weitz.de Thu Apr 28 15:09:14 2011 From: edi at weitz.de (Edi Weitz) Date: Thu, 28 Apr 2011 17:09:14 +0200 Subject: [cl-who-devel] Problems with indent In-Reply-To: <0529F768-0AC2-47FA-9184-73B4DAEBC6A6@disco.unimib.it> References: <0529F768-0AC2-47FA-9184-73B4DAEBC6A6@disco.unimib.it> Message-ID: Sorry for the late reply, but CL-WHO is essentially unmaintained these days. I noticed that you're using an unexported variable, so I think you got what you deserved... :) Patches (see ) are welcome, but please take a look at the BKNR repository first where you'll find a preliminary 1.0.0 version of CL-WHO which might or might not do what you want. Cheers, Edi. On Sun, Apr 17, 2011 at 3:05 PM, Marco Antoniotti wrote: > Hi, > I would like to use CL-WHO for a little project of mine and I am getting > bogged down by the :indent behavior. ?Note that I am not trying to generate > any PRE tags (yet). ?The following snippet illustrates the problem. ?Given > the expansion of with-html-output, cl-who::*indent* does not behave as a > special variable and this prevents me from producing "properly" indented > HTML. > > (use-package "CL-WHO") > > (defun who-test (x &optional (out *standard-output*) (indent 2)) > ??(let ((cl-who::*indent* indent)) > ?? ?(declare (special cl-who::*indent*)) > ?? ?(with-html-output (out out :indent 4 #| indent |#) > ?? ? ?(htm (:body (:frameset :rows "65px" :border 0 :noresize "noresize" > ?? ? ? ? ? ? ? ? ? (frame-stuff x))) > ?? ? ? ? ? )))) > > (defun frame-stuff (x &optional (out *standard-output*)) > ??(with-html-output (out out :indent 3) > ?? ?(htm (:frame :src x)))) > > If you remove the 4 and uncomment indent you will see what happens. > Any suggestions about how to "fix" this? ?Note that I do want the inner > function pretty much 'as-is'. > Cheers > Marco > > _______________________________________________ > cl-who-devel site list > cl-who-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-who-devel > From antoniotti.marco at disco.unimib.it Thu Apr 28 15:16:20 2011 From: antoniotti.marco at disco.unimib.it (Marco Antoniotti) Date: Thu, 28 Apr 2011 18:16:20 +0300 Subject: [cl-who-devel] Problems with indent In-Reply-To: References: <0529F768-0AC2-47FA-9184-73B4DAEBC6A6@disco.unimib.it> Message-ID: On Apr 28, 2011, at 18:09 , Edi Weitz wrote: > Sorry for the late reply, No problems. > but CL-WHO is essentially unmaintained these > days. I noticed that you're using an unexported variable, so I think > you got what you deserved... :) Yeah. I know :) But I swear I went down to the unexported variable only after trying all other ways :) > Patches (see ) are welcome, but please > take a look at the BKNR repository first where you'll find a > preliminary 1.0.0 version of CL-WHO which might or might not do what > you want. Ok. Will do. Thanks -- Marco > > Cheers, > Edi. > > > On Sun, Apr 17, 2011 at 3:05 PM, Marco Antoniotti > wrote: >> Hi, >> I would like to use CL-WHO for a little project of mine and I am getting >> bogged down by the :indent behavior. Note that I am not trying to generate >> any PRE tags (yet). The following snippet illustrates the problem. Given >> the expansion of with-html-output, cl-who::*indent* does not behave as a >> special variable and this prevents me from producing "properly" indented >> HTML. >> >> (use-package "CL-WHO") >> >> (defun who-test (x &optional (out *standard-output*) (indent 2)) >> (let ((cl-who::*indent* indent)) >> (declare (special cl-who::*indent*)) >> (with-html-output (out out :indent 4 #| indent |#) >> (htm (:body (:frameset :rows "65px" :border 0 :noresize "noresize" >> (frame-stuff x))) >> )))) >> >> (defun frame-stuff (x &optional (out *standard-output*)) >> (with-html-output (out out :indent 3) >> (htm (:frame :src x)))) >> >> If you remove the 4 and uncomment indent you will see what happens. >> Any suggestions about how to "fix" this? Note that I do want the inner >> function pretty much 'as-is'. >> Cheers >> Marco >> >> _______________________________________________ >> 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 -- Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01 DISCo, Universit? Milano Bicocca U14 2043 http://bimib.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY Please note that I am not checking my Spam-box anymore. Please do not forward this email without asking me first. From antoniotti.marco at disco.unimib.it Thu Apr 28 15:57:47 2011 From: antoniotti.marco at disco.unimib.it (Marco Antoniotti) Date: Thu, 28 Apr 2011 18:57:47 +0300 Subject: [cl-who-devel] Problems with indent In-Reply-To: References: <0529F768-0AC2-47FA-9184-73B4DAEBC6A6@disco.unimib.it> Message-ID: <9011D5D5-A31D-499A-8B99-307B91139674@disco.unimib.it> On Apr 28, 2011, at 18:09 , Edi Weitz wrote: > Sorry for the late reply, but CL-WHO is essentially unmaintained these > days. I noticed that you're using an unexported variable, so I think > you got what you deserved... :) > > Patches (see ) are welcome, but please > take a look at the BKNR repository first where you'll find a > preliminary 1.0.0 version of CL-WHO which might or might not do what > you want. Looking at the code I saw a couple of changes that should help. But how do you access the SVN repository? It is not WebDAV'ed. Cheers -- Marco > > Cheers, > Edi. > > > On Sun, Apr 17, 2011 at 3:05 PM, Marco Antoniotti > wrote: >> Hi, >> I would like to use CL-WHO for a little project of mine and I am getting >> bogged down by the :indent behavior. Note that I am not trying to generate >> any PRE tags (yet). The following snippet illustrates the problem. Given >> the expansion of with-html-output, cl-who::*indent* does not behave as a >> special variable and this prevents me from producing "properly" indented >> HTML. >> >> (use-package "CL-WHO") >> >> (defun who-test (x &optional (out *standard-output*) (indent 2)) >> (let ((cl-who::*indent* indent)) >> (declare (special cl-who::*indent*)) >> (with-html-output (out out :indent 4 #| indent |#) >> (htm (:body (:frameset :rows "65px" :border 0 :noresize "noresize" >> (frame-stuff x))) >> )))) >> >> (defun frame-stuff (x &optional (out *standard-output*)) >> (with-html-output (out out :indent 3) >> (htm (:frame :src x)))) >> >> If you remove the 4 and uncomment indent you will see what happens. >> Any suggestions about how to "fix" this? Note that I do want the inner >> function pretty much 'as-is'. >> Cheers >> Marco >> >> _______________________________________________ >> 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 -- Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01 DISCo, Universit? Milano Bicocca U14 2043 http://bimib.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY Please note that I am not checking my Spam-box anymore. Please do not forward this email without asking me first. From antoniotti.marco at disco.unimib.it Thu Apr 28 15:58:58 2011 From: antoniotti.marco at disco.unimib.it (Marco Antoniotti) Date: Thu, 28 Apr 2011 18:58:58 +0300 Subject: [cl-who-devel] Problems with indent In-Reply-To: <9011D5D5-A31D-499A-8B99-307B91139674@disco.unimib.it> References: <0529F768-0AC2-47FA-9184-73B4DAEBC6A6@disco.unimib.it> <9011D5D5-A31D-499A-8B99-307B91139674@disco.unimib.it> Message-ID: <28F5A6B9-4BDD-46DF-B038-DDDE4716A7E5@disco.unimib.it> On Apr 28, 2011, at 18:57 , Marco Antoniotti wrote: > > On Apr 28, 2011, at 18:09 , Edi Weitz wrote: > >> Sorry for the late reply, but CL-WHO is essentially unmaintained these >> days. I noticed that you're using an unexported variable, so I think >> you got what you deserved... :) >> >> Patches (see ) are welcome, but please >> take a look at the BKNR repository first where you'll find a >> preliminary 1.0.0 version of CL-WHO which might or might not do what >> you want. > > Looking at the code I saw a couple of changes that should help. But how do you access the SVN repository? It is not WebDAV'ed. I meant: how do you do a checkout? Marco > > Cheers > -- > Marco > > > > > > > >> >> Cheers, >> Edi. >> >> >> On Sun, Apr 17, 2011 at 3:05 PM, Marco Antoniotti >> wrote: >>> Hi, >>> I would like to use CL-WHO for a little project of mine and I am getting >>> bogged down by the :indent behavior. Note that I am not trying to generate >>> any PRE tags (yet). The following snippet illustrates the problem. Given >>> the expansion of with-html-output, cl-who::*indent* does not behave as a >>> special variable and this prevents me from producing "properly" indented >>> HTML. >>> >>> (use-package "CL-WHO") >>> >>> (defun who-test (x &optional (out *standard-output*) (indent 2)) >>> (let ((cl-who::*indent* indent)) >>> (declare (special cl-who::*indent*)) >>> (with-html-output (out out :indent 4 #| indent |#) >>> (htm (:body (:frameset :rows "65px" :border 0 :noresize "noresize" >>> (frame-stuff x))) >>> )))) >>> >>> (defun frame-stuff (x &optional (out *standard-output*)) >>> (with-html-output (out out :indent 3) >>> (htm (:frame :src x)))) >>> >>> If you remove the 4 and uncomment indent you will see what happens. >>> Any suggestions about how to "fix" this? Note that I do want the inner >>> function pretty much 'as-is'. >>> Cheers >>> Marco >>> >>> _______________________________________________ >>> 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 > > -- > Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01 > DISCo, Universit? Milano Bicocca U14 2043 http://bimib.disco.unimib.it > Viale Sarca 336 > I-20126 Milan (MI) ITALY > > Please note that I am not checking my Spam-box anymore. > Please do not forward this email without asking me first. > > > > > > > _______________________________________________ > cl-who-devel site list > cl-who-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-who-devel -- Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01 DISCo, Universit? Milano Bicocca U14 2043 http://bimib.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY Please note that I am not checking my Spam-box anymore. Please do not forward this email without asking me first. From edi at weitz.de Thu Apr 28 17:17:50 2011 From: edi at weitz.de (Edi Weitz) Date: Thu, 28 Apr 2011 19:17:50 +0200 Subject: [cl-who-devel] Problems with indent In-Reply-To: <28F5A6B9-4BDD-46DF-B038-DDDE4716A7E5@disco.unimib.it> References: <0529F768-0AC2-47FA-9184-73B4DAEBC6A6@disco.unimib.it> <9011D5D5-A31D-499A-8B99-307B91139674@disco.unimib.it> <28F5A6B9-4BDD-46DF-B038-DDDE4716A7E5@disco.unimib.it> Message-ID: On Thu, Apr 28, 2011 at 5:58 PM, Marco Antoniotti wrote: > I meant: how do you do a checkout? http://bknr.net/html/getting.html Replace "trunk" with "ediware". From antoniotti.marco at disco.unimib.it Fri Apr 29 11:07:18 2011 From: antoniotti.marco at disco.unimib.it (Marco Antoniotti) Date: Fri, 29 Apr 2011 14:07:18 +0300 Subject: [cl-who-devel] Problems with indent In-Reply-To: References: <0529F768-0AC2-47FA-9184-73B4DAEBC6A6@disco.unimib.it> <9011D5D5-A31D-499A-8B99-307B91139674@disco.unimib.it> <28F5A6B9-4BDD-46DF-B038-DDDE4716A7E5@disco.unimib.it> Message-ID: Thanks. Marco On Apr 28, 2011, at 20:17 , Edi Weitz wrote: > On Thu, Apr 28, 2011 at 5:58 PM, Marco Antoniotti > wrote: > >> I meant: how do you do a checkout? > > http://bknr.net/html/getting.html > > Replace "trunk" with "ediware". > > _______________________________________________ > cl-who-devel site list > cl-who-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-who-devel -- Marco Antoniotti, Associate Professor tel. +39 - 02 64 48 79 01 DISCo, Universit? Milano Bicocca U14 2043 http://bimib.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY Please note that I am not checking my Spam-box anymore. Please do not forward this email without asking me first.