GNU bug report logs - #58461
[PATCH] gnu: emacs-eval-in-repl-erlang: Fix unbound variable.

Previous Next

Package: guix-patches;

Reported by: Brian Kubisiak <brian <at> kubisiak.com>

Date: Wed, 12 Oct 2022 02:21:02 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Brian Kubisiak <brian <at> kubisiak.com>
Subject: bug#58461: closed (Re: [bug#58461] [PATCH] gnu: emacs-eval-in-repl-erlang:
 Fix unbound variable.)
Date: Sun, 16 Oct 2022 17:15:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#58461: [PATCH] gnu: emacs-eval-in-repl-erlang: Fix unbound variable.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 58461 <at> debbugs.gnu.org.

-- 
58461: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58461
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Christopher Baines <mail <at> cbaines.net>
To: 58461-done <at> debbugs.gnu.org
Subject: Re: [bug#58461] [PATCH] gnu: emacs-eval-in-repl-erlang: Fix unbound
 variable.
Date: Sun, 16 Oct 2022 18:12:18 +0100
[Message part 3 (text/plain, inline)]
Marking as done as the patch has been pushed to master.
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Brian Kubisiak <brian <at> kubisiak.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: emacs-eval-in-repl-erlang: Fix unbound variable.
Date: Tue, 11 Oct 2022 19:20:43 -0700
Commit 0b120ad5f88d32e0c716b1442fe1ea3c562b5586 introduced a circular
dependency where (gnu packages erlang) would transitively load (gnu
packages emacs-xyz) before the emacs-erlang package was defined. This
would result in "error: emacs-erlang: unbound variable" in the
definition of emacs-eval-in-repl-erlang when trying to use (gnu
packages erlang) from the repl.

This commit fixes the unbound variable by adding a delay to the inputs
in make-emacs-eval-in-repl.

* gnu/packages/emacs-xyz.scm (emacs-eval-in-repl-erlang): Add delay.
---
 gnu/packages/emacs-xyz.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2ac29e8225..1b0f07731d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -27911,7 +27911,7 @@ (define-public emacs-eval-in-repl-elm
   (make-emacs-eval-in-repl "elm" #:inputs (list emacs-elm-mode)))
 
 (define-public emacs-eval-in-repl-erlang
-  (make-emacs-eval-in-repl "erlang" #:inputs (list emacs-erlang)))
+  (make-emacs-eval-in-repl "erlang" #:inputs (delay (list emacs-erlang))))
 
 (define-public emacs-eval-in-repl-geiser
   (make-emacs-eval-in-repl "geiser" #:language "Scheme"
-- 
2.37.3





This bug report was last modified 2 years and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.