From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: How to create hygienic environments? Date: Sat, 20 Jun 2015 13:54:15 +0100 Message-ID: <87ioaia6bs.fsf@ossau.homelinux.net> References: <558429BE.4070509@o2online.de> <5584F211.6090602@o2online.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434804887 3436 80.91.229.3 (20 Jun 2015 12:54:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2015 12:54:47 +0000 (UTC) Cc: guile-user@gnu.org To: Michael Tiedtke Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jun 20 14:54:36 2015 Return-path: Envelope-to: guile-user@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 1Z6II8-0007A9-5r for guile-user@m.gmane.org; Sat, 20 Jun 2015 14:54:36 +0200 Original-Received: from localhost ([::1]:33340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6II7-0002f2-Iz for guile-user@m.gmane.org; Sat, 20 Jun 2015 08:54:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6IHy-0002er-M6 for guile-user@gnu.org; Sat, 20 Jun 2015 08:54:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6IHt-0008FA-L8 for guile-user@gnu.org; Sat, 20 Jun 2015 08:54:26 -0400 Original-Received: from out1.ip05ir2.opaltelecom.net ([62.24.128.241]:34357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6IHt-0008Ez-Fc for guile-user@gnu.org; Sat, 20 Jun 2015 08:54:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2A0CQBHYYVVPJPHlU5cgxCBM4ZMvyECgSpNAQEBAQEBBwEBAQFBP4QjAQEDAVYjBQsIAw4TJQ8BBCUKGhOIJwzGTAEKAQEBHotFhQYHhCsFkSGCW4tOmC6EID0xgkgBAQE X-IPAS-Result: A2A0CQBHYYVVPJPHlU5cgxCBM4ZMvyECgSpNAQEBAQEBBwEBAQFBP4QjAQEDAVYjBQsIAw4TJQ8BBCUKGhOIJwzGTAEKAQEBHotFhQYHhCsFkSGCW4tOmC6EID0xgkgBAQE X-IronPort-AV: E=Sophos;i="5.13,649,1427756400"; d="scan'208";a="613510198" Original-Received: from host-78-149-199-147.as13285.net (HELO arudy) ([78.149.199.147]) by out1.ip05ir2.opaltelecom.net with ESMTP; 20 Jun 2015 13:54:18 +0100 Original-Received: from neil-laptop.ossau.homelinux.net (unknown [192.168.11.4]) by arudy (Postfix) with ESMTPSA id 49C913801F; Sat, 20 Jun 2015 13:52:07 +0100 (BST) In-Reply-To: <5584F211.6090602@o2online.de> (Michael Tiedtke's message of "Sat, 20 Jun 2015 06:54:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.24.128.241 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11849 Archived-At: Michael Tiedtke writes: > Just to quote myself: > >> The (null-environment 5) gives me an empty environment but how > should I insert the editor commands? > > Just think of these editor commands as regular Scheme definitions. I think you're looking for 'module-define!': scheme@(guile-user)> (define n (null-environment 5)) scheme@(guile-user)> (eval 'car n) ERROR: In procedure memoize-variable-access!: ERROR: Unbound variable: car Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(#{ g3900}#) [1]> ,q scheme@(guile-user)> (eval 'car (current-module)) $2 = # scheme@(guile-user)> (module-define! n 'car car) scheme@(guile-user)> (eval 'car n) $3 = # Hope that helps! Neil