emacs-devel
[Top][All Lists]
Advanced

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

Re: If records are not sequences, why does aref work on records?


From: Paul Eggert
Subject: Re: If records are not sequences, why does aref work on records?
Date: Fri, 7 Apr 2017 18:58:52 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 04/07/2017 02:02 PM, Noam Postavsky wrote:
Now they are "record" objects, but we don't want
to break code that uses aref and copy-sequence on them.

OK, given what you and Stefan have said, for backward-compatibility reasons copy-sequence should work on records. This means Emacs doesn't need a copy-record function, as people can just use copy-sequence. I installed the attached patch to do that, and to try to document the current low-level behavior better.

Attachment: 0001-Deprecate-copy-record-in-favor-of-copy-sequence.patch
Description: Source code patch


reply via email to

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