From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: Loading a module before and after adding a load path Date: Sat, 19 Jan 2013 11:17:47 +0800 Organization: HFG Message-ID: <1358565467.2720.35.camel@Renee-desktop.suse> References: <87bocmxzax.fsf@supernova.vialactea> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358565486 23538 80.91.229.3 (19 Jan 2013 03:18:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2013 03:18:06 +0000 (UTC) Cc: guile-user@gnu.org To: "Diogo F. S. Ramos" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 19 04:18:24 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TwOwm-0000WJ-T1 for guile-user@m.gmane.org; Sat, 19 Jan 2013 04:18:21 +0100 Original-Received: from localhost ([::1]:48929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwOwV-0004eR-Rl for guile-user@m.gmane.org; Fri, 18 Jan 2013 22:18:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwOwQ-0004eJ-RX for guile-user@gnu.org; Fri, 18 Jan 2013 22:18:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwOwP-0002Xn-SJ for guile-user@gnu.org; Fri, 18 Jan 2013 22:17:58 -0500 Original-Received: from mail-da0-f51.google.com ([209.85.210.51]:61302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwOwP-0002XV-Ib for guile-user@gnu.org; Fri, 18 Jan 2013 22:17:57 -0500 Original-Received: by mail-da0-f51.google.com with SMTP id i30so1892819dad.24 for ; Fri, 18 Jan 2013 19:17:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:cc:date:in-reply-to :references:organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=L7ka4yASjP5TP/P4awKen7j89hbyTpHOle4GixwjAbU=; b=ly59nkToOrXC+SMtp68PCvMIP8NkW1Rx1jXfg1THEWqWord9AmRMNXI1lwLwrn8qtR 5j7Xwtj8KtLmpmt2EFTrjEd1YEoiAmwutN+fV4dV40qs7mzWB/r3nsSqxZkGkGNSGiA1 81lf1WuQZGSRmZ32GNA4+/SImWgBydiqREoHnsSL4ITOokD7chuljhjBfBntoVEvx8c0 R6ub4NYWZorFY8f3qepatIEGA7hkrJoIwRf81cVGwXKgAO7Wh52oy9FTyFFQtvK++b3h 0WK+AJFAt037ENuDCYEkzzW+bfDY0MFAJ0BNL4Nsgdnna8IPWb7t/ARdqev8W1orpbPk UnpA== X-Received: by 10.66.76.42 with SMTP id h10mr29041269paw.59.1358565475992; Fri, 18 Jan 2013 19:17:55 -0800 (PST) Original-Received: from [192.168.100.104] ([183.13.175.98]) by mx.google.com with ESMTPS id pm8sm4180933pbb.29.2013.01.18.19.17.50 (version=SSLv3 cipher=RC4-SHA bits=128/128); Fri, 18 Jan 2013 19:17:54 -0800 (PST) In-Reply-To: <87bocmxzax.fsf@supernova.vialactea> X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.51 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9884 Archived-At: On Fri, 2013-01-18 at 13:53 -0200, Diogo F. S. Ramos wrote: > I have a module at `/path/to/foo'. > > If I open a guile REPL and type: > > (add-to-load-path "/path/to/foo") > (use-modules (foo bar)) > > everything works. But, if I type: > > (use-modules (foo bar)) > (add-to-load-path "/path/to/foo") > (use-modules (foo bar)) > For the code you give, you should use the module after add its path, or it can't be found anywhere. > I get the same error I've got by using a module before adding the path: > > ERROR: no code for module (foo bar) > > How can I load a module if I tried loading it before adding the path? > It seems violate the logic, how can you load a module before give its position to interpreter? Why you need to load the module without giving its path? If you want to refresh a loaded module, you may try reload-module. > I'm using Guile 2.0.5. > hi Ramos! I'm not sure what you need. You want to load a module before adding its path? If you