[Ecls-list] Question/problem about macro documentation

Juan Jose Garcia Ripoll jlr at mpq.mpg.de
Mon Jun 20 09:46:35 UTC 2005


Goffioul Michael wrote:

>I don't know if I'm doing right, but:
>
>>defmacro m1 (x) `(list ,x))
>>    
>>
>M1
>  
>
>>(setf (documentation 'm1 'function) "Macro doc")
>>    
>>
>"Macro doc"
>  
>
>>(documentation 'm1 'function)
>>    
>>
>NIL
>  
>
>>(setf (documentation 'm1 'macro) "Macro doc")
>>    
>>
>"Macro doc"
>  
>
>>(documentation 'm1 'macro)
>>    
>>
>NIL
>  
>
>How am I supposed to set documentation for a macro?
>  
>
Using 'function documentation type. ECL was using FDEFINITION to 
determine the function object even in the case of a macro, which is 
wrong. Fixed in CVS.

Juanjo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jlr.vcf
Type: text/x-vcard
Size: 389 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20050620/f1ba2e99/attachment.vcf>


More information about the ecl-devel mailing list