[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#72406] [PATCH emacs-team WIP 2/4] build-system: emacs: Make emacs t
From: |
Liliana Marie Prikler |
Subject: |
[bug#72406] [PATCH emacs-team WIP 2/4] build-system: emacs: Make emacs the default variant. |
Date: |
Wed, 31 Jul 2024 20:41:28 +0200 |
* guix/build-system/emacs.scm (resolve-emacs): New variable.
(default-emacs): Use it. Change to ‘emacs’ instead of ‘emacs-minimal’.
---
guix/build-system/emacs.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/guix/build-system/emacs.scm b/guix/build-system/emacs.scm
index 3a11738496..88304b9ce1 100644
--- a/guix/build-system/emacs.scm
+++ b/guix/build-system/emacs.scm
@@ -49,11 +49,13 @@ (define %emacs-build-system-modules
(guix build emacs-utils)
,@%gnu-build-system-modules))
-(define (default-emacs)
- "Return the default Emacs package."
+(define* (resolve-emacs name)
+ "Lazily resolve the emacs package by variable NAME."
;; Lazily resolve the binding to avoid a circular dependency.
(let ((emacs-mod (resolve-interface '(gnu packages emacs))))
- (module-ref emacs-mod 'emacs-minimal)))
+ (module-ref emacs-mod name)))
+
+(define (default-emacs) (resolve-emacs 'emacs))
(define* (lower name
#:key source inputs native-inputs outputs system target
--
2.45.2