[cl-who-devel] Re: Macroexpansion of with-html-output body?
Victor Kryukov
victor.kryukov at gmail.com
Sun Feb 10 06:54:09 UTC 2008
Victor Kryukov <victor.kryukov at gmail.com> writes:
> Jeff Cunningham <jeffrey at cunningham.net> writes:
>
>> Edi Weitz wrote:
>>> On Sat, 2 Feb 2008 15:18:09 -0600, "Eli Naeher" <enaeher at gmail.com> wrote:
>>>
>>>
>>>> It seems like it would be nice to expand any macros detected while
>>>> walking the tree of the w-h-o body. This would allow users to define
>>>> their own pseudo-tags a little more flexibly than is possible with
>>>> convert-tag-to-string-list. In particular, it would allow the user
>>>> to create a tag which modifies its body (as a tree) even when that
>>>> body contains the expansion of another user-defined tag. I don't
>>>> believe this is currently possible, as this hypothetical outer tag
>>>> would have access only to the HTML strings returned by the
>>>> convert-tag-to-string-list specialized on the inner tag and not to
>>>> the relevant s-expressions.
>>>>
>>>
>>> Modifying CL-WHO's internals to allow this is on my todo list, but
>>> there are a lot more things on this list, so the chances of me doing
>>> this myself in the near future are not very big. So, if someone wants
>>> to do this, I'm all for it. Please read this first, though:
>>>
>>> http://weitz.de/patches.html
>>>
>>> In the case of CL-WHO I'd think that backwards compatibility would be
>>> pretty important.
>>>
>>> Edi.
>>>
>> I also like the idea.
>> And as I have tens of thousands of lines of cl-who code in operation,
>> I emphatically vote for backwards compatibility.
>
> Below is my attempt to implement macroexpansion capability in
> with-html-output body. Before sending it formally as a patch I want to
> get your feedback on the implementation and also ask for some testing.
It also seems to resolve (with-html-output-to-str (str) ...) bug.
Regards,
Victor.
More information about the Cl-who-devel
mailing list