From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#40693: 28.0.50; json-encode-alist changes alist Date: Sun, 19 Apr 2020 14:01:33 -0700 (PDT) Message-ID: References: <7b043ea4-2633-45dc-8e7f-79f86ff00d95@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="50540"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40693@debbugs.gnu.org To: Paul Eggert , Ivan Andrus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 19 23:02:24 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQH56-000D1r-0r for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 23:02:24 +0200 Original-Received: from localhost ([::1]:47662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQH54-0007ju-O5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 17:02:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45250 helo=eggs1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQH4l-0007jU-9d for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 17:02:03 -0400 Original-Received: from Debian-exim by eggs1p.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQH4k-0000Ut-Pf for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 17:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34552) by eggs1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQH4k-0000UY-CU for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 17:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQH4k-0000TM-Ai for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 17:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2020 21:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40693 X-GNU-PR-Package: emacs Original-Received: via spool by 40693-submit@debbugs.gnu.org id=B40693.15873301121787 (code B ref 40693); Sun, 19 Apr 2020 21:02:02 +0000 Original-Received: (at 40693) by debbugs.gnu.org; 19 Apr 2020 21:01:52 +0000 Original-Received: from localhost ([127.0.0.1]:46095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQH4a-0000Sl-Ht for submit@debbugs.gnu.org; Sun, 19 Apr 2020 17:01:52 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:58336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQH4Y-0000SQ-Si for 40693@debbugs.gnu.org; Sun, 19 Apr 2020 17:01:51 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03JKw63c081020; Sun, 19 Apr 2020 21:01:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=CA+/v3dAB89PMFhNq1wd3aBGQhhj07tEYBYDMedwOLc=; b=oq1YCRha4y1Vu/y/5RbAABC6HqzPhlozU7b9gaZoWMD+IMPDUIqrGMBgZvjB7xYdTNil bwZovk5zdwI1V9lugM/0OFe6E1fpJkM02OS9yhP4n1sCh74k503Gdl/9xlIzur2LDI87 MOfjXCqYDP6/4fgkVDYsPWwzL2vm6B6bMP6BjR1jpx6mo4yo+VtPwCYdLWVVjYPgdTKc tvM/V01Uw5YM5zGqz5mkGQxfy0PTL0QdRoqoMHvkT3vgMAuBkM0ZQ0M5Pmu5QFoKlBLB VcfA97+V1e87efr2OuA+9xzVFDP6VLskRY9EtvnwLQvXafEOLRQ6W/l5B4VhYvPG3B+o vg== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 30grpg8jfv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 19 Apr 2020 21:01:37 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03JKwMti127122; Sun, 19 Apr 2020 21:01:37 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 30gbb83sp7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 19 Apr 2020 21:01:37 +0000 Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 03JL1Yur000707; Sun, 19 Apr 2020 21:01:35 GMT In-Reply-To: <7b043ea4-2633-45dc-8e7f-79f86ff00d95@cs.ucla.edu> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4966.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9596 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 suspectscore=0 mlxlogscore=992 adultscore=0 mlxscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004190180 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9596 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 bulkscore=0 clxscore=1011 malwarescore=0 phishscore=0 spamscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004190180 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178670 Archived-At: > @defspec quote object > This special form returns @var{object}, without evaluating it. > +The returned value is a constant, and should not be modified. > @end defspec Not true. The returned value _can be_ a constant, e.g., if the code is byte-compiled, and depending on the kind of object that's returned. 'foo returns the symbol foo. Depending on the context, you can certainly modify the properties of that symbol - its `symbol-value', `symbol-function', and `symbol-plist'. This kind of wholesale change risks making things less clear instead of more clear. See also Eli's message about the purpose of the manual, and the need to handle this overall message (about the byte-compiler sometimes causing a return value to become a constant) in a single place. The message should be about not _depending_ on a quoted value returning a new object (e.g. new list structure). The message should not be that `quote' never returns a new object. > +If a subexpression of a backquote construct has > +no substitutions or splices, it acts like > +@code{quote} in that it yields a constant that > +should not be modified. A constant is not something that _should not_ be modified. It's something that _cannot_ be modified. And something that should not be modified is not a constant. For a constant, there's zero reason to tell users not to modify it or tell them that they should not modify it - they _cannot_.