From: Adam <cl...@da...> - 2001-12-11 14:27:08
|
I recently upgraded clisp to 2.27, from FreeBSD ports. I'm not sure the previous version, but the package was dated 2000.03.06. I'm still fairly new to lisp, so I may be missing some basic ideas here. I'm using le-sursis as an html-generating library, but with the upgrade it's failing to work. Here is the top of sursis-html.lsp: (in-package 'sursis-html :use 'common-lisp) (defpackage sursis-html (:use common-lisp) (:nicknames s-html) (:export sa-tag tag http-response html head title body p h1 h2 h3 h4 h5 h6 b i tt center blockquote pre img br hr a anchor ol ul li dl dt dd table tr td comment)) The first error I get is [22]> (load "sursis-html.lsp") *** - IN-PACKAGE: argument 'SURSIS-HTML should be a string or a symbol So I change the first line to (in-package :sursis-html :use :common-lisp) Now I get [23]> (load "sursis-html.lsp") *** - There is no package with name "SURSIS-HTML" So I move the in-package below the defpackage. Now I can load the package, and access it with explicit names, like (s-html:head), but I want it in my namespace. For some reason, using the symbol works here, but I get a big list of name conflicts: [24]> (use-package 's-html) ** - Continuable Error 35 name conflicts while executing USE-PACKAGE of (#<PACKAGE SURSIS-HTML>) into package #<PACKAGE COMMON-LISP-USER>. 1. Break [25]> which symbol with name "P" should be accessible in #<PACKAGE COMMON-LISP-USER> ? Please choose: 1 -- SURSIS-HTML 2 -- COMMON-LISP-USER >> And so on for all the exported symbols. But if I choose #2 (or run clisp again) [26]> (p) *** - EVAL: the function P is undefined [27]> p *** - EVAL: variable P has no value I looked through the changelog, but didn't find anything. Can someone enlighten me? Thanks Adam |