From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Kost Newsgroups: gmane.lisp.guile.bugs Subject: bug#18127: add-to-load-path adds a path twice Date: Mon, 28 Jul 2014 17:06:22 +0400 Message-ID: <8761ihab01.fsf@gmail.com> 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 1406603450 12038 80.91.229.3 (29 Jul 2014 03:10:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2014 03:10:50 +0000 (UTC) To: 18127@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Jul 29 05:10:43 2014 Return-path: Envelope-to: guile-bugs@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 1XBxoJ-0001PD-2j for guile-bugs@m.gmane.org; Tue, 29 Jul 2014 05:10:43 +0200 Original-Received: from localhost ([::1]:43393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBxoI-00040D-Jy for guile-bugs@m.gmane.org; Mon, 28 Jul 2014 23:10:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBke0-00022O-Jq for bug-guile@gnu.org; Mon, 28 Jul 2014 09:07:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBkdr-000324-Ie for bug-guile@gnu.org; Mon, 28 Jul 2014 09:07:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBkdr-000320-F6 for bug-guile@gnu.org; Mon, 28 Jul 2014 09:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XBkdq-0002Sk-Jc for bug-guile@gnu.org; Mon, 28 Jul 2014 09:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Kost Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 28 Jul 2014 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18127 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14065528219456 (code B ref -1); Mon, 28 Jul 2014 13:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jul 2014 13:07:01 +0000 Original-Received: from localhost ([127.0.0.1]:40471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBkdo-0002SS-GK for submit@debbugs.gnu.org; Mon, 28 Jul 2014 09:07:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54076) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBkdm-0002SI-U2 for submit@debbugs.gnu.org; Mon, 28 Jul 2014 09:06:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBkdY-00030E-In for submit@debbugs.gnu.org; Mon, 28 Jul 2014 09:06:53 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBkdY-00030A-G4 for submit@debbugs.gnu.org; Mon, 28 Jul 2014 09:06:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBkdP-000210-Ds for bug-guile@gnu.org; Mon, 28 Jul 2014 09:06:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBkdF-0002dN-JU for bug-guile@gnu.org; Mon, 28 Jul 2014 09:06:35 -0400 Original-Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:56175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBkdF-0002cw-B9 for bug-guile@gnu.org; Mon, 28 Jul 2014 09:06:25 -0400 Original-Received: by mail-la0-f47.google.com with SMTP id mc6so5522101lab.34 for ; Mon, 28 Jul 2014 06:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=pG4MN/OcHa2uC7gx2G0mxUeJift03LUdR3VYRncTAyA=; b=ox+xmxAd4iIDiS1n+lvbFp40VhPd7kS0PREHtScT7DDArlztHQ4MGu1ryDrCSEAAka f/uD/pB/qosdpzZhRtMeC+lCN10fgUZL4GogunfBR7yEbxjksBsIy+PoeOcQ3thD8jEz MH2AR4LQItls3tKfStoniU6T1ThyayZ/sTZnA87Il1O0/LZNasv+i4X7DFoxvSsXSqUd gRKMRRKK2EHrbPmXecARDUTzV14keYEVaNQU6olrU9gSGYfs1zlINjnh470+5+bp+64+ 09Kh0aVo4NpO8Z2HVET/JBcXZ+5748TWMKjXkN5jDQv0AVmgYQ2f1Bc7+iNI4+uTCvYt c+kA== X-Received: by 10.112.16.199 with SMTP id i7mr34351312lbd.5.1406552784065; Mon, 28 Jul 2014 06:06:24 -0700 (PDT) Original-Received: from leviafan (128-70-202-85.broadband.corbina.ru. [128.70.202.85]) by mx.google.com with ESMTPSA id h1sm3989048lah.48.2014.07.28.06.06.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jul 2014 06:06:23 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Mon, 28 Jul 2014 23:10:37 -0400 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7519 Archived-At: Hello, I noticed that =E2=80=98add-to-load-path=E2=80=99 adds a path 2 time= s when it is called in Guile REPL. taylanub from #guile explained that it may happen because in the REPL the compilation and execution happen in the same session and =E2=80=9C=E2=80=98add-to-load-path=E2=80=99 takes care of modifying the pat= h both at compile-time and at run-time.=E2=80=9D (from manual). Here is the session for illustrating the bug (if it's a bug) : $ guile GNU Guile 2.0.11 Copyright (C) 1995-2014 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> %load-path $1 =3D ( "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/usr/share/gui= le/site" "/usr/share/guile") scheme@(guile-user)> (add-to-load-path "foo") scheme@(guile-user)> %load-path $2 =3D ("foo" "foo" "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" "/us= r/share/guile/site" "/usr/share/guile") scheme@(guile-user)> ,q Also I have a question: Why there is no =E2=80=98add-to-load-compiled-path= =E2=80=99? I think such function may also be useful. Thanks, Alex