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

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

bug#19790: [PATCH] destructive splicing in backquote


From: Stefan Kangas
Subject: bug#19790: [PATCH] destructive splicing in backquote
Date: Sat, 14 Sep 2019 01:59:30 +0200

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Robin Templeton <robin@terpri.org> writes:
>
>> Common Lisp and MACLISP define comma-dot syntax for destructive splicing
>> in backquote expressions. The Elisp reader reads ",.x" as "(\,\. x)"
>> (like ",@"), but the resulting forms are not processed by the backquote
>> library. A patch follows that adds CL-compatible comma-dot support.
>>
>> Originally reported by at Artur Malabarba in
>> <http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00624.html>.
>
> I think the conclusion to the discussion was that we do not want to
> support the ,. operation in Emacs Lisp.
>
> (setq .foo 1)
>
> `((,.foo))
> => (((\,\. foo)))
>
> So we should remove this feature completely, because that's obviously a
> bug...

Thanks to Michael Heerdegen's pointers, I could come up with a patch.
Would something like the attached do the job?  It simply removes this
feature and adds a test.

Best regards,
Stefan Kangas

Attachment: 0001-Remove-support-for-destructive-splicing-in-elisp.patch
Description: Text Data


reply via email to

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