/cl-pdf.arglists

Better Arglists (for cl-pdf) Through Introspection

Primary LanguageCommon Lisp

cl-pdf.arglists

What is it

cl-pdf.arglists is a simple little library to improve the arglist display of cl-pdf and cl-typesetting macros in, for example, slime. It adds display of keywords from methods on #’initialize-instance, as well as object initargs, to macros which just forward a &rest argument to make-instance.

No more wondering what keyword arguments are appropriate in each macro or perusing the source in an attempt to find out.

Now if only cl-pdf and cl-typesetting had actual documentation. :)

Requirements

cl-pdf.arglists requires a small set of additional libraries:

  • alexandria
  • closer-mop
  • cl-pdf
  • cl-typesetting

Downloading

Cloning via git is relatively easy.

git clone https://github.com/pinterface/cl-pdf.arglists.git

Installation

I assume you already know how to ensure ASDF can find it.

Usage

Load via ASDF. Enjoy the more useful arglists.

Limitations

cl-pdf.arglists currently only provides nicer arglists for SBCL and clisp. Patches for other implementations are welcome. (see #p”arglists.lisp”)