From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zeeshan Ali Newsgroups: gmane.lisp.guile.user Subject: Re: Module unloading Date: Fri, 27 May 2005 01:00:41 +0500 Message-ID: <38294b740505261300324ed650@mail.gmail.com> 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> <42961684.3000802@ossau.uklinux.net> Reply-To: Zeeshan Ali NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1117138073 29411 80.91.229.2 (26 May 2005 20:07:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 May 2005 20:07:53 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu May 26 22:07:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DbOcJ-0007Xr-50 for guile-user@m.gmane.org; Thu, 26 May 2005 22:06:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbOgR-0003px-4g for guile-user@m.gmane.org; Thu, 26 May 2005 16:10:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DbOeJ-0002uf-VR for guile-user@gnu.org; Thu, 26 May 2005 16:08:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DbOeG-0002so-Lg for guile-user@gnu.org; Thu, 26 May 2005 16:08:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DbOeG-0002oo-24 for guile-user@gnu.org; Thu, 26 May 2005 16:08:08 -0400 Original-Received: from [64.233.170.196] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DbOXk-0008Ht-GM for guile-user@gnu.org; Thu, 26 May 2005 16:01:24 -0400 Original-Received: by rproxy.gmail.com with SMTP id y7so244480rne for ; Thu, 26 May 2005 13:00:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TSSgiSIj0982ITNp7Qf3NMNf1KGqZ0qa1Jfd3/0S0nItxJNp8HmoWwBxy3ircvukmu+Uot/C/vQLYUffy4wE3/15OuOgW8/i1GFPAQYMaynJUK0K1VamjtwUYElk/PlgK/iAyhADMi6+Ilj4fOfCZvUJwDF84kzqVpPJxoLhXaA= Original-Received: by 10.38.11.27 with SMTP id 27mr613073rnk; Thu, 26 May 2005 13:00:41 -0700 (PDT) Original-Received: by 10.38.89.43 with HTTP; Thu, 26 May 2005 13:00:41 -0700 (PDT) Original-To: Neil Jerram In-Reply-To: <42961684.3000802@ossau.uklinux.net> Content-Disposition: inline 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:4600 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4600 Hello, > 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: >=20 > - export `xchat-register-plugin' from your main infrastructure module, > which let's say is (xchat main) >=20 > - document that plugin authors need to write `(use-modules (xchat > main))' at the start of their plugin code. Yes, Rob suggested this method on IRC this evening, but it seems to further complicate the maters as i was trying to unref one module reference and this way i'll get two to worry about. One thing that i found out is that module can't really be unloaded. E.g if i load a module (either using use-modules or resolve-module), unload/unuse it (using the code you showed me), edit the module and then load it again, i don't get my changes; instead the same old version of module get's loaded, which means the module didn't get unloaded. Regards, Zeeshan Ali _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user