From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: (ice-9 syncase) Date: Tue, 05 Oct 2004 21:30:50 +0200 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1097004650.3932.144.camel@localhost> References: <1096921106.3932.139.camel@localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_fridge-17114-1097068054-0001-2" X-Trace: sea.gmane.org 1097068115 25838 80.91.229.6 (6 Oct 2004 13:08:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Oct 2004 13:08:35 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Oct 06 15:08:26 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CFBWs-0006RS-00 for ; Wed, 06 Oct 2004 15:08:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFBdZ-0000al-34 for guile-user@m.gmane.org; Wed, 06 Oct 2004 09:15:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFBdR-0000Zf-GK for guile-user@gnu.org; Wed, 06 Oct 2004 09:15:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFBdR-0000ZT-2Z for guile-user@gnu.org; Wed, 06 Oct 2004 09:15:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFBdQ-0000ZQ-UR for guile-user@gnu.org; Wed, 06 Oct 2004 09:15:12 -0400 Original-Received: from [216.166.232.203] (helo=johnson-resources.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CFBWB-00081K-Jy for guile-user@gnu.org; Wed, 06 Oct 2004 09:07:43 -0400 Original-Received: from lark ([::ffff:196.44.143.220]) (AUTH: LOGIN wingo) by johnson-resources.com with esmtp; Wed, 06 Oct 2004 09:07:31 -0400 id 001201C6.4163EE14.000042DA Original-Received: from wingo by localhost with local (Exim 3.36 #1 (Debian)) id 1CEv1k-0002Tt-00 for ; Tue, 05 Oct 2004 21:31:12 +0200 Original-To: Guile Users In-Reply-To: <1096921106.3932.139.camel@localhost> X-Mailer: Evolution 1.5.93 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3519 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3519 This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_fridge-17114-1097068054-0001-2 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Sorry to reply to my own message -- I haven't even seen the responses yet :/ On Mon, 2004-10-04 at 22:18 +0200, Andy Wingo wrote: > guile> ssax:make-parser > $1 = # > guile> (ssax:make-parser) > ERROR: invalid syntax (find k-args (DOCTYPE . default) DOCTYPE val . others) > ABORT: (misc-error) > > This same code me a more proper error about not putting the right > arguments if I put myself in the (sxml ssax) module first. It also works if I: (module-use! (current-module) (resolve-module '(sxml ssax))) Note that's the module, and not the interface. I tried exporting all bindings in (sxml ssax), but that's not enough. I suspect it has something to do with the module eval closure. In (sxml ssax), I reluctantly put this hack: (module-use! (module-public-interface (current-module)) (current-module)) So that users won't have to. I'm not happy, but it's better now. As an example, I attached a file that parses an openoffice document and outputs all words that aren't in the dictionary. Useful e.g. if you're writing a document in multiple languages. Cheers, -- Andy Wingo http://ambient.2y.net/wingo/ --=_fridge-17114-1097068054-0001-2 Content-Type: text/plain; name=sxw2words; charset=iso-8859-1 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=sxw2words IyEvdXNyL2Jpbi9ndWlsZSAtcw0KISMNCih1c2UtbW9kdWxlcyAoc3htbCBzc2F4KQ0KICAgICAg ICAgICAgIChvcyBwcm9jZXNzKQ0KICAgICAgICAgICAgIChpY2UtOSByZGVsaW0pDQogICAgICAg ICAgICAgKHNyZmkgc3JmaS0xNCkpDQoNCihvciAoPSAobGVuZ3RoIChwcm9ncmFtLWFyZ3VtZW50 cykpIDIpDQogICAgKGJlZ2luDQogICAgICAoZGlzcGxheSAidXNhZ2U6IHN4dzJ3b3JkcyBTWFct RklMRVxuIiAoY3VycmVudC1lcnJvci1wb3J0KSkNCiAgICAgIChleGl0IDEpKSkNCg0KKGRlZmlu ZSBzeHctZmlsZSAoY2FkciAocHJvZ3JhbS1hcmd1bWVudHMpKSkNCg0KKGRlZmluZSAoZ2V0LWRp Y3Qtd29yZHMpDQogIChsZXQgKChwb3J0IChvcGVuLWlucHV0LWZpbGUgIi91c3Ivc2hhcmUvZGlj dC93b3JkcyIpKSkNCiAgICAobGV0IGxwICgod29yZHMgJygpKSAobGluZSAocmVhZC1saW5lIHBv cnQpKSkNCiAgICAgIChpZiAoZW9mLW9iamVjdD8gbGluZSkNCiAgICAgICAgICAoc29ydCEgKHJl dmVyc2UhIHdvcmRzKSBzdHJpbmctY2k8PykNCiAgICAgICAgICAobHAgKGNvbnMgbGluZSB3b3Jk cykgKHJlYWQtbGluZSBwb3J0KSkpKSkpDQoNCihkZWZpbmUgKHVuaXEgbCkNCiAgKGxldCBscCAo KGxhc3Qtd29yZCAiIikgKGluIGwpIChvdXQgJygpKSkNCiAgICAoY29uZCAoKG51bGw/IGluKSAo cmV2ZXJzZSEgb3V0KSkNCiAgICAgICAgICAoKHN0cmluZy1jaT0/IGxhc3Qtd29yZCAoY2FyIGlu KSkgKGxwIGxhc3Qtd29yZCAoY2RyIGluKSBvdXQpKQ0KICAgICAgICAgIChlbHNlIChscCAoY2Fy IGluKSAoY2RyIGluKSAoY29ucyAoY2FyIGluKSBvdXQpKSkpKSkNCg0KKGRlZmluZSB0cmltLWNo YXItc2V0IChjaGFyLXNldC1jb21wbGVtZW50IGNoYXItc2V0OmxldHRlcikpDQooZGVmaW5lIChn ZXQtc3h3LXdvcmRzKQ0KICAoKHNzYXg6bWFrZS1wYXJzZXINCiAgICBORVctTEVWRUwtU0VFRCAN CiAgICAobGFtYmRhIChlbGVtLWdpIGF0dHJpYnV0ZXMgbmFtZXNwYWNlcw0KICAgICAgICAgICAg ICAgICAgICAgZXhwZWN0ZWQtY29udGVudCBzZWVkKQ0KICAgICAgc2VlZCkNCiAgICANCiAgICBG SU5JU0gtRUxFTUVOVA0KICAgIChsYW1iZGEgKGVsZW0tZ2kgYXR0cmlidXRlcyBuYW1lc3BhY2Vz IHBhcmVudC1zZWVkIHNlZWQpDQogICAgICBzZWVkKQ0KDQogICAgQ0hBUi1EQVRBLUhBTkRMRVIN CiAgICAobGFtYmRhIChzdHJpbmcxIHN0cmluZzIgc2VlZCkNCiAgICAgIChsZXQqICgoc3RycyAo bWFwDQogICAgICAgICAgICAgICAgICAgIChsYW1iZGEgKHgpIChzdHJpbmctdHJpbS1ib3RoIHgg dHJpbS1jaGFyLXNldCkpDQogICAgICAgICAgICAgICAgICAgIChyZW1vdmUhDQogICAgICAgICAg ICAgICAgICAgICBzdHJpbmctbnVsbD8gDQogICAgICAgICAgICAgICAgICAgICAoYXBwZW5kLW1h cA0KICAgICAgICAgICAgICAgICAgICAgIChsYW1iZGEgKHgpIChzdHJpbmctc3BsaXQgeCAjXHNw YWNlKSkNCiAgICAgICAgICAgICAgICAgICAgICAoc3RyaW5nLXNwbGl0IHN0cmluZzEgI1xuZXds aW5lKSkpKSkNCiAgICAgICAgICAgICAoc2VlZCAoYXBwZW5kISBzdHJzIHNlZWQpKSkNCiAgICAg ICAgKGlmIChzdHJpbmctbnVsbD8gc3RyaW5nMikgc2VlZA0KICAgICAgICAgICAgKGNvbnMgc3Ry aW5nMiBzZWVkKSkpKSkNCiAgIChjZHIgKHJ1bi13aXRoLXBpcGUgOyAiciIgZm9yIHJlYWQtb25s eQ0KICAgICAgICAgInIiICJ1bnppcCIgIi1wIiBzeHctZmlsZSAiY29udGVudC54bWwiKSkNCiAg ICcoKSkpDQoNCihsZXQgbHAgKCh3b3JkcyAodW5pcSAoc29ydCEgKGdldC1zeHctd29yZHMpIHN0 cmluZy1jaTw/KSkpDQogICAgICAgICAoZGljdC13b3JkcyAoZ2V0LWRpY3Qtd29yZHMpKQ0KICAg ICAgICAgKG91dCAnKCkpKQ0KICAoY29uZA0KICAgKChudWxsPyB3b3JkcykNCiAgICAoZm9yLWVh Y2ggKGxhbWJkYSAoeCkgKGRpc3BsYXkgeCkgKG5ld2xpbmUpKSAocmV2ZXJzZSEgb3V0KSkpDQog ICAoKHN0cmluZy1jaT0/IChjYXIgd29yZHMpIChjYXIgZGljdC13b3JkcykpDQogICAgKGxwIChj ZHIgd29yZHMpIChjZHIgZGljdC13b3Jkcykgb3V0KSkNCiAgICgoc3RyaW5nLWNpPj8gKGNhciB3 b3JkcykgKGNhciBkaWN0LXdvcmRzKSkNCiAgICAobHAgd29yZHMgKGNkciBkaWN0LXdvcmRzKSBv dXQpKQ0KICAgKGVsc2UNCiAgICAobHAgKGNkciB3b3JkcykgZGljdC13b3JkcyAoY29ucyAoY2Fy IHdvcmRzKSBvdXQpKSkpKQ0KDQo7OzsgYXJjaC10YWc6IDZjMjYxN2QzLTMyYTQtNGE0ZC04OTE0 LTQ4YzdlZTFiNWFkOA0K --=_fridge-17114-1097068054-0001-2 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user --=_fridge-17114-1097068054-0001-2--