GNU bug report logs - #23739
Unexpected behavior of 'add-to-load-path'.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Mathieu Lirzin <mthl@HIDDEN>; dated Fri, 10 Jun 2016 12:18:01 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 23739 <at> debbugs.gnu.org:


Received: (at 23739) by debbugs.gnu.org; 11 Jul 2016 09:36:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 11 05:36:12 2016
Received: from localhost ([127.0.0.1]:45976 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bMXdM-00031u-1c
	for submit <at> debbugs.gnu.org; Mon, 11 Jul 2016 05:36:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34487)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mthl@HIDDEN>) id 1bMXdJ-00031j-Qx
 for 23739 <at> debbugs.gnu.org; Mon, 11 Jul 2016 05:36:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mthl@HIDDEN>) id 1bMXd9-0007iq-S0
 for 23739 <at> debbugs.gnu.org; Mon, 11 Jul 2016 05:36:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43804)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mthl@HIDDEN>)
 id 1bMXcv-0007hq-0Z; Mon, 11 Jul 2016 05:35:45 -0400
Received: from arennes-653-1-368-199.w109-218.abo.wanadoo.fr
 ([109.218.199.199]:38526 helo=godel)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <mthl@HIDDEN>)
 id 1bMXct-0003oP-1v; Mon, 11 Jul 2016 05:35:43 -0400
From: Mathieu Lirzin <mthl@HIDDEN>
To: Alex Kost <alezost@HIDDEN>
Subject: Re: bug#23739: Unexpected behavior of 'add-to-load-path'.
References: <878tydck6k.fsf@HIDDEN> <20160610134143.GA8848@HIDDEN>
 <874m91cbrt.fsf@HIDDEN> <871t30r47u.fsf@HIDDEN>
Date: Mon, 11 Jul 2016 11:35:40 +0200
In-Reply-To: <871t30r47u.fsf@HIDDEN> (Alex Kost's message of "Mon, 11 Jul
 2016 11:03:49 +0300")
Message-ID: <87oa64o6tv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -6.3 (------)
X-Debbugs-Envelope-To: 23739
Cc: tomas@HIDDEN, 23739 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.3 (------)

Alex Kost <alezost@HIDDEN> writes:

> Mathieu Lirzin (2016-06-10 18:19 +0300) wrote:
>
>> <tomas@HIDDEN> writes:
> [...]
>>> I mean: the double entry "foo" for %load-path in your first result
>>> above doesn't happen for me. Could that be a typo?
>>
>> My report was partially correct indeed.  There are two added entries in
>> =E2=80=98%load-path=E2=80=99 with Guile from Debian testing:
>
> This relates to <https://bugs.gnu.org/18127>.  The commit Ian mentioned w=
as:
> <http://git.savannah.gnu.org/cgit/guile.git/commit/?id=3D8857e271d8106238=
68509f837d17613195f6528c>

OK, so the only remaining issue is the 'auto-compile' part.

Thanks for the information.

--=20
Mathieu Lirzin




Information forwarded to bug-guile@HIDDEN:
bug#23739; Package guile. Full text available.

Message received at 23739 <at> debbugs.gnu.org:


Received: (at 23739) by debbugs.gnu.org; 11 Jul 2016 08:03:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 11 04:03:59 2016
Received: from localhost ([127.0.0.1]:45942 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bMWC6-0000gQ-S6
	for submit <at> debbugs.gnu.org; Mon, 11 Jul 2016 04:03:59 -0400
Received: from mail-lf0-f51.google.com ([209.85.215.51]:34687)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alezost@HIDDEN>) id 1bMWC5-0000gE-0e
 for 23739 <at> debbugs.gnu.org; Mon, 11 Jul 2016 04:03:57 -0400
Received: by mail-lf0-f51.google.com with SMTP id h129so64562764lfh.1
 for <23739 <at> debbugs.gnu.org>; Mon, 11 Jul 2016 01:03:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=IdGmdSq4q6B2jzFCUGmjGqGq3A84a0M5OnWUy5D0A+A=;
 b=ntfviqlGudnOrwU4KXQPfnz1na+tLXKP9FtZLPYNHZJPQV7rT6XRZZrNY6BGIxpG18
 QPpwJNDb82eyZYJqlR6zv6PxWRwybclsvsIchrV41IltGLFC2bfVWrLHrDfJ9EnPQ5re
 3LZ4YnYAqOVrH36jwXBscNSXHTKXBG1+TQGqIKOrjevCN0fYIRDDOdAIe+4BbHy+/Gw+
 lyKEGEASWzUtsvFaYqVtYeOLcCUGdjJLhPlHe89qV+mNwMHcDIu2ceXoFJhPchpcCQUn
 WSBAbdqiNxGUUUwq55o5otcd+4lDCDr/heHh4xOhPOMxrrmoA1lf0UOv+rcIzuikFgbq
 8wfw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=IdGmdSq4q6B2jzFCUGmjGqGq3A84a0M5OnWUy5D0A+A=;
 b=d+hg9A4s+e0y2bhOJV8QDO4dD1aiwnMRDMUy8IrkwHXzyGcGc3CjhrdLMzTJib/ZO1
 BxCR1BjqvkaDggouZ2X1g19mVUf9T7uvKpsL/GjfqoiQyADcq/mOEO9UuLrg0BVZZn6p
 o9AxGrmEG9dtF99m8JrNkQejkYeZ3wwbqOaoRlmYe/rGypoT00jUCeYoeXJaJUInQgWR
 F18CJOuGEqJZQR0ql/V6s5OMnMwdDDfKmgUsH3GwNK/5B/xrqggUOeTTLRhL8sYchyvs
 DzvURwaXgqILrGpyjEBjlZi3Imswf7hBb9hmA/EwZHOikTgPbLvwEuBy4ByK71Al9RVD
 BgTQ==
X-Gm-Message-State: ALyK8tJ+BU7SjMZJYErNBTLg1+b/u2kPxjAWcdH6ykLT7hRwN6DZcIQd3aL7dqq5fRyRDQ==
X-Received: by 10.25.19.96 with SMTP id j93mr3028136lfi.13.1468224231100;
 Mon, 11 Jul 2016 01:03:51 -0700 (PDT)
Received: from leviafan ([217.107.192.156])
 by smtp.gmail.com with ESMTPSA id 63sm4107355ljb.48.2016.07.11.01.03.50
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 11 Jul 2016 01:03:50 -0700 (PDT)
From: Alex Kost <alezost@HIDDEN>
To: Mathieu Lirzin <mthl@HIDDEN>
Subject: Re: bug#23739: Unexpected behavior of 'add-to-load-path'.
References: <878tydck6k.fsf@HIDDEN> <20160610134143.GA8848@HIDDEN>
 <874m91cbrt.fsf@HIDDEN>
Date: Mon, 11 Jul 2016 11:03:49 +0300
In-Reply-To: <874m91cbrt.fsf@HIDDEN> (Mathieu Lirzin's message of "Fri, 10
 Jun 2016 17:19:02 +0200")
Message-ID: <871t30r47u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 23739
Cc: tomas@HIDDEN, 23739 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Mathieu Lirzin (2016-06-10 18:19 +0300) wrote:

> <tomas@HIDDEN> writes:
[...]
>> I mean: the double entry "foo" for %load-path in your first result
>> above doesn't happen for me. Could that be a typo?
>
> My report was partially correct indeed.  There are two added entries in
> =E2=80=98%load-path=E2=80=99 with Guile from Debian testing:

This relates to <https://bugs.gnu.org/18127>.  The commit Ian mentioned was:
<http://git.savannah.gnu.org/cgit/guile.git/commit/?id=3D8857e271d810623868=
509f837d17613195f6528c>

--=20
Alex




Information forwarded to bug-guile@HIDDEN:
bug#23739; Package guile. Full text available.

Message received at 23739 <at> debbugs.gnu.org:


Received: (at 23739) by debbugs.gnu.org; 10 Jun 2016 15:19:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 10 11:19:34 2016
Received: from localhost ([127.0.0.1]:36154 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bBODe-00038A-FU
	for submit <at> debbugs.gnu.org; Fri, 10 Jun 2016 11:19:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49116)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mthl@HIDDEN>) id 1bBODc-00037c-IZ
 for 23739 <at> debbugs.gnu.org; Fri, 10 Jun 2016 11:19:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mthl@HIDDEN>) id 1bBODD-0004K9-1i
 for 23739 <at> debbugs.gnu.org; Fri, 10 Jun 2016 11:19:27 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60019)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mthl@HIDDEN>)
 id 1bBODC-0004Ik-V9; Fri, 10 Jun 2016 11:19:06 -0400
Received: from mek33-4-82-236-46-88.fbx.proxad.net ([82.236.46.88]:38988
 helo=godel)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <mthl@HIDDEN>)
 id 1bBODB-000138-7t; Fri, 10 Jun 2016 11:19:05 -0400
From: Mathieu Lirzin <mthl@HIDDEN>
To: <tomas@HIDDEN>
Subject: Re: bug#23739: Unexpected behavior of 'add-to-load-path'.
References: <878tydck6k.fsf@HIDDEN> <20160610134143.GA8848@HIDDEN>
Date: Fri, 10 Jun 2016 17:19:02 +0200
In-Reply-To: <20160610134143.GA8848@HIDDEN> (tomas@HIDDEN's message of
 "Fri, 10 Jun 2016 15:41:43 +0200")
Message-ID: <874m91cbrt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 23739
Cc: 23739 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.4 (------)

<tomas@HIDDEN> writes:

> On Fri, Jun 10, 2016 at 02:17:23PM +0200, Mathieu Lirzin wrote:
>> Hello,
>>=20
>> I have noticed something that doesn't feel right when using
>> =E2=80=98add-to-load-path=E2=80=99.
>>=20
>> $ cat test.scm
>> --8<---------------cut here---------------start------------->8---
>> (define old %load-path)
>> (add-to-load-path "foo")
>> (pk %load-path)
>> (pk old)
>> --8<---------------cut here---------------end--------------->8---
>>=20
>> first run:
>>=20
>> $ guile test.scm
>> --8<---------------cut here---------------start------------->8---
>> ;;; [Compilation]
>> ;;; (("foo" "foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/u=
sr/share/guile/site" "/usr/share/guile"))
>>=20
>> ;;; (("foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/sha=
re/guile/site" "/usr/share/guile"))
>> --8<---------------cut here---------------end--------------->8---
>>=20
>> next runs:
>>=20
>> $ guile test.scm
>> --8<---------------cut here---------------start------------->8---
>> ;;; (("foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/sha=
re/guile/site" "/usr/share/guile"))
>>=20
>> ;;; (("/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/gui=
le/site" "/usr/share/guile"))
>> --8<---------------cut here---------------end--------------->8---
>
> I can confirm half of it :-)
>
> I mean: the double entry "foo" for %load-path in your first result
> above doesn't happen for me. Could that be a typo?

My report was partially correct indeed.  There are two added entries in
=E2=80=98%load-path=E2=80=99 with Guile from Debian testing:

$ guile --version
guile (GNU Guile) 2.0.11
Packaged by Debian (2.0.11-deb+1-10+b1)
Copyright (C) 2014 Free Software Foundation, Inc.

but only one with guile master:

$ meta/guile --version
guile (GNU Guile) 2.1.2.191-6788f
Copyright (C) 2016 Free Software Foundation, Inc

> As for the strangely different behaviour when running pre-compiled
> (old has %load-path's old value) and compiling (old has %load-path's
> value after (add-to-load-path ...) yes, that happens to me too, on
>
>   tomas@rasputin:/tmp$ guile --version
>   guile (GNU Guile) 2.0.11.133-d680
>   Copyright (C) 2014 Free Software Foundation, Inc.
>
> Looks like a bug to me.

Thanks for your answer.

--=20
Mathieu Lirzin




Information forwarded to bug-guile@HIDDEN:
bug#23739; Package guile. Full text available.

Message received at 23739 <at> debbugs.gnu.org:


Received: (at 23739) by debbugs.gnu.org; 10 Jun 2016 13:41:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 10 09:41:50 2016
Received: from localhost ([127.0.0.1]:35241 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bBMh4-0000Wk-0f
	for submit <at> debbugs.gnu.org; Fri, 10 Jun 2016 09:41:50 -0400
Received: from mail.tuxteam.de ([5.199.139.25]:46539 helo=tomasium.tuxteam.de)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tomas@HIDDEN>) id 1bBMh2-0000Wb-Rv
 for 23739 <at> debbugs.gnu.org; Fri, 10 Jun 2016 09:41:49 -0400
Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80)
 (envelope-from <tomas@HIDDEN>)
 id 1bBMgx-0002OM-T9; Fri, 10 Jun 2016 15:41:43 +0200
Date: Fri, 10 Jun 2016 15:41:43 +0200
To: Mathieu Lirzin <mthl@HIDDEN>
Subject: Re: bug#23739: Unexpected behavior of 'add-to-load-path'.
Message-ID: <20160610134143.GA8848@HIDDEN>
References: <878tydck6k.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; x-action=pgp-signed
Content-Transfer-Encoding: 8bit
In-Reply-To: <878tydck6k.fsf@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
From: <tomas@HIDDEN>
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: 23739
Cc: 23739 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Jun 10, 2016 at 02:17:23PM +0200, Mathieu Lirzin wrote:
> Hello,
> 
> I have noticed something that doesn't feel right when using
> ‘add-to-load-path’.
> 
> $ cat test.scm
> --8<---------------cut here---------------start------------->8---
> (define old %load-path)
> (add-to-load-path "foo")
> (pk %load-path)
> (pk old)
> --8<---------------cut here---------------end--------------->8---
> 
> first run:
> 
> $ guile test.scm
> --8<---------------cut here---------------start------------->8---
> ;;; [Compilation]
> ;;; (("foo" "foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile"))
> 
> ;;; (("foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile"))
> --8<---------------cut here---------------end--------------->8---
> 
> next runs:
> 
> $ guile test.scm
> --8<---------------cut here---------------start------------->8---
> ;;; (("foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile"))
> 
> ;;; (("/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/site" "/usr/share/guile"))
> --8<---------------cut here---------------end--------------->8---

I can confirm half of it :-)

I mean: the double entry "foo" for %load-path in your first result
above doesn't happen for me. Could that be a typo?

As for the strangely different behaviour when running pre-compiled
(old has %load-path's old value) and compiling (old has %load-path's
value after (add-to-load-path ...) yes, that happens to me too, on

  tomas@rasputin:/tmp$ guile --version
  guile (GNU Guile) 2.0.11.133-d680
  Copyright (C) 2014 Free Software Foundation, Inc.

Looks like a bug to me.

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAldaw5cACgkQBcgs9XrR2kZmoACfd8HliwAbrWdo3xK1jm44aIkQ
yPYAnj9MoF0OanAUD46iOnAoLLA1qrVu
=zuV2
-----END PGP SIGNATURE-----




Information forwarded to bug-guile@HIDDEN:
bug#23739; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jun 2016 12:17:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 10 08:17:46 2016
Received: from localhost ([127.0.0.1]:35206 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bBLNi-0006v5-1x
	for submit <at> debbugs.gnu.org; Fri, 10 Jun 2016 08:17:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47886)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mthl@HIDDEN>) id 1bBLNh-0006uu-9R
 for submit <at> debbugs.gnu.org; Fri, 10 Jun 2016 08:17:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mthl@HIDDEN>) id 1bBLNb-0005a9-Aq
 for submit <at> debbugs.gnu.org; Fri, 10 Jun 2016 08:17:40 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:34234)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mthl@HIDDEN>)
 id 1bBLNb-0005Zt-7O
 for submit <at> debbugs.gnu.org; Fri, 10 Jun 2016 08:17:39 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38832)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mthl@HIDDEN>) id 1bBLNZ-0008GV-5q
 for bug-guile@HIDDEN; Fri, 10 Jun 2016 08:17:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mthl@HIDDEN>) id 1bBLNU-0005Yi-UG
 for bug-guile@HIDDEN; Fri, 10 Jun 2016 08:17:36 -0400
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57043)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mthl@HIDDEN>)
 id 1bBLNU-0005Yc-Qq
 for bug-guile@HIDDEN; Fri, 10 Jun 2016 08:17:32 -0400
Received: from mek33-4-82-236-46-88.fbx.proxad.net ([82.236.46.88]:37406
 helo=godel)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <mthl@HIDDEN>) id 1bBLNT-0004NV-1v
 for bug-guile@HIDDEN; Fri, 10 Jun 2016 08:17:31 -0400
From: Mathieu Lirzin <mthl@HIDDEN>
To: bug-guile <bug-guile@HIDDEN>
Subject: Unexpected behavior of 'add-to-load-path'.
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Date: Fri, 10 Jun 2016 14:17:23 +0200
Message-ID: <878tydck6k.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.4 (------)

Hello,

I have noticed something that doesn't feel right when using
=E2=80=98add-to-load-path=E2=80=99.

$ cat test.scm
--8<---------------cut here---------------start------------->8---
(define old %load-path)
(add-to-load-path "foo")
(pk %load-path)
(pk old)
--8<---------------cut here---------------end--------------->8---

first run:

$ guile test.scm
--8<---------------cut here---------------start------------->8---
;;; [Compilation]
;;; (("foo" "foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/=
share/guile/site" "/usr/share/guile"))

;;; (("foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/=
guile/site" "/usr/share/guile"))
--8<---------------cut here---------------end--------------->8---

next runs:

$ guile test.scm
--8<---------------cut here---------------start------------->8---
;;; (("foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/=
guile/site" "/usr/share/guile"))

;;; (("/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/guile/=
site" "/usr/share/guile"))
--8<---------------cut here---------------end--------------->8---

each time test.scm is recompiled the first result reappears.  This has
been tested with Guile 2.0.11 and Guile master.

Thanks,

--=20
Mathieu Lirzin




Acknowledgement sent to Mathieu Lirzin <mthl@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#23739; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.