From gwking at metabang.com Tue Feb 3 12:36:20 2009 From: gwking at metabang.com (Gary King) Date: Tue, 3 Feb 2009 07:36:20 -0500 Subject: [cl-typesetting-devel] [Sbcl-help] cl-typesetting strangeness In-Reply-To: <20090202215021.GA11246@localhost> References: <20090202215021.GA11246@localhost> Message-ID: <0AF5399D-B78C-4984-8BB1-81C791F6EE01@metabang.com> 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 >... (:h-align ...) ...) and isn't accessible in my-package, then the compiler will think that is a function and evaluate its arguments _before_ it checks that 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 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" 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