[cl-who-devel] Changing *attribute-quote-char*

Andrei Stebakov lispercat at gmail.com
Fri Aug 15 19:47:54 UTC 2008


I was not just playing with REPL, I tried to compile the code and reloaded
the image
(let ((*attribute-quote-char* #\"))
  (with-html-output-to-string (*standard-output* nil :prologue nil :indent
nil)
    (:html
     (:head
      (:title "title")
      (:meta :name "DESCRIPTION" :content "description")
      (:meta :name "KEYWORDS" :content "keywords")))))

but I still had a single quote in the resulting code.
Andrew

On Wed, Aug 13, 2008 at 7:16 AM, Edi Weitz <edi at agharta.de> wrote:

> On Tue, 12 Aug 2008 18:07:46 -0400, "Andrei Stebakov" <lispercat at gmail.com>
> wrote:
>
> > By default the variable is initialized to #\' If I want to change it
> > to #\" via local binding I still get the single quotes in the
> > resulting string.
>
> WITH-HTML-OUTPUT is a macro, so what is relevant is the value of
> *ATTRIBUTE-QUOTE-CHAR* at macro expansion time.  If you play around in
> the REPL, this is obviously different for Lisps which always compile
> everything (like SBCL) and Lisps which use an interpreter for REPL
> forms (like LispWorks).  See chapter 3 of the CLHS for details.
>
> Edi (still on vacation).
> _______________________________________________
> cl-who-devel site list
> cl-who-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/cl-who-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-who-devel/attachments/20080815/ae3788be/attachment.html>


More information about the Cl-who-devel mailing list