[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#40693: 28.0.50; json-encode-alist changes alist
From: |
Eli Zaretskii |
Subject: |
bug#40693: 28.0.50; json-encode-alist changes alist |
Date: |
Wed, 29 Apr 2020 15:21:45 +0300 |
> Cc: darthandrus@gmail.com, 40693@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Wed, 29 Apr 2020 15:08:57 +0300
>
> > No one tried to come up with arguments why this has to be in emacs-27.
>
> Let me try:
>
> It fixes a bug, one which could be annoying to investigate, the fix is
> small and localized to the case when json-encoding-object-sort-predicate
> is non-nil (so pretty safe).
It also makes the function slower. Which may be an important issue
for JSON processing. Callers that don't care about the original list
will be "punished" regardless.
How about adding an optional argument instead, by default off, to
request this behavior? then callers who care about the original alist
could request a non-destructive operation, and others won't suffer any
slowdown.
> It's not a regression from Emacs 26, though.
Right.
- bug#40693: 28.0.50; json-encode-alist changes alist, (continued)
- bug#40693: 28.0.50; json-encode-alist changes alist, Dmitry Gutov, 2020/04/18
- bug#40693: 28.0.50; json-encode-alist changes alist, Basil L. Contovounesios, 2020/04/18
- bug#40693: 28.0.50; json-encode-alist changes alist, Basil L. Contovounesios, 2020/04/29
- bug#40693: 28.0.50; json-encode-alist changes alist, Eli Zaretskii, 2020/04/29
- bug#40693: 28.0.50; json-encode-alist changes alist, Dmitry Gutov, 2020/04/29
- bug#40693: 28.0.50; json-encode-alist changes alist,
Eli Zaretskii <=
- bug#40693: 28.0.50; json-encode-alist changes alist, Dmitry Gutov, 2020/04/29
- bug#40693: 28.0.50; json-encode-alist changes alist, Eli Zaretskii, 2020/04/29
- bug#40693: 28.0.50; json-encode-alist changes alist, Dmitry Gutov, 2020/04/29
- bug#40693: 28.0.50; json-encode-alist changes alist, Eli Zaretskii, 2020/04/29
- bug#40693: 28.0.50; json-encode-alist changes alist, Basil L. Contovounesios, 2020/04/29
bug#40693: 28.0.50; json-encode-alist changes alist, Paul Eggert, 2020/04/19