From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#40693: 28.0.50; json-encode-alist changes alist Date: Sun, 19 Apr 2020 13:35:25 -0700 Organization: UCLA Computer Science Department Message-ID: <7b043ea4-2633-45dc-8e7f-79f86ff00d95@cs.ucla.edu> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------53E1963C4DD79E529F79A7B1" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="74206"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: 40693@debbugs.gnu.org To: Ivan Andrus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 19 22:36:11 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 1jQGfi-000JCn-JD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 22:36:10 +0200 Original-Received: from localhost ([::1]:47488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQGfh-0002WR-FN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 16:36:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38842 helo=eggs1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQGfa-0002WC-W5 for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 16:36:03 -0400 Original-Received: from Debian-exim by eggs1p.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQGfa-0004rM-9E for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 16:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34533) by eggs1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQGfZ-0004qE-SA for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 16:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQGfZ-0008Io-Pf for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 16:36:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2020 20:36:01 +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.158732853931886 (code B ref 40693); Sun, 19 Apr 2020 20:36:01 +0000 Original-Received: (at 40693) by debbugs.gnu.org; 19 Apr 2020 20:35:39 +0000 Original-Received: from localhost ([127.0.0.1]:46079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQGfC-0008ID-MP for submit@debbugs.gnu.org; Sun, 19 Apr 2020 16:35:38 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQGf9-0008Hz-Ll for 40693@debbugs.gnu.org; Sun, 19 Apr 2020 16:35:36 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9C741160054; Sun, 19 Apr 2020 13:35:29 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id q1oGnQ1B9Zgk; Sun, 19 Apr 2020 13:35:28 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D0EF5160065; Sun, 19 Apr 2020 13:35:28 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ycff1FZnO_29; Sun, 19 Apr 2020 13:35:28 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id AAE5E160054; Sun, 19 Apr 2020 13:35:28 -0700 (PDT) Content-Language: en-US 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:178667 Archived-At: This is a multi-part message in MIME format. --------------53E1963C4DD79E529F79A7B1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit > I still find it surprising that a back-quoted list would behave that way Me too. This should be documented better, and to try to do that I installed the attached patch into the emacs-27 branch (this should appear on the master branch after the next merge). --------------53E1963C4DD79E529F79A7B1 Content-Type: text/x-patch; charset=UTF-8; name="0001-Document-that-quoting-yields-constants.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Document-that-quoting-yields-constants.patch" >From 81e7d7f111872c9f2aaf8885db50a22ed746d7b5 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 19 Apr 2020 09:37:51 -0700 Subject: [PATCH] Document that quoting yields constants * doc/lispref/eval.texi (Quoting, Backquote): Mention that quoted expressions yield a constant (Bug#40693). --- doc/lispref/eval.texi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/lispref/eval.texi b/doc/lispref/eval.texi index f6f36ed342..46cfab164b 100644 --- a/doc/lispref/eval.texi +++ b/doc/lispref/eval.texi @@ -558,6 +558,7 @@ and vectors.) @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 @cindex @samp{'} for quoting @@ -612,10 +613,12 @@ only part of a list, while computing and substituting other parts. @dfn{Backquote constructs} allow you to quote a list, but selectively evaluate elements of that list. In the simplest case, it -is identical to the special form @code{quote} +is identical to the special form @iftex +@code{quote}. @end iftex @ifnottex +@code{quote} (described in the previous section; @pxref{Quoting}). @end ifnottex For example, these two forms yield identical results: @@ -693,6 +696,9 @@ Here are some examples: @end group @end example +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. @node Eval @section Eval -- 2.17.1 --------------53E1963C4DD79E529F79A7B1--