bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28747: 26.0.60; Usage of "&rest body" in Edebug specs


From: Lars Ingebrigtsen
Subject: bug#28747: 26.0.60; Usage of "&rest body" in Edebug specs
Date: Sat, 29 Jan 2022 16:56:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]