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: Re: Loading a module before and after adding a load path Date: Fri, 18 Jan 2013 16:17:42 -0200 Message-ID: <874niexsmx.fsf@supernova.vialactea> 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: quoted-printable X-Trace: ger.gmane.org 1358533073 1708 80.91.229.3 (18 Jan 2013 18:17:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2013 18:17:53 +0000 (UTC) Cc: guile-user@gnu.org To: Yanbin Zhang Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 18 19:18:11 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 1TwGW3-0001TW-DO for guile-user@m.gmane.org; Fri, 18 Jan 2013 19:18:11 +0100 Original-Received: from localhost ([::1]:37395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwGVl-0000LZ-HD for guile-user@m.gmane.org; Fri, 18 Jan 2013 13:17:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwGVh-0000KC-3Q for guile-user@gnu.org; Fri, 18 Jan 2013 13:17:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwGVf-00007b-V0 for guile-user@gnu.org; Fri, 18 Jan 2013 13:17:49 -0500 Original-Received: from mail-ye0-f178.google.com ([209.85.213.178]:36350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwGVf-00007X-QV for guile-user@gnu.org; Fri, 18 Jan 2013 13:17:47 -0500 Original-Received: by mail-ye0-f178.google.com with SMTP id j12so625586yeg.23 for ; Fri, 18 Jan 2013 10:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=x6ftqcYgIjqc0YSVuDgwMfkBMqJU0Kh2+MEutVLqpCA=; b=EVhq5PQlqgL8+okVsdLSf3c2tuXR8oJa+2d/3+2teR6jBihH34WF0AdH74oW0skifP xiz1Jmo5o2TUvoFhYOKkWOh953cgpjIJHtNTXlH2pDUNjyQrFYRiNZxVg/6Sd1eeS2hv OXDzmln4MDxrl7ppIazvBltzYOQumTlTKoX3qagADxSysf7TRQEZckTbCteFH+/1grEN lbsedb8WwG3UyY73IS1Vwp/pC9waRE6C5eXLRc/DZGPC1xFtxStk4bwd66o7wC+kgRX1 IdR8sy6VGmxTgul/tvaWuthlQzhY9pd9lCmq+Z8fhoGbpTeJE8knrwqdCUXBHMvjk+1D 2tBA== X-Received: by 10.236.125.110 with SMTP id y74mr10959357yhh.19.1358533067485; Fri, 18 Jan 2013 10:17:47 -0800 (PST) Original-Received: from supernova.vialactea ([187.122.90.148]) by mx.google.com with ESMTPS id n12sm4706022ani.7.2013.01.18.10.17.45 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 18 Jan 2013 10:17:46 -0800 (PST) Original-Received: from didi by supernova.vialactea with local (Exim 4.76) (envelope-from ) id 1TwGVa-0007NM-Fd; Fri, 18 Jan 2013 16:17:42 -0200 In-Reply-To: (Yanbin Zhang's message of "Fri, 18 Jan 2013 11:44:26 -0600") 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.178 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:9882 Archived-At: Yanbin Zhang writes: > Hi, > > I guess you need to tell GUILE where to find your module before you can l= oad it. GUILE has some standard places where it will look for modules. If y= our module is not there, then you need to add the path so > that GUILE can find it. There are several ways to do this. One is to use = "add-to-load-path" as you did. Another would be setting up some environment= variable so that a certain path is added. You can find > more detailed information in the manual.=C2=A0 Thank you. But can't I recover from a previous `use-modules' that I evaluated before adding the module's path to `%load-path'? In an interactive session I make this error sometimes and up until now I've been restarting the REPL. Unfortunately this makes me lose the state that I was in.