chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] format-modular feature request: defining one's own m


From: Robin Lee Powell
Subject: Re: [Chicken-users] format-modular feature request: defining one's own multi-part formats
Date: Fri, 7 Mar 2008 13:16:14 -0800
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

On Fri, Mar 07, 2008 at 01:12:06PM -0800, Kon Lovett wrote:
>
> On Mar 7, 2008, at 9:08 AM, Robin Lee Powell wrote:
>
>>
>> I'd like to define my own %[...%] sort of formatter using
>> format-modular, but it seems to be impossible without copying most
>> of the egg into my own code!  Could this be added as a general
>> feature?
>
> No quite sure what you mean. Is '%' to be the escape character,
> instead of '~'? This is possible but you would need to override
> the  "*formatter-cond*" to provide new semantics. And all format
> codes would need to use '%' as the escape.
>
> Or are you asking for a user defined multi-character escape+code
> sequence that would coexist with the default escape+code
> sequences? I  suppose this could be done but would require some
> surgery.

I don't think I'm asking for either of those, but I'm not sure.

I'm asking how to do before-and-after escape sequences, like
~[...~] or ~(...~), but with my own code behind them.

-Robin

-- 
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]