[cl-markdown-devel] Re: feature request (user guide)

Gary King gwking at metabang.com
Tue Feb 27 01:44:27 UTC 2007


(cc'd to list -- hope you don't mind)

Hi Hans,

I'm glad you got them to work and I apologize that they are so  
_crufty_. I think what I'd like to do is make a macro that does some  
of the grudge work for you. I have vague hope that I'll do a first  
step along these lines this week).

On Feb 26, 2007, at 4:22 AM, Hans Halvorson wrote:

> Dear Gary,
>
> Thanks for writing the cl-markdown user guide --- it has been very
> helpful for me.
>
> I have one request/suggestion for the user guide:
>
> When writing my own extensions, I was stymied for a while because I
> was getting errors telling me that my function was being called with
> the wrong number of arguments.  For example, I defined the following
> function to give the version number of a system:
>
> (defun version-number (systemname)
>   (asdf::component-version (asdf:find-system systemname)))
>
> If I put "{version-number cl-markdown}" in my document, I got a couple
> of errors --- the first error told me that version-number was being
> passed the wrong number of arguments.  After looking at your examples,
> I figured that I should define:
>
> (defun version-number-2 (phase systemname result)
>   (declare (ignore phase result))
>   (asdf::component-version (asdf:find-system systemname))))
>
> I then received an error that "(cl-markdown) isn't a valid system
> name."  So, I defined:
>
> (defun version-number-3 (phase systemname result)
>   (declare (ignore phase result))
>   (version-number (car systemname)))
>
> and it worked.  So, could you write something in the user guide
> explaining the proper format for extension functions?
>
> Thanks,
> Hans

--
Gary Warren King, metabang.com
Cell: (413) 885 9127
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM







More information about the Cl-markdown-devel mailing list