[cl-typesetting-devel] [Sbcl-help] cl-typesetting strangeness
Gary King
gwking at metabang.com
Tue Feb 3 12:36:20 UTC 2009
Hi David,
(I've cross posted this to c-lypesetting-devel).
From the error, I'm guessing it's a package thing. If you have code
like
(in-package <my-package)
...
(<some cl-typesetting macro>>... (:h-align ...) ...)
and <some cl-typesetting macro> isn't accessible in my-package, then
the compiler will think that <some cl-typesetting macro> is a function
and evaluate its arguments _before_ it checks that <some cl-
typesetting macro> is even defined. When it gets to (:h-align ...), it
will think that it is also a function and try to do something with it.
Sadly, :h-align isn't a function and so you get the error.
The first thing to do is to check if <some cl-typesetting macro> is
accessible.
HTH,
On Feb 2, 2009, at 4:50 PM, David Creelman wrote:
> Hi,
>
> I'm trying to write a utility to print calendars using cl-typesetting.
>
> I'm using SBCL and I get this error when I try to create a paragraph
> in my code
>
> * (calendar-print::hello)
>
> debugger invoked on a UNDEFINED-FUNCTION in thread #<THREAD "initial
> thread" RUNNING {A834711}>: The function :H-ALIGN is undefined.
>
> Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
>
> restarts (invokable by number or by possibly-abbreviated name):
> 0: [ABORT] Exit debugger, returning to top level.
>
> ("bogus stack frame")
>
>
> I've done (require 'cl-typesetting) before calling hello. hello is
> simply a
> copy of hello from cl-typesettings demo file test.lisp. I have a
> (use-package
> typeset) above the hello code.
>
> I'm guessing the problem is something to do with the accessor for
> the style.
> Why can't this be seen by SBCL in my module when it can be seen in
> the test
> module of cl-typesetting?
>
> My apologies if this is a bit off topic for questions on SBCL.
>
> Any ideas what I'm doing wrong?
>
> Regards
> David
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills
> and code to
> build responsive, highly engaging applications that combine the
> power of local
> resources and data with the reach of the web. Download the Adobe AIR
> SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Sbcl-help mailing list
> Sbcl-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sbcl-help
--
Gary Warren King, metabang.com
Cell: (413) 559 8738
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM * gwking on twitter
More information about the cl-typesetting-devel
mailing list