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: PHP to GUILE Date: Mon, 26 Sep 2005 20:57:07 +0300 Message-ID: <38294b7405092610574c337f8e@mail.gmail.com> References: <6efab235050925145055ba774c@mail.gmail.com> <87ll1k61w4.fsf@zip.com.au> <38294b7405092600273de6d37f@mail.gmail.com> <6efab23505092601173a0b89b5@mail.gmail.com> 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 1127758737 26603 80.91.229.2 (26 Sep 2005 18:18:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2005 18:18:57 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Sep 26 20:18:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EJxWr-0005nB-Vu for guile-user@m.gmane.org; Mon, 26 Sep 2005 20:16:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EJxWp-0001fh-3D for guile-user@m.gmane.org; Mon, 26 Sep 2005 14:16:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EJxRI-0007td-Od for guile-user@gnu.org; Mon, 26 Sep 2005 14:10:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EJxRH-0007sE-2H for guile-user@gnu.org; Mon, 26 Sep 2005 14:10:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EJxLs-0006ZQ-Vs for guile-user@gnu.org; Mon, 26 Sep 2005 14:05:21 -0400 Original-Received: from [72.14.204.207] (helo=qproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EJxDx-0004ku-7Z for guile-user@gnu.org; Mon, 26 Sep 2005 13:57:09 -0400 Original-Received: by qproxy.gmail.com with SMTP id e12so454070qbe for ; Mon, 26 Sep 2005 10:57:07 -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=mdqbSbBzWq0O8oxRtLKi2YFcnHcb5qiCbTydQhdWgZyg3/C84cv0MiNVTzogmkZ97g1T9bwU2JxEVUiS+IEO48RoSv43fzdMVp93DCUwU7rLT1DtO9a1svDEPwW7NN+1jx+ws5vtzYEdGnX3bzY4OU/uehlUP4HfTE2oJ/HYiAA= Original-Received: by 10.65.84.5 with SMTP id m5mr537057qbl; Mon, 26 Sep 2005 10:57:07 -0700 (PDT) Original-Received: by 10.65.97.20 with HTTP; Mon, 26 Sep 2005 10:57:07 -0700 (PDT) Original-To: Vorfeed Canal In-Reply-To: <6efab23505092601173a0b89b5@mail.gmail.com> 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:4776 Archived-At: Hello, > > Yeah! and you can have a look at the source code of xchat-guile to > > see how exactly thats done: > > http://piipiip.net/~zeenix/xchat-guile-0.2.tar.gz > > I took a look. Conclusion: it's a mess. Your conclusion is based on your ignorance. > Why? Easy: guile.so is installed in /usr/lib/xchat/plugins while > plugin-system.scm in installed iin /usr/share/guile/site/xchat-guile. > Ok, if it's in /usr/share/guile/site/xchat-guile then it's guile > extension, right ? Sorry, but no: > guile> (use-modules (xchat-guile plugin-system)) > > Backtrace: Please at least read the log yourself first, it's not (xchat-guile plugin-system) that guile is unable to find but the xchat's main module that is defined inside the xchat plugin, writen in C. > And in this case it's easy to move plugin-system.scm to > /usr/lib/xchat/plugins (where it belongs) since guile DOES have > adjustable %load-path . GUILE does NOT have something similar for > native libraries. That's the problem. > plugin-system is NOT an xchat plugin but a guile module that the xchat-guile plugin uses. Since it's a guile module, IMHO it doesn't belong in directory for xchat plugins. Two more points: 1. I forgot that xchat-guile doesn't load the plugins as modules anymore, so i am really sorry for directing you to a wrong turn. 2. Since guile doesn't allow you to 'unplug' modules on the run, I had to do some trick to make it work, which makes it a bit complicated, but it's not a mess. :) -- Regards, Zeeshan Ali _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user