From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Thomas Morley Newsgroups: gmane.lisp.guile.user Subject: Re: What's up with 'current-load-port' Date: Tue, 6 Nov 2018 00:37:21 +0100 Message-ID: References: <87a7momh8c.fsf@netris.org> <87woprzv90.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1541460965 16085 195.159.176.226 (5 Nov 2018 23:36:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2018 23:36:05 +0000 (UTC) Cc: guile-user@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Nov 06 00:36:01 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJoPZ-00046C-2e for guile-user@m.gmane.org; Tue, 06 Nov 2018 00:36:01 +0100 Original-Received: from localhost ([::1]:38151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJoRf-00036h-E6 for guile-user@m.gmane.org; Mon, 05 Nov 2018 18:38:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJoRG-00036V-V6 for guile-user@gnu.org; Mon, 05 Nov 2018 18:37:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJoRG-00029F-4J for guile-user@gnu.org; Mon, 05 Nov 2018 18:37:46 -0500 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:46344) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJoRA-00023N-RQ; Mon, 05 Nov 2018 18:37:42 -0500 Original-Received: by mail-wr1-x430.google.com with SMTP id 74-v6so11423514wrb.13; Mon, 05 Nov 2018 15:37:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=NKFXlYhCFLKD5u5ovszA1gZfBQBIEMA+NPuDlaX9J6A=; b=f1N8R8HgEY5KrXoWi2xM2/TG5ALs2/WQSOazWtw1cwBNC9Fl7dXm+L9M7CCSaE7+9K uJlQqkdVruleiiBAjVmg5NZ18YgymRpELt95+S9P/KWz6Qbjepa+KenAwetdww5taQPI DhmL5dzC/fQnheIuCRyCJmkcWzYISaS5uBNlXOIP6Y0/xxk3DYzzv7nFcnnoHxZroQe5 RD0x+4Mw9X2RDbLH3K78NM0R2gy86OFMLq1fgIKBpPtbLPIUCLapa31xjh6xj1EG5IJx 96htlTxqgT82xUNS7hkT64T4wLpeRV3rc4bIQqk1DZGlLCYUJsAICUfuNbB2oErgFY4A 9VSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=NKFXlYhCFLKD5u5ovszA1gZfBQBIEMA+NPuDlaX9J6A=; b=Uhwfit5+IswP1+j0R6qsWvPklU6vfNcVXvW29q9LzEYasJWDo6xQgOuzT2EfX7zMkd IruSKTal689oDz0kh9unlDH866AOrzsNKMi4N1b0ElWO4CrT/Q67Se/duHlJdSnHPEcK FviXJ50CVJ2HWZ5x76kG5ebjPp79kRDwUtyvQQ0Yg/wX7xYodDead7Wa/A+rOxjKZ+Gl ziPxACyXvnK4r8bOtL2T+33INhwWrCZTWqCmncf3JwGCh5HVnEGQs1OOwS0JQaALgNAF rc1QngRpCttj7xSqoZhM3Cr8x4U5iPgr52s+/FbV90ecMlZiWDOfsiOLW3IPqMQE/z4R gdvw== X-Gm-Message-State: AGRZ1gIKvRi/ut25X4vtvfTq0Q9slvZs9EQOKRZc99wKf4/gasMQAQ8I jzc8G8BvAym02qJOAtyKZ4O8Si6+U3KvbMZsWR1YQZYo X-Google-Smtp-Source: AJdET5eTaIxYfRaL8ydY3PAxdAlTfNtZ0zaCUPq8cmQjIHJYWDVsGLIMngZaqQrshUMwB7QsGGr4Vfwdj7G0NcSX4bs= X-Received: by 2002:adf:c7d1:: with SMTP id y17-v6mr21131191wrg.230.1541461057197; Mon, 05 Nov 2018 15:37:37 -0800 (PST) In-Reply-To: <87woprzv90.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::430 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.user:14967 Archived-At: Am Mo., 5. Nov. 2018 um 11:38 Uhr schrieb Ludovic Court=C3=A8s : > > Hi Thomas, > > Thomas Morley skribis: > > > Recently a user wrote a large scm-file and put it into lilypond using > > '(load file.scm)'. > > No problem with guilev1, but with guilev2 'file.scm' is not found. > > In Guile 2.x, there=E2=80=99s a compilation step that did not exist in 1.= 8, so > the question of how to resolve relative file names passed to =E2=80=98loa= d=E2=80=99 > becomes trickier. > > What Guile 2.x does is that =E2=80=98load=E2=80=99 is now a macro that at= tempts to > resolve file names relative to the location of the *source* file. So if > you have a.scm and b.scm in the same directory, and a.scm does: > > (load "./b.scm") > > then b.scm is searched for in the same directory as a.scm. > > Of course if you use an absolute file name, that logic doesn=E2=80=99t co= me into > play. > > I would recommend using modules to the extent possible, or using things > like: > > (search-path %load-path "file.scm") > > when you want to search for a file at run time. > > HTH! > > Ludo=E2=80=99. Hi Ludo, thanks for all the hints. Not sure I can work on it before next weekend, though :( Many thanks, Harm