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.
>>
>> *
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’,
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
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
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
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))
…