[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get predicates from markup-commands?
From: |
Thomas Morley |
Subject: |
Re: How to get predicates from markup-commands? |
Date: |
Sun, 6 Dec 2015 19:22:17 +0100 |
2015-12-06 19:09 GMT+01:00 David Kastrup <address@hidden>:
> Thomas Morley <address@hidden> writes:
>
>> Hi all,
>>
>> as an example I use the markup-command `with-color', which is defined
>> as (pseude-code)
>>
>> (define-markup-command (with-color layout props color arg)
>> (color? markup?)
>> #:category other
>> "DOC-STRING"
>> <body>
>> )
>>
>> I can quite easily display:
>> (display (procedure-source with-color-markup))
>> though I'm interested in the predicates, i.e. (color? markup?)
>>
>> Is there any way?
>
> (markup-command-signature with-color-markup)
>
> --
> David Kastrup
Works as:
(display (markup-command-signature with-color-markup))
or
(display (map procedure-name (markup-command-signature with-color-markup)))
Thanks,
Harm