From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kKZ1A6xXA2cYhwAAe85BDQ:P1 (envelope-from ) for ; Mon, 07 Oct 2024 03:38:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kKZ1A6xXA2cYhwAAe85BDQ (envelope-from ) for ; Mon, 07 Oct 2024 05:38:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728272300; a=rsa-sha256; cv=none; b=TKz8P7iyy2xF8sKUXaKyNcoTMcgdLhxbBh6AxiPxYNqqO1sR25kEmXkV/v6Po8qNiAkBdz kGhLAIMO9pnPEiASOE3+tn7Xlhh+0mttgd0DrPgqI0kFWHH1po0K3Q6Twa6uYm04nt2M3Z z7X+OpMogxfM+HG9aInrVOUZG9Gp1W1GZf5tioANUIKbMArMWoxmKcmz7L37Uxtzxvneie Ts166ga4h0trSVYBTrMsVc1JKBpASsb3JemGQwVjEyXHn7nkEPyGs24KpPMt4/V7FVfH7Z XM1e7nVxdmCyYoqrKNh/jL7pOyxhaJc42IvM99+jERJBirrDRty8YuhIYwYVWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728272300; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=HfaUQolgVJJH8EUFBsZYFZh+2F6GcCM+16xNnGaYLAI=; b=JpIpgt0uylgpTUoFxV35HVbgZtcTxFibiVbXhsRZ3/BusHI6Nzxau2nYusxcNLvOm3Q6yG BRbUJNWQuVYfVK0GTwW8lEplGE2HEwTMiELwEDSQFbQdp+Bgw3tGwZaaW3ynYwfOnjHS/X GLIL0jn3yrZvzkG4Hg9lpxtMCNiUAdHOlO59U7RE56kX/Stxfhql94W1+thfnefjFpfYFi yLgXk7V7awQNe/FfwHnQ3CILLewGodvkmRW0X/6My4n5QcZk3kLP286kck0Vom3j1cYOzm j7KsUz+E4nqqltahOFWf09njqbiuGazRNIhakdCVSq/mXIc0VObNkIylm5QSBA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AFA0E1E64D for ; Mon, 07 Oct 2024 05:38:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxeZ3-0000Qk-5n; Sun, 06 Oct 2024 23:37:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxeZ1-0000Pt-HW for help-guix@gnu.org; Sun, 06 Oct 2024 23:37:39 -0400 Received: from smtpout1.mo12.mail-out.ovh.ca ([51.161.45.254]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxeYy-0006Rw-Lb for help-guix@gnu.org; Sun, 06 Oct 2024 23:37:39 -0400 Received: from mxplan1.mail.ovh.ca (unknown [10.111.38.3]) by mo12.mail-out.ovh.ca (Postfix) with ESMTPS id 4XMPwk0x0qzHpxT for ; Mon, 7 Oct 2024 00:37:26 -0300 (ADT) Received: from morales.pe (54.39.251.56) by DAG2EX2.mxpca1.local (172.16.2.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sun, 6 Oct 2024 23:37:25 -0400 X-OVh-ClientIp: 181.65.25.72 From: Rodrigo Morales To: Subject: [beginner's question] How to write Guix scripts using GNU Emacs? Date: Sun, 6 Oct 2024 22:37:18 -0500 Message-ID: <87bjzwd1n5.fsf@morales.pe> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [54.39.251.56] X-ClientProxiedBy: DAG1EX1.mxpca1.local (172.16.2.1) To DAG2EX2.mxpca1.local (172.16.2.12) X-Ovh-Tracer-GUID: b088314f-62c1-4ab3-b4af-6e1d65af46af X-Ovh-Tracer-Id: 6301943256382084631 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvddvkedgjeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufffkgggtihesthdtredttddttdenucfhrhhomheptfhoughrihhgohcuofhorhgrlhgvshcuoehrohgurhhighhoqdhmrghilhhinhhgqdhlihhsthhssehmohhrrghlvghsrdhpvgeqnecuggftrfgrthhtvghrnhephfdthfeltddvhfethedvgfeilefhgefffffhueegtdffjeeiffeuhfethfeiheejnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeduvdejrddtrddtrddupdehgedrfeelrddvhedurdehiedpudekuddrieehrddvhedrjedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehrohgurhhighhoqdhmrghilhhinhhgqdhlihhsthhssehmohhrrghlvghsrdhpvgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehhvghlphdqghhuihigsehgnhhurdhorhhgpdfovfetjfhoshhtpehmohduvddpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=51.161.45.254; envelope-from=rodrigo-mailing-lists@morales.pe; helo=smtpout1.mo12.mail-out.ovh.ca X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.71 X-Spam-Score: -2.71 X-Migadu-Queue-Id: AFA0E1E64D X-Migadu-Scanner: mx10.migadu.com X-TUID: uD/KX5DOmGjp I want to write Guile scripts that use definitions from the guix repository using Emacs. When writing a script, I want to evaluate the sexp at point by pressing C-M-x and show its result in the minibuffer (as it is done when pressing C-M-x, bound to eval-defun, in an emacs-lisp-mode buffer). I haven't succeeded to get this behavior, I hope some Guix user can help me to accomplish this behavior. * What i know: Execute Guile script using =guix repl= I am aware that I can execute a Guile script using =guix repl=. Consider the following sample Guile script: #+HEADER: :tangle /tmp/a.scm #+BEGIN_SRC scheme (use-modules (gnu packages)) (format #t "~a~%" (specifications->packages (list "emacs"))) #+END_SRC I can execute that script by running the command below. #+HEADER: :prologue "exec 2>&1" #+HEADER: :epilogue ":" #+BEGIN_SRC sh guix repl -- /tmp/a.scm ; echo Exit code: $? #+END_SRC #+RESULTS: #+begin_example ((# out)) Exit code: 0 #+end_example I should get the result shown above when evaluating the sexps inside Emacs. * What I tried: Execute specific sexps from within Emacs I removed the directory just to make sure that cached files don't interfer with the default behavior. #+HEADER: :results silent #+BEGIN_SRC sh rm -rf ~/.cache/guile #+END_SRC I started Emacs using =emacs -Q=. #+BEGIN_SRC elisp (require 'geiser-guile) #+END_SRC [[https://guix.gnu.org/manual/en/html_node/The-Perfect-Setup.html][This guide]] suggests adding the directory containing the guix source code to the Emacs variable =geiser-guile-load-path=. I cloned the guix repository to the directory =/my-storage/miscellaneous/source-code-popular/guix=, so I evaluated the sexp shown below: #+BEGIN_SRC elisp (add-to-list 'geiser-guile-load-path "/my-storage/miscellaneous/source-code-popular/guix") #+END_SRC I pressed =M-x geiser-guile RET=. The buffer =*Geiser Guile REPL*= was opened. I evaluated the sexp shown below in the buffer =*Geiser Guile REPL*=. #+BEGIN_SRC scheme (use-modules (gnu packages)) #+END_SRC There were many warnings, some of them were "Unbound variable" and "compilation of xyz failed". You can see the entire output below. #+BEGIN_SRC text GNU Guile 3.0.9 Copyright (C) 1995-2023 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)> (use-modules (gnu packages)) ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/gnu/packages.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/packages.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/utils.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/config.scm ;;; guix/config.scm:65:16: warning: possibly unbound variable `@GUIX_CHANNEL_URL@' ;;; guix/config.scm:66:16: warning: possibly unbound variable `@GUIX_CHANNEL_COMMIT@' ;;; guix/config.scm:67:16: warning: possibly unbound variable `@GUIX_CHANNEL_INTRODUCTION@' ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/config.scm.go ;;; WARNING: compilation of /my-storage/miscellaneous/source-code-popular/guix/guix/utils.scm failed: ;;; Unbound variable: @GUIX_CHANNEL_URL@ ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/memoization.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/profiling.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/profiling.scm.go ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/memoization.scm.go ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/diagnostics.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/colors.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/colors.scm.go ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/i18n.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/i18n.scm.go ;;; WARNING: compilation of /my-storage/miscellaneous/source-code-popular/guix/guix/diagnostics.scm failed: ;;; Unbound variable: trivial-format-string? ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/build/utils.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/build/utils.scm.go ;;; Failed to autoload make-zlib-input-port in (zlib): ;;; no code for module (zlib) ;;; Failed to autoload make-zlib-input-port in (zlib): ;;; no code for module (zlib) ;;; Failed to autoload make-zlib-output-port in (zlib): ;;; no code for module (zlib) ;;; Failed to autoload make-zlib-output-port in (zlib): ;;; no code for module (zlib) ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/read-print.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/read-print.scm.go ;;; WARNING: compilation of /my-storage/miscellaneous/source-code-popular/guix/guix/packages.scm failed: ;;; Unbound variable: %system ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/records.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/records.scm.go ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/store.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/deprecation.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/deprecation.scm.go ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/serialization.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/serialization.scm.go ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/monads.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/monads.scm.go ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/base16.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/base16.scm.go ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/base32.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/base32.scm.go ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/build/syscalls.scm ;;; guix/build/syscalls.scm:748:30: warning: possibly unbound variable `RB_AUTOBOOT' ;;; guix/build/syscalls.scm:1828:17: warning: possibly unbound variable `network-interface-flags' ;;; guix/build/syscalls.scm:1830:30: warning: possibly unbound variable `IFF_LOOPBACK' ;;; guix/build/syscalls.scm:1837:30: warning: possibly unbound variable `IFF_RUNNING' ;;; guix/build/syscalls.scm:1844:25: warning: possibly unbound variable `IFF_NOARP' ;;; guix/build/syscalls.scm:1936:9: warning: possibly unbound variable `set-network-interface-address' ;;; guix/build/syscalls.scm:1937:9: warning: possibly unbound variable `set-network-interface-flags' ;;; guix/build/syscalls.scm:1952:53: warning: possibly unbound variable `IFF_UP' ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/build/syscalls.scm.go ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; guix/store.scm:1925:0: warning: shadows previous definition of `#{ mapm %store-monad instance}#' at guix/store.scm:1925:0 ;;; guix/store.scm:1925:0: warning: shadows previous definition of `#{ sequence %store-monad instance}#' at guix/store.scm:1925:0 ;;; guix/store.scm:1925:0: warning: shadows previous definition of `#{ anym %store-monad instance}#' at guix/store.scm:1925:0 ;;; guix/store.scm:1925:0: warning: shadows previous definition of `#{ foldm %store-monad instance}#' at guix/store.scm:1925:0 ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; guix/store.scm:2278:13: warning: possibly unbound variable `sha256' ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/store.scm.go ;;; WARNING: compilation of /my-storage/miscellaneous/source-code-popular/guix/gnu/packages.scm failed: ;;; Unbound variable: %state-directory ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/ui.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/gexp.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/derivations.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/combinators.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/combinators.scm.go ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/sets.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/sets.scm.go ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; guix/store.scm:296:20: warning: possibly unbound variable `' ;;; guix/derivations.scm:391:33: warning: possibly unbound variable `%substitutable-references-procedure' ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; guix/derivations.scm:776:8: warning: possibly unbound variable `sha256' ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; guix/derivations.scm:1270:2: warning: possibly unbound variable `gexp->derivation' ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; Failed to autoload sha256 in (gcrypt hash): ;;; no code for module (gcrypt hash) ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/derivations.scm.go ;;; WARNING: compilation of /my-storage/miscellaneous/source-code-popular/guix/guix/gexp.scm failed: ;;; Unbound variable: &store-error ;;; WARNING: compilation of /my-storage/miscellaneous/source-code-popular/guix/guix/ui.scm failed: ;;; Unbound variable: ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/profiles.scm ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/search-paths.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/search-paths.scm.go ;;; compiling /my-storage/miscellaneous/source-code-popular/guix/guix/modules.scm ;;; compiled /home/rodrigo/.cache/guile/ccache/3.0-LE-8-4.6/mnt/b2fe7d61-8df8-43c1-9891-d3ebbb878a15/miscellaneous/source-code-popular/guix/guix/modules.scm.go ;;; WARNING: compilation of /my-storage/miscellaneous/source-code-popular/guix/guix/profiles.scm failed: ;;; guix/profiles.scm:468:14: Unknown # object: "#~" While compiling expression: /my-storage/miscellaneous/source-code-popular/guix/guix/profiles.scm:468:14: Unknown # object: "#~" scheme@(guile-user)> #+END_SRC I could not call =specifications->packages=. #+BEGIN_SRC text scheme@(guile-user)> (specifications->packages (list "emacs")) ;;; :11:1: warning: possibly unbound variable `specifications->packages' ice-9/boot-9.scm:1685:16: In procedure raise-exception: Unbound variable: specifications->packages Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> #+END_SRC * Question When writing a Guile script that uses guix modules in Emacs, how to evaluate the sexp at point and show its result in the minibuffer?