diff mbox series

[bug#70499,v2,2/3] ui: Make 'user-module' parameter of 'load*' optional.

Message ID b30510e16343b2646556cc92dd937b362a989f05.1714923771.git.herman@rimm.ee
State New
Headers show
Series Lint package order. | expand

Commit Message

Herman Rimm May 5, 2024, 5:25 p.m. UTC
* guix/ui.scm (load*): Make 'user-module' paramater optional.

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

Patch

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)