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

Re: format directive problem



At 16:44 1/12/95 +0100, Stefan K. Bamberger wrote:
>Hi,
>
>I want to use the ~ directive to break up my program code in more suitable
>lines.
>As I won't get the NEWLINE and the SPACES I wrote ~:@.
>Unfortunately that will result in an error in MCL2.0.1.
>
>Writing ~: oder ~@ is no problem, but I need the combination!
>In CLtL2 there is no remark, that the combination is not allowed.
>

By my reading of CLtL2, "~:@<return>"  would be identically equal to just
including the <return> in your format string, i.e. it includes the return
and the whitespace characters which follow it.  "~<return>" includes
neither , "~:<return>" includes just the whitespace, and "~@<return>"
includes just the newline, so you have all four combinations.



>example:
>
>(format nil "What a nice text!~%~a lines will be fine ~:@
>             but I write only 2.~2% (click to close ...)" 4)
>
>> Error: 
>>        Expecting one of (#\>)
>>        "~:@<newline> is undefined"
>>            ^
>>        While processing indirect control string
>>        "~1{~:}~%~S~%~V@T^"
>>              ^
>>        While processing indirect control string
>>        "~%~:{~@?~%~}"
>>                ^
>>        
>> While executing: Ccl::Do-Sub-Format
>> Type Command-. to abort.
>See the Restarts
>
>
>- stefan
>_____________________________________________________________________
>***  Support bacteria -- it's the only culture some people have! ****
>_____________________________________________________________________
>Stefan K. Bamberger          email: bambi@informatik.uni-wuerzburg.de
>Lehrstuhl f"ur Informatik VI                 voice : ++49 931 7056114
>Universit"at W"urzburg / Germany               Fax : ++49 931 7056120
>_____________________________________________________________________