Ludovic Courtès <l...@gnu.org> skribis:

> Tomas Volf <~@wolfsden.cz> skribis:
>
>> Actually, now that I think about it, why are formal arguments for the
>> restart lambda `(running . args)'?  For example status has just `(_)'.
>> Neither `running' nor `args' are used in the lambda itself.
>>
>> Changing the formal arguments to simply _ would get us the same behavior
>> you get when you try to invoke e.g. status action with multiple
>> arguments (an error).
>
> I think it’s a bug.  Back in the day (commit
> a84ecf34be2a35e8b068d4232d8932acc5986c33) would pass those extra
> arguments to ‘start’:
>
>       ((restart)
>        (lambda (running . args)
>          (if running
>              (stop obj)
>              (local-output "~a was not running." (canonical-name obj)))
>          (start obj args)))
>
> Which is consistent and should probably be restored.

Done in 3ab3930a30495391e5176355e524a8dc026bd060.

Ludo’.



Reply via email to