From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: diogofsr@gmail.com (Diogo F. S. Ramos) Newsgroups: gmane.lisp.guile.user Subject: Loading a module before and after adding a load path Date: Fri, 18 Jan 2013 13:53:42 -0200 Message-ID: <87bocmxzax.fsf@supernova.vialactea> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1358526343 31878 80.91.229.3 (18 Jan 2013 16:25:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2013 16:25:43 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 18 17:26:01 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 1TwElR-00049u-Ml for guile-user@m.gmane.org; Fri, 18 Jan 2013 17:25:57 +0100 Original-Received: from localhost ([::1]:36739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwElA-0007pq-Sc for guile-user@m.gmane.org; Fri, 18 Jan 2013 11:25:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwEl6-0007pk-Ex for guile-user@gnu.org; Fri, 18 Jan 2013 11:25:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwEl5-00048F-Fo for guile-user@gnu.org; Fri, 18 Jan 2013 11:25:36 -0500 Original-Received: from mail-ye0-f179.google.com ([209.85.213.179]:49395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwEGL-0004Hy-F8 for guile-user@gnu.org; Fri, 18 Jan 2013 10:53:49 -0500 Original-Received: by mail-ye0-f179.google.com with SMTP id m4so603492yen.10 for ; Fri, 18 Jan 2013 07:53:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=s4yd0AKlwOs62sxzYwHH6NJjeKji76u1EDvRAF2XHqg=; b=MfAMxQ0s93xryTsueU4qRRQ2DqlrovSBsuSCTGHqKIP+UgqrlAlKf49Ck4UDBukrSx uFUVx51cVQDc+QHnaOXJDipGyktaA/+MfGG215Qfj2ufHpnR5GuQZT6XaUmK1xHE9Qv6 vaQpLEPmIWvMcvMheuj9ZSPGf1l3bgeiuPEnddp8VM7Pam7qXDHY1IqYCI4Cjo/hGMrv 0iwDbnTWiXlZz4EUKaxT5fKHKecKdJZQvg+YIlZOrE0vongPS5hGtzBXJd79sA4PO03Y 65pMzpWR+pL8CeQjpMslrHu21F4BtFlE8X9jx7ogcpuBcKfAGq6tZ4owBgrUAQkGo+tI n3Uw== X-Received: by 10.236.134.18 with SMTP id r18mr10710401yhi.6.1358524428183; Fri, 18 Jan 2013 07:53:48 -0800 (PST) Original-Received: from supernova.vialactea ([187.122.90.148]) by mx.google.com with ESMTPS id l14sm4370758anm.15.2013.01.18.07.53.46 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 18 Jan 2013 07:53:47 -0800 (PST) Original-Received: from didi by supernova.vialactea with local (Exim 4.76) (envelope-from ) id 1TwEGE-0006Xd-Bd for guile-user@gnu.org; Fri, 18 Jan 2013 13:53:42 -0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.213.179 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:9880 Archived-At: 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)) 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? I'm using Guile 2.0.5.