From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 29 19:46:30 2018 Received: (at submit) by debbugs.gnu.org; 29 Aug 2018 23:46:30 +0000 Received: from localhost ([127.0.0.1]:37644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvAAP-0004jE-Au for submit@debbugs.gnu.org; Wed, 29 Aug 2018 19:46:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fv9H1-0001KS-6v for submit@debbugs.gnu.org; Wed, 29 Aug 2018 18:49:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fv9Gv-0006FU-5e for submit@debbugs.gnu.org; Wed, 29 Aug 2018 18:49:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40769) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fv9Gv-0006FK-1s for submit@debbugs.gnu.org; Wed, 29 Aug 2018 18:49:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fv9Gu-0001ip-2I for bug-guile@gnu.org; Wed, 29 Aug 2018 18:49:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fv9Gq-0006DJ-Sa for bug-guile@gnu.org; Wed, 29 Aug 2018 18:49:08 -0400 Received: from forward104j.mail.yandex.net ([5.45.198.247]:41669) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fv9Gq-0006Af-FS for bug-guile@gnu.org; Wed, 29 Aug 2018 18:49:04 -0400 Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 359F943A7E for ; Thu, 30 Aug 2018 01:49:01 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uDpBnvd0Yp-n0uGkN7C; Thu, 30 Aug 2018 01:49:00 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1535582940; bh=maiLDdqkg2nKAzD3cCvIGIQlFlSsE+ZTLS+Qsby0WGM=; h=From:To:Subject:Date:Message-Id; b=fXqBv8V9ntNpA3rfHTjQQxj2ZAo7h023Rddea0zb7T3nfHi2Jgowb94GmjD5sIAcL W0HexFYMfi1ouSUeGVPOQGlrArZzhSa4wEnIwBBPsmQ4Hzrbn98Zj2AN21l/A+4SxN cJEHW1dr+MzXUyF9vUo01UbZBegiuBTckEVm+z7g= Authentication-Results: mxback2j.mail.yandex.net; dkim=pass header.i=@yandex.com Received: by sas1-d856b3d759c7.qloud-c.yandex.net with HTTP; Thu, 30 Aug 2018 01:49:00 +0300 From: seamus phenetols To: bug-guile@gnu.org Subject: Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Wed, 29 Aug 2018 18:49:00 -0400 Message-Id: <1871411535582940@sas1-d856b3d759c7.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 29 Aug 2018 19:46:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I'm new to guile and scheme. I compiled 2.2.4 from source yesterday. I wish to silence the auto-compile chatter, other than real warnings and errors while testing my programs. There seems to be no way to do it, so I looked for a way to disable auto-compile in ~/.guile configuration file. No luck so far, but the variables %load-should-autocompile and GUILE_AUTO_COMPILE seem promising. Sadly, they don't seem to prevent auto-compile when set within ~/.guile. Below is an excerpt of my shell session to demonstrate. In case it may be poorly formatted, I could make a web paste for easy viewing. $ rm -R $XDG_CACHE_HOME/guile/ccache rm: cannot remove '/home/me/.cache/guile/ccache': No such file or directory $ rm ~/.guile rm: cannot remove '/home/me/.guile': No such file or directory $ $ printf %s\\n '(display "Hello world!")' '(newline)' | tee ~/scheme/hello.scm (display "Hello world!") (newline) $ $ guile ~/scheme/hello.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/me/scheme/hello.scm ;;; compiled /home/me/.cache/guile/ccache/2.2-LE-8-3.A/media/data/me/scheme/hello.scm.go Hello world! $ $ rm -R $XDG_CACHE_HOME/guile/ccache $ $ printf %s\\n '(setenv "GUILE_AUTO_COMPILE" "0")' '(set! %load-should-autocompile #f)' | tee ~/.guile (setenv "GUILE_AUTO_COMPILE" "0") (set! %load-should-autocompile #f) $ $ guile ~/scheme/hello.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/me/scheme/hello.scm ;;; compiled /home/me/.cache/guile/ccache/2.2-LE-8-3.A/media/data/me/scheme/hello.scm.go Hello world! $ $ guile --version guile (GNU Guile) 2.2.4 Copyright (C) 2018 Free Software Foundation, Inc. License LGPLv3+: GNU LGPL 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ ls --full-time -gGh ~/Downloads/src/guile-2.2.4.tar.gz -rw-r--r-- 1 18M 2018-08-24 17:37:08.405232060 -0400 /home/me/Downloads/src/guile-2.2.4.tar.gz $ From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 30 21:21:00 2018 Received: (at 32580) by debbugs.gnu.org; 31 Aug 2018 01:21:00 +0000 Received: from localhost ([127.0.0.1]:39600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvY7P-0002Qs-RR for submit@debbugs.gnu.org; Thu, 30 Aug 2018 21:21:00 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:51697) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvY7N-0002Qd-Mh for 32580@debbugs.gnu.org; Thu, 30 Aug 2018 21:20:58 -0400 Received: by mail-it0-f41.google.com with SMTP id e14-v6so5166321itf.1 for <32580@debbugs.gnu.org>; Thu, 30 Aug 2018 18:20:57 -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=VbgtQH1JrOC2HyytAZzi9E9vfTOGczRQsvG71zgU40U=; b=VIGb6QcCHxkBCacQCbmjE9wTsYkluPMw25SiMzrIki6Ao08y6NQkAfDK4bdjyqkLvk B4euDV8Pku/slOcZ0glSaQ3qkLtm2Tqx/poJ0RgI93V5uhSsc6LFsnrJ+BkmdAaQiEWI oHZB5Zdm+zAoYqX1pCgVBnpaIDtfYBVwnvkf7UAeH9T+q83L6e4OnQRjuaEkTkhbyLEc AoHP1j6C8z/SYwTc9Y1KtvLTNlF2B8DD1QbQw/7WgJV1me4B454jMDq2WvCgybKNAbzk pCrhvbKvaZTl2GvQGhqFJ+6HSYpOjAVYFtIsrHdw/9IOkXC1MrBiTRjxduVXfCM/oiNv 4rNw== 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=VbgtQH1JrOC2HyytAZzi9E9vfTOGczRQsvG71zgU40U=; b=VjV+Z6/YcAdPZm/btv2MBM2WF12esFodglvKV8X0GqH3e8sY5bvjVNky6UJH+XP51L 91a2crzYXdKlPSrQDqWOnr4aEqnDKnCHvlzHGaXYjBn9pBVI4viTQ9HaBCUOX+hocPea u9tOfbfxZhJo+RJtx3yQBdwP5ziMq9s3DHoOxEsZVvIaCwWypBa7MaRc7+8jZZqOcTlq Zq3/rB0z9qkOuaT/SumJv8iH0Ea/Hx2m0939IbSn3Rr9phiFhhbekXTMWR0Bg3kDcaiS RDsg2/Y4TOQ5HLAw/R7I92TwJiR7gBm+RtG3ZKOCVZHMyyaJ6ZBv0tNxW+utH/NPWNML smAg== X-Gm-Message-State: APzg51Ch4cIdXfmOrPpKIG3Cq1N9+7AH7vHzXmA85XJx1CNvvRe1Djmi PWKZej6EgaClAM8PwZqMdJHTMgZjOng= X-Google-Smtp-Source: ANB0VdZzZ0tGAJJMR+sRsXdNFdJPg9A7CcZ5J71jFjo6+eWzgVlYJjBEbcLhcvV8lKZCfLkEhz4xmw== X-Received: by 2002:a24:dcc3:: with SMTP id q186-v6mr3647273itg.126.1535678452124; Thu, 30 Aug 2018 18:20:52 -0700 (PDT) Received: from apteryx (107-179-139-151.cpe.teksavvy.com. [107.179.139.151]) by smtp.gmail.com with ESMTPSA id d26-v6sm3178951iob.67.2018.08.30.18.20.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 18:20:51 -0700 (PDT) From: Maxim Cournoyer To: seamus phenetols Subject: Re: bug#32580: Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling References: <1871411535582940@sas1-d856b3d759c7.qloud-c.yandex.net> Date: Thu, 30 Aug 2018 21:20:50 -0400 In-Reply-To: <1871411535582940@sas1-d856b3d759c7.qloud-c.yandex.net> (seamus phenetols's message of "Wed, 29 Aug 2018 18:49:00 -0400") Message-ID: <87in3rbabx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32580 Cc: 32580@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, seamus phenetols writes: > I'm new to guile and scheme. I compiled 2.2.4 from source yesterday. > I wish to silence the auto-compile chatter, other than real warnings and errors > while testing my programs. There seems to be no way to do it, so I looked > for a way to disable auto-compile in ~/.guile configuration file. No luck so far, > but the variables %load-should-autocompile and GUILE_AUTO_COMPILE > seem promising. Sadly, they don't seem to prevent auto-compile when > set within ~/.guile. > > Below is an excerpt of my shell session to demonstrate. In case it may be > poorly formatted, I could make a web paste for easy viewing. 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). Try exporting the GUILE_AUTO_COMPILE variable before running your program, or setting it inline in front of your guile command: --8<---------------cut here---------------start------------->8--- guile hello.scm ;;; note: source file /home/maxim/hello.scm ;;; newer than compiled /home/maxim/.cache/guile/ccache/2.2-LE-8-3.A/home/maxim/hello.scm.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/maxim/hello.scm ;;; compiled /home/maxim/.cache/guile/ccache/2.2-LE-8-3.A/home/maxim/hello.scm.go Hello World maxim@apteryx ~$ rm .cache/guile/ccache/2.2-LE-8-3.A/home/maxim/hello.scm.go maxim@apteryx ~$ GUILE_AUTO_COMPILE=0 guile hello.scm Hello World --8<---------------cut here---------------end--------------->8--- Where have you seen that %load-should-autocompile variable documented? It doesn't appear in the Guile Reference info manual. This doesn't seem to be a bug :) Thank you, Maxim From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 31 10:00:21 2018 Received: (at 32580) by debbugs.gnu.org; 31 Aug 2018 14:00:21 +0000 Received: from localhost ([127.0.0.1]:40739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvjyH-0004Ox-1T for submit@debbugs.gnu.org; Fri, 31 Aug 2018 10:00:21 -0400 Received: from forward4o.cmail.yandex.net ([37.9.109.248]:55035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvjyC-0004Oh-MF for 32580@debbugs.gnu.org; Fri, 31 Aug 2018 10:00:19 -0400 Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward4o.cmail.yandex.net (Yandex) with ESMTP id EF66B2112F; Fri, 31 Aug 2018 17:00:09 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Bbq0wyenX3-08fGTmDH; Fri, 31 Aug 2018 17:00:08 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1535724008; bh=NzhGeJZTcqpMM0kR9JFg3tZR4tc9jp4+37EhIWfTexs=; h=From:To:Cc:In-Reply-To:References:Subject:Date:Message-Id; b=raqpL9xn4SSVzb5qrhEXksHStSH96Ogkgg/x/P/nZY8zxeUpadFCWFEsR6eMZK9ga V8buXHsrIp7aiicnmM+F530hNOLelcrTVy45FjkKo0BWZMePas6TDgtpzfa7ZF6sev Aw7CZQ4kiHE9ucRe8qsDdCH4TRcYjXjcAKQIZ2Ko= Authentication-Results: mxback12g.mail.yandex.net; dkim=pass header.i=@yandex.com Received: by iva7-7c2970ec7645.qloud-c.yandex.net with HTTP; Fri, 31 Aug 2018 17:00:08 +0300 From: seamus phenetols To: Maxim Cournoyer In-Reply-To: <87in3rbabx.fsf@gmail.com> References: <1871411535582940@sas1-d856b3d759c7.qloud-c.yandex.net> <87in3rbabx.fsf@gmail.com> Subject: Re: bug#32580: Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Fri, 31 Aug 2018 10:00:08 -0400 Message-Id: <7152691535724008@iva7-7c2970ec7645.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32580 Cc: "32580@debbugs.gnu.org" <32580@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 If there is a hello.go under $XDG_CACHE_HOME/guile then it will be used anyway unless it is considered out of date. I would very much prefer to: eliminate the unnecessary chatter when no warnings or errors occur OR disable the auto-compile feature in ~/.guile. If these aren't possible, then I suppose I can make a shell alias or function for: GUILE_AUTO_COMPILE=0 guile > Where have you seen that %load-should-autocompile variable documented? > It doesn't appear in the Guile Reference info manual. > > This doesn't seem to be a bug :) %load-should-autocompile was mentioned in IRC by the person who asked me to report this as a bug. It's also present in some commit messages I found by a general web search. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 01 14:59:24 2018 Received: (at 32580) by debbugs.gnu.org; 1 Sep 2018 18:59:24 +0000 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 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 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) 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) From: Maxim Cournoyer To: seamus phenetols Subject: Re: bug#32580: Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling References: <1871411535582940@sas1-d856b3d759c7.qloud-c.yandex.net> <87in3rbabx.fsf@gmail.com> <7152691535724008@iva7-7c2970ec7645.qloud-c.yandex.net> Date: Sat, 01 Sep 2018 14:59:15 -0400 In-Reply-To: <7152691535724008@iva7-7c2970ec7645.qloud-c.yandex.net> (seamus phenetols's message of "Fri, 31 Aug 2018 10:00:08 -0400") Message-ID: <87zhx19h8c.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32580 Cc: "32580@debbugs.gnu.org" <32580@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 02 15:23:04 2018 Received: (at 32580) by debbugs.gnu.org; 2 Sep 2018 19:23:04 +0000 Received: from localhost ([127.0.0.1]:43316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwXxg-0006iP-Io for submit@debbugs.gnu.org; Sun, 02 Sep 2018 15:23:04 -0400 Received: from vimdzmsp-sfwd04.bluewin.ch ([195.186.227.132]:51368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwXxd-0006hK-OV for 32580@debbugs.gnu.org; Sun, 02 Sep 2018 15:23:02 -0400 Received: from 4box.home ([178.194.211.83]) by vimdzmsp-sfwd04.bluewin.ch Swisscom AG with SMTP id wXxXfyQF9rk71wXxXfJVZz; Sun, 02 Sep 2018 21:22:55 +0200 X-Bluewin-Spam-Analysis: v=2.1 cv=eJze9Cd1 c=1 sm=1 tr=0 a=/otY9tMDUxeyvsp/Eu5vMQ==:117 a=/otY9tMDUxeyvsp/Eu5vMQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=7D24GrKVZHmi26ci1UsA:9 a=CjuIK1q_8ugA:10 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[178.194.211.83] Epoch[1535916175] X-Bluewin-AuthAs: dll@bluewin.ch From: Daniel Llorens Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: bug#32580: Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling Message-Id: <7E96CED6-D748-4CFC-A2A5-F834107ABE62@bluewin.ch> Date: Sun, 2 Sep 2018 21:22:56 +0200 To: 32580@debbugs.gnu.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-CMAE-Envelope: MS4wfE19FYOE9FyldWCykfV05yxEHeQO26kUUakdsXC16Usfum5PnxwMD6NPkwcQQqOrE2gnaoptQ3MdV6RQGTdPLh7gPU6p77jy/vhipbSaiuuKnoef4Vsx lFis2AbHEhD2ZDtMsjJRJWRI6vEQXift125kL6+eCWHf8VYqrTuSFEEdDag9tbYhB4ebQagXYYzonw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32580 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) I think, regardless of whether GUILE_AUTO_COMPILE works correctly or not = (and public variables should all be documented, so if = %load-should-autocompile isn't, I'd call that its own bug), I agree with = the substance of the complaint. The autocompilation messages aren't = warnings and shouldn't be sent to the warning port. Maybe they should be = sent to a logging port instead. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 14 20:21:18 2018 Received: (at 32580) by debbugs.gnu.org; 15 Oct 2018 00:21:18 +0000 Received: from localhost ([127.0.0.1]:49671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBqdK-0007Ka-DY for submit@debbugs.gnu.org; Sun, 14 Oct 2018 20:21:18 -0400 Received: from mail-it1-f174.google.com ([209.85.166.174]:37781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBqdI-0007KN-6s for 32580@debbugs.gnu.org; Sun, 14 Oct 2018 20:21:16 -0400 Received: by mail-it1-f174.google.com with SMTP id e74-v6so25314488ita.2 for <32580@debbugs.gnu.org>; Sun, 14 Oct 2018 17:21:16 -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=m4rRKkAUbvm6SlibdXn1BUc46BS23vEk02UtMWKVoFI=; b=aYBZ0sxgPvG3Byh8WTRrUPargQM+d7kMFNy8+Nqm5Zl51rJ3e1gap+taUF9AZHDO8j a35hPITeetOyyHRw6RMzGuJGRrnHYVj8JnSZeHjcAg87NMEv4R/9cYP1bE1hw7TuIuSE cYMBruLJUtVfULyrpmIxmldyF6ePyd21n7Rlx/HyDPp7TsCQujBAiRC57+P5kQ6guxF4 vEaPZKiicD+Hj5AfCQ71aoX6f/z4O9uoRsRIRL8YFzmDbxV0ob7q9P55th57KYqXK8GB QUYguLsY/hOalh0lCaGor068ofzjUtLvzHyba0G1d2QRvKLZrPVoR09ZRZK5ZhPu4FUt PfyQ== 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=m4rRKkAUbvm6SlibdXn1BUc46BS23vEk02UtMWKVoFI=; b=e3lHkcLazTOmbfjiPERYDJSvw+WekinJX2nXbzZVpaz2N9F6JWBa2w/V+DcCaOIqkf kdpNixzYtE7Zc8Z47rIdUW/fsEXQOdU+oMRwtcKaW7vXEJ/6ePaMdNQZsa0diJP42Lkz QwM0FxTgDI+fPCZktFrZHfckSz/5pyoNuZgjtMz3w2jmKqWgMLypZLYTFGDfM2w7dbN/ Thpo+Zag+t+xL2XxSWbfR+xVxYmkT2snXNTDBNn6NxUtnMa1mCM3YZiZqql7ke86lBDG 2FhTLf6x28f9e+tkcHuleKUj3IpDXfwd0t1Eo/a3kPUlhi+MlMCz/7vXvS0cArm9W7iD xOZQ== X-Gm-Message-State: ABuFfojlw6M8HqTADZM8+pVtDMqbISyhVTbhtdcBD1D64d7VFvANEsWc UqEnCQrc9FRX/4CUDianHnJah8x9 X-Google-Smtp-Source: ACcGV61s71ub+dlGvYhNj7pY71HZxN56o/vhZ5bF26H0ryhN4wEF86KxnIkLixsg6k24xdKV5DM1zw== X-Received: by 2002:a24:d647:: with SMTP id o68-v6mr11432715itg.56.1539562870128; Sun, 14 Oct 2018 17:21:10 -0700 (PDT) Received: from apteryx (76-10-140-126.dsl.teksavvy.com. [76.10.140.126]) by smtp.gmail.com with ESMTPSA id e20-v6sm3464828ita.34.2018.10.14.17.21.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Oct 2018 17:21:08 -0700 (PDT) From: Maxim Cournoyer To: seamus phenetols Subject: Re: bug#32580: Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling References: <1871411535582940@sas1-d856b3d759c7.qloud-c.yandex.net> <87in3rbabx.fsf@gmail.com> <7152691535724008@iva7-7c2970ec7645.qloud-c.yandex.net> <87zhx19h8c.fsf@gmail.com> <2474841539446639@myt2-cd7fa496c4f7.qloud-c.yandex.net> Date: Sun, 14 Oct 2018 20:21:07 -0400 In-Reply-To: <2474841539446639@myt2-cd7fa496c4f7.qloud-c.yandex.net> (seamus phenetols's message of "Sat, 13 Oct 2018 12:03:59 -0400") Message-ID: <8736t89i18.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32580 Cc: 32580@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hello Seamus, seamus phenetols writes: > Setting GUILE_AUTO_COMPILE in ~/.profile and in ~/.bash_profile > doesn't seem to have any effect. I'm giving up on guile for now. > Thank you very much for helping. I'm sorry it hasn't worked for you! Let's see if we can find out why. What exactly did you put in your ~/.profile or ~/.bash_profile? What version of Guile are you using? When launching a new pseudo terminal (i.e. xterm, gnome-terminal, etc.) and typing 'echo $GUILE_AUTO_COMPILE', does it return the expected value defined in your ~/.profile or ~/.bash_profile? Note that you would need to logout then login of your session for new variable definition to take effect; otherwise you can test it in your current shell by sourcing it: --8<---------------cut here---------------start------------->8--- source ~/.bash_profile # or source ~/.profile --8<---------------cut here---------------start------------->8--- I've put the following Scheme code in a file named 'test-auto-compile.scm' (attached for your convenience): --8<---------------cut here---------------start------------->8--- #!/usr/bin/env guile !# (define (main) "Print whether auto-compilation is enabled or not and exit with an exit status of 1 if it is enabled, 0 otherwise." (let ((guile-auto-compile-value (getenv "GUILE_AUTO_COMPILE"))) (display (format #f "The value of GUILE_AUTO_COMPILE is ~s\n" guile-auto-compile-value)) (when (and guile-auto-compile-value (string=? guile-auto-compile-value "0")) (display "Auto-compilation is disabled.\n") (exit 0)) (display "Auto-compilation is enabled.\n") (exit 1))) (main) --8<---------------cut here---------------start------------->8--- Here's a small demonstration of what the above script gives on my system (guile --version is 2.2.4, but this should work for any Guile version >= 2.0): --8<---------------cut here---------------start------------->8--- echo $GUILE_AUTO_COMPILE maxim@apteryx ~/Documents$ guile test-auto-compile.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/maxim/Documents/test-auto-compile.scm ;;; compiled /home/maxim/.cache/guile/ccache/2.2-LE-8-3.A/home/maxim/Documents/test-auto-compile.scm.go The value of GUILE_AUTO_COMPILE is #f Auto-compilation is enabled. maxim@apteryx ~/Documents$ maxim@apteryx ~/Documents$ rm /home/maxim/.cache/guile/ccache/2.2-LE-8-3.A/home/maxim/Documents/test-auto-compile.scm.go maxim@apteryx ~/Documents$ export GUILE_AUTO_COMPILE=0 maxim@apteryx ~/Documents$ guile test-auto-compile.scm The value of GUILE_AUTO_COMPILE is "0" Auto-compilation is disabled. --8<---------------cut here---------------end--------------->8--- I hope this helps, Maxim --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=test-auto-compile.scm Content-Description: Short program demonstrating GUILE_AUTO_COMPILE #!/usr/bin/env guile !# (define (main) "Print whether auto-compilation is enabled or not and exit with an exit status of 1 if it is enabled, 0 otherwise." (let ((guile-auto-compile-value (getenv "GUILE_AUTO_COMPILE"))) (display (format #f "The value of GUILE_AUTO_COMPILE is ~s\n" guile-auto-compile-value)) (when (and guile-auto-compile-value (string=? guile-auto-compile-value "0")) (display "Auto-compilation is disabled.\n") (exit 0)) (display "Auto-compilation is enabled.\n") (exit 1))) (main) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 18 12:30:43 2021 Received: (at 32580-done) by debbugs.gnu.org; 18 May 2021 16:30:43 +0000 Received: from localhost ([127.0.0.1]:57100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj2cE-0003Ix-Uh for submit@debbugs.gnu.org; Tue, 18 May 2021 12:30:43 -0400 Received: from mail-ed1-f48.google.com ([209.85.208.48]:44744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj2cB-0003AH-Ut for 32580-done@debbugs.gnu.org; Tue, 18 May 2021 12:30:41 -0400 Received: by mail-ed1-f48.google.com with SMTP id t15so11942376edr.11 for <32580-done@debbugs.gnu.org>; Tue, 18 May 2021 09:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=7QI1ujYM6I4omHQym/DIZu3b7qxYMV3O2swleZB4l4E=; b=pwbFF8S3GU6U/HOBVZgCDfRuoTruP/I8S+WVXymMyvEIohiYcUD25+G7VBbf1TUvUE bpY8bxh0+W3KL50FUZm8RUOWBCy1yE00oyrJW5Fpn8EV44qfSOCeySmQ6ei8Og/708HQ uES84bWktibgqVJZxxbiMf6jLRId97nNpbWDWwJExnU8du3A91Wmbe/yCIgpL/4wXJiZ ZH+IOmfSrzhdAimQP8NxoT9dNpNhhmGUMfCbbp+atJHhrRA0R7Tir6CFqUe4JMDWKxJI En7Kk6piHzEmTh8dZucEFdO7KCgjKQEwjycXrkuYqlImFoWDst8v59jv2MAZ4CPE6L7t r/RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=7QI1ujYM6I4omHQym/DIZu3b7qxYMV3O2swleZB4l4E=; b=kZMYvLuwark5xTUmmdM6N8mTk9+KQuY/pdmdAqHi/Y/KJwSmVC4dJO3Qsn1B/pZ/L6 QLXMz4p8j1xiqI4v8PbMW6+0wm52FbXVoy9XDNHjWRvXg0iNG6wskpGSBMwYtKD9ibPy lVgALHRH1fghJHXjDg0/EGYqNwAzBMT1Yv0+mGK95CFDGUuWneNbBf2DsExSNyE2Ozrg 1lh9CvgM6bCzd1A8dW6dUqWV5+GoeejM4HrRpB/FGXkp3u3K/SzWpVD2orNy46DK4uCz bph2wCb7t00rdBLdkrwIL0PRbeOxkRQhNZzzuWU5z3QDFMscB8Wi19hOLrk/fYOKJq+U 3aFg== X-Gm-Message-State: AOAM530sYLGTYQG1f61pa2GvwauRBlEm5Fw539K1CZ34ZHVhu4gNpiWh YZiJ34GdZNtbXLTCJInRcJg1jWBpDhL8xw== X-Google-Smtp-Source: ABdhPJzDhwL28SSKkaKEc8NMD16nHjFwBJO5bubF0+tiwyXJabeNUGpRM4TFbn+gyWroOobokpf/3w== X-Received: by 2002:a05:6402:20f:: with SMTP id t15mr8115244edv.370.1621355434154; Tue, 18 May 2021 09:30:34 -0700 (PDT) Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id z4sm13199614edc.1.2021.05.18.09.30.33 for <32580-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 May 2021 09:30:33 -0700 (PDT) To: 32580-done@debbugs.gnu.org From: Taylan Kammer Subject: Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling Message-ID: <4956a010-7e51-c11e-df11-74e8badd4a4a@gmail.com> Date: Tue, 18 May 2021 18:30:30 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32580-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Closing as this was not a bug. Exporting GUILE_AUTO_COMPILE=0 works as intended; must be done before start. The variable %load-should-autocompile is for internal use by Guile only. -- Taylan From unknown Sun Jun 22 22:43:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Jun 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator