From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: Module unloading Date: Thu, 26 May 2005 19:33:40 +0100 Message-ID: <42961684.3000802@ossau.uklinux.net> References: <38294b74050523070378b75caf@mail.gmail.com> <42921E8E.7060503@ossau.uklinux.net> <38294b74050523135563afe3dc@mail.gmail.com> <429249E3.1050604@ossau.uklinux.net> <38294b7405052406021c0ec40f@mail.gmail.com> <42936F3C.3090409@ossau.uklinux.net> <38294b7405052414062801ceba@mail.gmail.com> <38294b7405052414266f95d20a@mail.gmail.com> <38294b7405052605163f3505df@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1117133126 11870 80.91.229.2 (26 May 2005 18:45:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 May 2005 18:45:26 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu May 26 20:45:23 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DbNJw-0005C9-4m for guile-user@m.gmane.org; Thu, 26 May 2005 20:43:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbNO3-0005lj-9o for guile-user@m.gmane.org; Thu, 26 May 2005 14:47:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DbNMC-000503-TK for guile-user@gnu.org; Thu, 26 May 2005 14:45:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DbNM7-0004wz-Vx for guile-user@gnu.org; Thu, 26 May 2005 14:45:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbNM7-0004uI-FF for guile-user@gnu.org; Thu, 26 May 2005 14:45:19 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DbNBZ-00011j-Lq for guile-user@gnu.org; Thu, 26 May 2005 14:34:25 -0400 Original-Received: from laruns (host81-130-111-97.in-addr.btopenworld.com [81.130.111.97]) by mail3.uklinux.net (Postfix) with ESMTP id D3104409FB6; Thu, 26 May 2005 18:33:42 +0000 (UTC) Original-Received: from [127.0.0.1] (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id 286EE6F784; Thu, 26 May 2005 19:33:41 +0100 (BST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1 X-Accept-Language: en Original-To: Zeeshan Ali In-Reply-To: <38294b7405052605163f3505df@mail.gmail.com> 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: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:4592 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4592 Zeeshan Ali wrote: > Hello Neil, > I must remind you that i am anxiously waiting for more input on > this mater from you. Moreover, i tried to implement what you > recommended but i think i am in a problem: Since the loaded module > doesn't have access to binding of it's parent module (the module that > 'uses' it), it is unable to access the 'xchat-register-plugin' > procedure that is defined in the parent module. Do you have a solution > for this in mind as well, or i took you all wrong. Yes. This is covered in general terms by the comments in my earlier email today, but for the specific problem you describe, all you need to do is: - export `xchat-register-plugin' from your main infrastructure module, which let's say is (xchat main) - document that plugin authors need to write `(use-modules (xchat main))' at the start of their plugin code. Hope this makes sense ... Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user