GNU bug report logs - #28747
26.0.60; Usage of "&rest body" in Edebug specs

Previous Next

Package: emacs;

Reported by: Gemini Lasswell <gazally <at> runbox.com>

Date: Sun, 8 Oct 2017 15:04:01 UTC

Severity: normal

Tags: wontfix

Found in version 26.0.60

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 28747 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gemini Lasswell <gazally <at> runbox.com>
Cc: 28747 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#28747: 26.0.60; Usage of "&rest body" in Edebug specs
Date: Sat, 29 Jan 2022 16:56:03 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> Here's a little example of what an Edebug spec would look like with
>> &repeat in place of &rest:
>>
>> (defmacro msgmac (&rest args)
>>   (declare (debug ("start" [&repeat "middle"] "end")))
>>   `(message "%s" ',args))
>>
>> (defun use-msgmac ()
>>   (msgmac start end)
>>   (msgmac start middle end)
>>   (msgmac start middle middle end))
>>
>> Does anyone have thoughts on the idea of adding &repeat as a synonym
>> for &rest in Edebug specs, with the goal of moving &rest towards
>> obsolescence eventually?
>
> I agree that this would be a lot clearer and probably less error-prone
> than &rest.
>
> Does anybody have an opinion here?

Stefan added to the CCs; perhaps he has an opinion.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.