From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Maxim Cournoyer Newsgroups: gmane.lisp.guile.bugs Subject: bug#32580: Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling Date: Sat, 01 Sep 2018 14:59:15 -0400 Message-ID: <87zhx19h8c.fsf@gmail.com> References: <1871411535582940@sas1-d856b3d759c7.qloud-c.yandex.net> <87in3rbabx.fsf@gmail.com> <7152691535724008@iva7-7c2970ec7645.qloud-c.yandex.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535828287 8280 195.159.176.226 (1 Sep 2018 18:58:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2018 18:58:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: "32580@debbugs.gnu.org" <32580@debbugs.gnu.org> To: seamus phenetols Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Sep 01 20:58:03 2018 Return-path: Envelope-to: guile-bugs@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 1fwB5u-00021p-AH for guile-bugs@m.gmane.org; Sat, 01 Sep 2018 20:58:02 +0200 Original-Received: from localhost ([::1]:38149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwB80-00041x-JS for guile-bugs@m.gmane.org; Sat, 01 Sep 2018 15:00:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwB7u-00040n-EW for bug-guile@gnu.org; Sat, 01 Sep 2018 15:00:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwB7r-0001Rz-13 for bug-guile@gnu.org; Sat, 01 Sep 2018 15:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37085) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwB7q-0001R8-Rk for bug-guile@gnu.org; Sat, 01 Sep 2018 15:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fwB7q-0004yx-Q2 for bug-guile@gnu.org; Sat, 01 Sep 2018 15:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 01 Sep 2018 19:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32580 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 32580-submit@debbugs.gnu.org id=B32580.153582836419073 (code B ref 32580); Sat, 01 Sep 2018 19:00:02 +0000 Original-Received: (at 32580) by debbugs.gnu.org; 1 Sep 2018 18:59:24 +0000 Original-Received: from localhost ([127.0.0.1]:42103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwB7E-0004xZ-Cp for submit@debbugs.gnu.org; Sat, 01 Sep 2018 14:59:24 -0400 Original-Received: from mail-it0-f42.google.com ([209.85.214.42]:53735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwB7C-0004xM-Bv for 32580@debbugs.gnu.org; Sat, 01 Sep 2018 14:59:22 -0400 Original-Received: by mail-it0-f42.google.com with SMTP id p79-v6so11125077itp.3 for <32580@debbugs.gnu.org>; Sat, 01 Sep 2018 11:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PZzm3CyglinRWB7Dpf3/xIMMOA3OWLcOjjVkKnIPdFU=; b=BT+nbE73mY2ODAlEgTTiqWvvwlFU/xRLWKOO72m60lOoSTrSz7ADKPyUwze2DYMrId T4scXhpcVjkPmr0pFaMK6lNkV+12uexYBQT3SJpZoeWg2YCpZkMVVs4bHYB5Re/JsVGE E5c5XASlE9tAldN32DYZSwyIKp7fJjVz4yiMBvB3nLMz/1zxRXHI18BzRyz0OZH7P2NI gT7jLJ4PHRF6EOD8V/fRsWk5OtkhZgEqR51BH/tGvjw34Moqnej0bISSWNYPDEgi8od6 zsWTYsBZvaRII4JGndOyS1EcA/QWoIQnykG+jevf/0UEF26A5BITmY+HaID+gCEzTvK6 /1hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=PZzm3CyglinRWB7Dpf3/xIMMOA3OWLcOjjVkKnIPdFU=; b=ewqBrqq/QXVPuU+yVU6sRvUi4Ucno2F7ycTxno0oSLyObiMfsXImAk/L7H2d8dCUXC 3lMvG7QWvKnP419wtJrRGo4yeY0mrq0nzd7nzrXayDF4n9sSKqzKNjLQolly9/ILgwP4 kfapfeITye4YlYTzQlHE1ZoYZFgKn2la6DGZkbYjz9eZKXIwLPN6HosXyYeRXdtdS2fd w8M9HXcs/8CDMM9Y1+2/8aG/916z1iqsBjg9MZoMjQz/jwFSBnGPRZfaLDE5/1iUn3CH yT6GY4LFIOGy1e6oMFyLfJQaGjC37zPj3xawAGYt6aleozSbpqT7+Ub09VgLXDaMfBWl bZbg== X-Gm-Message-State: APzg51DfTZT57IVTsrEbacIzS68nSIfPBGvhqarBK2FimEiRJ+saf7KL AcZtSDzfHyAP8IdNYFFFQZMLOxFY X-Google-Smtp-Source: ANB0VdYjPWa0X38cqg7EJY/TeoyvjcY4ddCHKjba00Ar6wCpDlrdUENmiV+g/h3ZFDahSDmp/SVCFg== X-Received: by 2002:a24:33c1:: with SMTP id k184-v6mr1360551itk.103.1535828356692; Sat, 01 Sep 2018 11:59:16 -0700 (PDT) Original-Received: from apteryx (107-179-139-151.cpe.teksavvy.com. [107.179.139.151]) by smtp.gmail.com with ESMTPSA id u24-v6sm5112946iol.49.2018.09.01.11.59.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 01 Sep 2018 11:59:16 -0700 (PDT) In-Reply-To: <7152691535724008@iva7-7c2970ec7645.qloud-c.yandex.net> (seamus phenetols's message of "Fri, 31 Aug 2018 10:00:08 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.lisp.guile.bugs:9144 Archived-At: Hello Seamus, seamus phenetols writes: > Hello MC, > >> My guess is that setting GUILE_AUTO_COMPILE dynamically in your ~/.guile >> is too late; the Guile process would have already been fire-up without >> it set early enough to take effect (just a guess). > > I assumed ~/.guile would be evaluated before any script. Perhaps I am mistaken. > >> Try exporting the GUILE_AUTO_COMPILE variable before running your >> program, or setting it inline in front of your guile command: > > Yes, that does work. Now every time I want to disable autocompile I must: > > GUILE_AUTO_COMPILE=0 guile ~/scheme/hello.scm As I wrote, you can also export the variable: --8<---------------cut here---------------start------------->8--- export GUILE_AUTO_COMPILE=0 --8<---------------cut here---------------end--------------->8--- To make it permanent you can define such a line in your ~/.profile or ~/.bash_profile, and logout/login into your session to have it effective. The Guile reference manual only defines two means to control auto-compilation: 1. Setting the GUILE_AUTO_COMPILE environment variables (which, being an environment variable, should be defined as such, as explained above) 2. Using the --no-auto-compile option passed directly to the guile interpreter. Let me know if this addresses your issue. Thank you, Maxim