Subject: [PATCH v2 2/3] ui: Make 'user-module' parameter of 'load*' optional.

From: Herman Rimm <[email-masked]>
Date: Sun, 5 May 2024 19:25:34 +0200

* guix/ui.scm (load*): Make 'user-module' paramater optional.

Change-Id: I4ebf854cd48bb8944bd70ac1c3ece4476fd6710c
---
 guix/ui.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/ui.scm b/guix/ui.scm
index d82fa533cc..8839079ee0 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -216,7 +216,8 @@ (define (try-canonicalize-path file)
       (canonicalize-path file))
     (const file)))
 
-(define* (load* file user-module
+(define* (load* file #:optional
+                (user-module (make-fresh-user-module))
                 #:key (on-error 'nothing-special))
   "Load the user provided Scheme source code FILE."
   (define (error-string frame args)
-- 
2.41.0