bug#41140: “guix system” suggests wrong module import when using “remove”

2021-04-12 Thread Ricardo Wurmus
Ludovic Courtès writes: > Hi, > > Ricardo Wurmus skribis: > >>>From 40c1208cbe9cbfa58ee385ef6ee06b775d309753 Mon Sep 17 00:00:00 2001 >> From: Ricardo Wurmus >> Date: Sun, 10 May 2020 23:29:38 +0200 >> Subject: [PATCH] services: Support DELETE in MODIFY-SERVICES macro. >> >> *

bug#41140: “guix system” suggests wrong module import when using “remove”

2020-05-11 Thread Ludovic Courtès
Ricardo Wurmus skribis: > But now I’m curious and I look at the documentation for “remove” from > (rnrs lists): > > -- Scheme Procedure: remp proc list > -- Scheme Procedure: remove obj list > -- Scheme Procedure: remv obj list > -- Scheme Procedure: remq obj list > ‘remove’, ‘remv’,

bug#41140: “guix system” suggests wrong module import when using “remove”

2020-05-11 Thread Ludovic Courtès
Hi, Ricardo Wurmus skribis: >>From 40c1208cbe9cbfa58ee385ef6ee06b775d309753 Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Sun, 10 May 2020 23:29:38 +0200 > Subject: [PATCH] services: Support DELETE in MODIFY-SERVICES macro. > > * gnu/services.scm (%modify-service): Add clause for

bug#41140: “guix system” suggests wrong module import when using “remove”

2020-05-10 Thread Ricardo Wurmus
Ricardo Wurmus writes: > * can we avoid this by extending modify-services to support “delete” > much like modify-phases, and suggesting to use that instead of > “remove”? The attached patch does this. What do you think? -- Ricardo >From 40c1208cbe9cbfa58ee385ef6ee06b775d309753 Mon Sep

bug#41140: “guix system” suggests wrong module import when using “remove”

2020-05-09 Thread Danny Milosavljevic
Hi Ricardo, On Sat, 09 May 2020 00:00:05 +0200 Ricardo Wurmus wrote: > * can we prefer (srfi srfi-1) over (rnrs lists) in the suggestions for > “remove”? If possible, I'd just make it search all the modules with that binding that are available in the search path. It's okay if that's

bug#41140: “guix system” suggests wrong module import when using “remove”

2020-05-08 Thread Ricardo Wurmus
I want to delete a service from %desktop-services, so I write --8<---cut here---start->8--- … (services (remove (lambda (service) (eq? (service-kind service) that-annoying-service-type)) %desktop-services)) …