From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Price Newsgroups: gmane.lisp.guile.bugs Subject: bug#18127: add-to-load-path adds a path twice Date: Wed, 30 Jul 2014 19:36:36 +0100 Message-ID: <87wqau66dn.fsf@kagami.home> References: <8761ihab01.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Trace: ger.gmane.org 1406745443 29502 80.91.229.3 (30 Jul 2014 18:37:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jul 2014 18:37:23 +0000 (UTC) Cc: 18127@debbugs.gnu.org, 18127-done@debbugs.gnu.org To: Alex Kost Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jul 30 20:37:18 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 1XCYkV-00070o-5G for guile-bugs@m.gmane.org; Wed, 30 Jul 2014 20:37:15 +0200 Original-Received: from localhost ([::1]:52677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCYkU-0007za-Pw for guile-bugs@m.gmane.org; Wed, 30 Jul 2014 14:37:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCYkN-0007x7-Ox for bug-guile@gnu.org; Wed, 30 Jul 2014 14:37:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCYkI-0002ua-QJ for bug-guile@gnu.org; Wed, 30 Jul 2014 14:37:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCYkI-0002uW-LX for bug-guile@gnu.org; Wed, 30 Jul 2014 14:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XCYkI-0000wm-3t for bug-guile@gnu.org; Wed, 30 Jul 2014 14:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ian Price Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 30 Jul 2014 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18127 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 18127-submit@debbugs.gnu.org id=B18127.14067454123618 (code B ref 18127); Wed, 30 Jul 2014 18:37:02 +0000 Original-Received: (at 18127) by debbugs.gnu.org; 30 Jul 2014 18:36:52 +0000 Original-Received: from localhost ([127.0.0.1]:52090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XCYk8-0000wD-4L for submit@debbugs.gnu.org; Wed, 30 Jul 2014 14:36:52 -0400 Original-Received: from mail-wg0-f41.google.com ([74.125.82.41]:46513) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XCYk4-0000vo-US; Wed, 30 Jul 2014 14:36:50 -0400 Original-Received: by mail-wg0-f41.google.com with SMTP id z12so1650853wgg.24 for ; Wed, 30 Jul 2014 11:36:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=khC6l0WVaGrBpR5yi/d3HpsBMZkSr9oVLSEGSerYoH0=; b=bkFGPKevdTcucLZZX/iXXkotOY7hKrE6fWcx/ulx/wQhiif7n9uSndfabEbAor7hJL qpsmfYK7hD+aNy5dtVdYtEo2kcXibFMmByDnxZCconGRAwjNE9bHW2nkzua4Y5wSLe1U sesHmeimm/jOsFcM3JT6RjvMSIblsUViOdccTPRPCpru13PAapleFpPbdWgZvfqKPFkq 9xTvEd2cgDthz7IxN7fhlN+LquA8vIyUq04U8KdOkrDIPXRPfpTnXl85MOfQGtA33Av2 BXBtVpSqmSfQ/kabEiUUw1WwfhCQA50IhjswWJiMq/gK9LWPLCaDcgFOgjAdZBVSkWBS JouA== X-Received: by 10.180.10.166 with SMTP id j6mr9444761wib.73.1406745403054; Wed, 30 Jul 2014 11:36:43 -0700 (PDT) Original-Received: from kagami.home (host86-184-181-232.range86-184.btcentralplus.com. [86.184.181.232]) by mx.google.com with ESMTPSA id pl1sm12330890wic.17.2014.07.30.11.36.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jul 2014 11:36:42 -0700 (PDT) In-Reply-To: <8761ihab01.fsf@gmail.com> (Alex Kost's message of "Mon, 28 Jul 2014 17:06:22 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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-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:7520 Archived-At: Alex Kost writes: > taylanub from #guile explained that it may happen because in the REPL > the compilation and execution happen in the same session and > “‘add-to-load-path’ takes care of modifying the path both at > compile-time and at run-time.” (from manual). This is correct, it will also happen in scripts if they are auto-compiled, but you will only see it once on subsequent runs, since macro-expansion doesn't need to happen again. The fix is simple, and there is no harm in it, so I've pushed a fix to stable-2.0. > Also I have a question: Why there is no ‘add-to-load-compiled-path’? I > think such function may also be useful. Fair question. I have no idea about the answer, but I've not touched this one. As a general principle, I wouldn't like to see us have a separate macro for each of these. Thanks -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"